support limit
This commit is contained in:
parent
bef32ace38
commit
ecf1916d78
33 changed files with 3036 additions and 243 deletions
|
|
@ -74,7 +74,7 @@ struct TimeWindow $C.mapname("xce_timewindow_config_t") {
|
|||
segs @0: List(TimeWindowSeg) $C.mapname("segs") $C.maplistcount("nsegs");
|
||||
}
|
||||
|
||||
struct Group $C.mapname("xce_group_t") {
|
||||
struct GroupConfig $C.mapname("xce_group_config_t") {
|
||||
name @0: Text $C.mapname("name");
|
||||
members @1: List(Text) $C.mapname("members.data") $C.maplistcount("members.count");
|
||||
exmembers @2: List(Text) $C.mapname("ex_members.data") $C.maplistcount("ex_members.count");
|
||||
|
|
@ -149,6 +149,12 @@ struct Value $C.mapname("xce_val_t"){
|
|||
}
|
||||
}
|
||||
|
||||
struct LimitValue $C.mapname("xce_limit_val_t") {
|
||||
resname @0: Text $C.mapname("resname");
|
||||
percentage @1: Bool $C.mapname("percent");
|
||||
value @2: Float64 $C.mapname("val");
|
||||
}
|
||||
|
||||
struct ValueWithIdx $C.mapname("xce_val_with_idx_t") {
|
||||
idx @0: UInt32;
|
||||
val @1: Value $C.mapname("val");
|
||||
|
|
@ -191,8 +197,8 @@ struct QueueConf $C.mapname("xce_queue_t") {
|
|||
acceptIntervals @4: Int32 $C.mapname("accept_interval");
|
||||
schedDelay @5: Int32 $C.mapname("sched_delay");
|
||||
resreq @6: Text;
|
||||
users @7: Group $C.mapname("users");
|
||||
hosts @8: Group $C.mapname("hosts");
|
||||
users @7: GroupConfig $C.mapname("users");
|
||||
hosts @8: GroupConfig $C.mapname("hosts");
|
||||
thresholds @9: List(Threshold) $C.maplistcount("nthresholds");
|
||||
preExec @10: Text $C.mapname("pre_exec");
|
||||
postExec @11: Text $C.mapname("post_exec");
|
||||
|
|
@ -205,9 +211,11 @@ struct Conf4Sched $C.mapname("xce_conf4sched_t"){
|
|||
configvars @1: List(ConfigVar) $C.mapname("confvars") $C.maplistcount("n_confvars");
|
||||
resources @2: List(Resource) $C.maplistcount("n_resources");
|
||||
queues @3: List(QueueConf) $C.maplistcount("n_queues");
|
||||
ugroups @4: List(Group) $C.maplistcount("n_ugroups");
|
||||
hgroups @5: List(Group) $C.maplistcount("n_hgroups");
|
||||
ugroups @4: List(GroupConfig) $C.maplistcount("n_ugroups");
|
||||
hgroups @5: List(GroupConfig) $C.maplistcount("n_hgroups");
|
||||
resvals @6: List(ValueWithIdx) $C.mapname("resvals") $C.maplistcount("nresvals");
|
||||
hproviders @7: List(ScalerConfig) $C.mapname("hproviders") $C.maplistcount("nhproviders");
|
||||
limits @8: List(LimitConfig) $C.mapname("limits") $C.maplistcount("nlimits");
|
||||
}
|
||||
|
||||
struct Conf4Worker $C.mapname("xce_conf4worker_t") {
|
||||
|
|
@ -609,6 +617,19 @@ struct ScalerConfig $C.mapname("scaler_config_t") {
|
|||
scriptOption @4: Text $C.mapname("script_option");
|
||||
}
|
||||
|
||||
struct LimitConfig $C.mapname("xce_limit_config_t") {
|
||||
name @0: Text $C.mapname("name");
|
||||
users @1: GroupConfig $C.mapname("users");
|
||||
queues @2: GroupConfig $C.mapname("queues");
|
||||
projects @3: GroupConfig $C.mapname("projects");
|
||||
hosts @4: GroupConfig $C.mapname("hosts");
|
||||
val @5: LimitValue $C.mapname("val");
|
||||
perUser @6: Bool $C.mapname("per_user");
|
||||
perQueue @7: Bool $C.mapname("per_queue");
|
||||
perProject @8: Bool $C.mapname("per_project");
|
||||
perHost @9: Bool $C.mapname("per_host");
|
||||
}
|
||||
|
||||
struct ClusterConfig $C.mapname("cluster_config_t") {
|
||||
clusterName @0: Text $C.mapname("clustername");
|
||||
port @1: UInt32 $C.mapname("port");
|
||||
|
|
@ -620,8 +641,8 @@ struct ClusterConfig $C.mapname("cluster_config_t") {
|
|||
vcpus @7: UInt32 $C.mapname("vcpus");
|
||||
resources @8: List(Resource) $C.mapname("resources") $C.maplistcount("nres");
|
||||
queues @9: List(QueueConf) $C.mapname("queues") $C.maplistcount("nqueues");
|
||||
ugroups @10: List(Group) $C.mapname("ugroups") $C.maplistcount("nugroups");
|
||||
hgroups @11: List(Group) $C.mapname("hgroups") $C.maplistcount("nhgroups");
|
||||
ugroups @10: List(GroupConfig) $C.mapname("ugroups") $C.maplistcount("nugroups");
|
||||
hgroups @11: List(GroupConfig) $C.mapname("hgroups") $C.maplistcount("nhgroups");
|
||||
hostConfigs @12: List(HostConfig) $C.mapname("hconfigs") $C.maplistcount("nhconfigs");
|
||||
jobmgr @13: HashZArrayConfig;
|
||||
workermgr @14: HashZArrayConfig;
|
||||
|
|
@ -629,4 +650,5 @@ struct ClusterConfig $C.mapname("cluster_config_t") {
|
|||
resmgr @16: ResmgrConfig;
|
||||
xstrings @17: HashZArrayConfig;
|
||||
hproviders @18: List(ScalerConfig) $C.mapname("hproviders") $C.maplistcount("nhproviders");
|
||||
limits @19: List(LimitConfig) $C.mapname("limits") $C.maplistcount("nlimits");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue