You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Soon, all LC rabbit clusters will have a JSON file, /etc/flux/system/rabbitmapping, that maps compute nodes to rabbits and vice versa, structured like the following:
(note that the eventlog entry provides a rabbit: hostlist mapping for every rabbit associated with the job)
to figure out what the local rabbit is and set the FLUX_LOCAL_RABBIT environment variable. But if users can get the same information by running jq .computes.$HOSTNAME /etc/flux/system/rabbitmapping, I wonder if $FLUX_LOCAL_RABBIT is necessary. Or, alternatively, perhaps the shell plugin could read from the file to set the variable, and the eventlog could drop that (potentially very large) entry.
The text was updated successfully, but these errors were encountered:
Sounds like a pretty good idea to me. I'm guessing the mapping from compute node to rabbits will never change, so putting the redundant and duplicate information in the job eventlog may be wasting KVS space.
I like the idea of setting the environment variable in the shell plugin using this new config file. Then users won't see a difference when you update to the new method.
I can't think of a good reason to keep the mapping in the eventlog either. Unless that is the only way a job can see the rabbits to which it has access?
Soon, all LC rabbit clusters will have a JSON file,
/etc/flux/system/rabbitmapping
, that maps compute nodes to rabbits and vice versa, structured like the following:It duplicates some information set in the eventlog for the
dws-environment
shell plugin, which reads events like(note that the eventlog entry provides a
rabbit: hostlist
mapping for every rabbit associated with the job)to figure out what the local rabbit is and set the
FLUX_LOCAL_RABBIT
environment variable. But if users can get the same information by runningjq .computes.$HOSTNAME /etc/flux/system/rabbitmapping
, I wonder if$FLUX_LOCAL_RABBIT
is necessary. Or, alternatively, perhaps the shell plugin could read from the file to set the variable, and the eventlog could drop that (potentially very large) entry.The text was updated successfully, but these errors were encountered: