Debian Codegraph @

sources/core/modules/scheduler/README

raw
1
2 OAR's scheduler in ocaml
3 ========================
4
5 Intro
6 -----
7 The main goal of this scheduler is to provide a better scalabily in comparaison to the schedulers in Perl.Up to now some features are missing see below.
8
9 This developement of this scheduler borrows lot of ideas and source codes from perl oar_2.x schedulers and (a large part of) moldable ocaml oar_1.6 scheduler (thanks respectively to Nicolas Capit and Lionel Eyraud for theirs codes).
10
11 Features:
12 ---------
13 * conservative backfilling
14 * resources properties matching
15 * besteffort
16 * hierarchies
17 * multiple resource type [TO TEST]
18 * multiple resource requests ( + ) [TO TEST]
19 * time constant guards, [TO TEST]
20 * suspend/resume,
21 * job depencies [TO TEST]
22 * job container
23 * fairesharing [TO TEST]
24 * order_by on resources [TO FINISH / EVALUATE]
25 * ALL / BEST / BESTHALF for number of resources by level of hierarchy
26
27 Missing:
28 --------
29 * Timesharing (not planned for fisrt public version)
30 * Placeholder (not planned)
31 * Extensive test (no yet running on production cluster)
32 * SCHEDULER_TOKEN_SCRIPTS support (for legacy licence management)
33 * SCHEDULER_AVAILABLE_SUSPENDED_RESOURCE_TYPE (get_scheduled_jobs function is ready)
34
35 Next:
36 -----
37 * Support for null
38 * test hierarchy construction with different type of resource (exception raises when a field is missing)
39 * performance testing
40 * add always SCHEDULER_RESOURCES_ALWAYS_ASSIGNED_TYPE (is it really needed ?)
41 * SCHEDULER_TOKEN_SCRIPTS support (for legacy licence management)
42
43 * scheduler message (see perl version )
44 * job_error / job_message / scheduler message
45 * need to test multi-resource-type (since >= cbf_mb_h)
46 * need to test multi-request with non exclusive resource selection (since >= cbf_mb_h)
47 * errors logging (at least same error support as provide in perl scheduler)
48 * dump first k ready launchable jobs (for performance /reactivity issue)
49 * nb_asked_resource = 0 raise an error (>= cbf_mb_h)
50 * unit test
51 * better compilation process (for unit tests)
52
53 ToDo:
54 -----
55 * ORDER_BY
56 * performance test
57 * production test
58 * ord2init_ids, init2ord_ids more test
59
60 * switch name to kamelot
61 * test fairsharing
62 * test_unit: better compilation process
63 * Ounit (cf archive)
64 * test sub_intevals
65
66 Misc:
67 -----
68
69 * With 64 bits machine we can use ocaml's int with 63 bits instead of Int64.
70
71 Done:
72 -----
73 * resource order_by support (usable)
74 * container
75 * Support of postgresql
76 * Preliminary performance comparaison (perl version timesharing only scheduler from oar-server_2.3.4-1_all.deb against cbf_mh_h). Perl scheduler doesn't seem to scale with number of resources)
77 * modify itv_intersect in Interval / remove itv2str, itvs2str (>= cbf_mh_h)
78 * multi-resource-type (since >= cbf_mh_h) (
79 * multi-request with non exclusive resource selection (since >= cbf_mh_h)
80
81 Remarks and misc:
82 -----------------
83 * http://martin.jambon.free.fr/ocaml.htm
84
85 Bugs:
86 -----
87
88 Debug:
89 ------
90 make bc
91 ocamlmktop -I /usr/lib/ocaml/ -o yop str.cma unix.cma ../common/helpers.cmo ../common/interval.cmo ../common/conf.cmo types.cmo ../common/hierarchy.cmo ./simple_cbf_mb_h_ct.cmo
92
93 ocamlmktop -I /usr/lib/ocaml/ -o yop str.cma unix.cma ../common/helpers.cmo \
94 ../common/interval.cmo ../common/conf.cmo types.cmo ../common/hierarchy.cmo \
95 ./simple_cbf_mb_h_ct.cmo mysql/mysql.cma ./mysql_driver.cmo iolib.cmo ./simple_cbf_mb_h_ct_oar.cmo
96
97 ocamlmktop -I /usr/lib/ocaml/ -o yop str.cma unix.cma ../common/helpers.cmo \
98 ../common/interval.cmo ../common/conf.cmo types.cmo ../common/hierarchy.cmo \
99 ./simple_cbf_mb_h_ct.cmo mysql/mysql.cma ./mysql_driver.cmo iolib.cmo
100
101 rlwrap ./yop -I ../common -I .