xcesched_push_configs() sent two hardcoded limit1/limits2 test literals to the scheduler (behind a #if 0/FIXME "we use builtin limit currently"), ignoring whatever was actually loaded from cluster_config. Migrate those literals into limits.yaml as real entries and wire conf4sched->nlimits/limits from c->myconf->cluster_config directly. cluster_init_phase2 also downgrades its "cluster_config not loaded" ERROR to INFO — a standby legitimately reaching phase2 before the primary's config-push has delivered bytes yet is normal cold-boot behavior, not a failure; it already matches load_primary_config's INFO-level framing for the same condition.
79 lines
1.6 KiB
YAML
79 lines
1.6 KiB
YAML
---
|
|
limits:
|
|
# cap total slots for ug1 across the whole cluster
|
|
- name: ug1_slots
|
|
users:
|
|
members:
|
|
- ug1
|
|
resname: slots
|
|
value: 10
|
|
|
|
# per-user slot cap inside ug2 (each member gets up to 4, not a shared pool)
|
|
- name: ug2_slots_per_user
|
|
users:
|
|
members:
|
|
- ug2
|
|
exclude_members:
|
|
- user3
|
|
resname: slots
|
|
value: 4
|
|
per_user: true
|
|
|
|
# queue-scoped memory cap, percentage of total mem resource
|
|
- name: night_mem_pct
|
|
queues:
|
|
members:
|
|
- night
|
|
resname: mem
|
|
value: 50
|
|
percent: true
|
|
|
|
# host-scoped cap, applied per host in hg1
|
|
- name: hg1_slots_per_host
|
|
hosts:
|
|
members:
|
|
- hg1
|
|
resname: slots
|
|
value: 20
|
|
per_host: true
|
|
|
|
# combined scope: ug1 members on the normal queue
|
|
- name: ug1_normal_slots
|
|
users:
|
|
members:
|
|
- ug1
|
|
queues:
|
|
members:
|
|
- normal
|
|
resname: slots
|
|
value: 8
|
|
|
|
# migrated from src/controller/sched.c xcesched_push_configs()'s
|
|
# hardcoded limit1_config literal (all users except rshen, shared
|
|
# 3-slot cap)
|
|
- name: limit1
|
|
users:
|
|
members:
|
|
- all
|
|
exclude_members:
|
|
- rshen
|
|
resname: slots
|
|
value: 3.0
|
|
|
|
# migrated from src/controller/sched.c xcesched_push_configs()'s
|
|
# hardcoded limit2_config literal (rshen on the xce queue, per-user/
|
|
# per-queue/per-project/per-host 20% mem cap)
|
|
- name: limits2
|
|
per_user: true
|
|
per_queue: true
|
|
per_project: true
|
|
per_host: true
|
|
users:
|
|
members:
|
|
- rshen
|
|
queues:
|
|
members:
|
|
- xce
|
|
resname: mem
|
|
value: 0.2
|
|
percent: true
|