Skip to content

Commit

Permalink
resource: only read resource.scheduling config on rank 0
Browse files Browse the repository at this point in the history
Problem: The Rv1 scheduling key as JGF can be large and time-consuming
to generate and distribute, but currently it is required on all
nodes. Since the key is really only used by the scheduler on rank 0,
it would be ideal if resource.scheduling was only read on rank 0.

Only process the resource.scheduling config key on rank 0.

Fixes flux-framework#6480
  • Loading branch information
grondo committed Dec 6, 2024
1 parent 02cae96 commit 3a383bb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/modules/resource/resource.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ static int parse_config (struct resource_ctx *ctx,
return -1;
}
}
if (scheduling_path) {
/* resource.scheduling key, if configured, is only required on rank 0,
* since by definition it is used only by the scheduler.
*/
if (scheduling_path && ctx->rank == 0) {
json_t *scheduling;
json_error_t e;
if (!o) {
Expand Down

0 comments on commit 3a383bb

Please sign in to comment.