-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable/disable scheduling topology hints through an env. variable #188
Conversation
6be0388
to
4db2985
Compare
4db2985
to
8bf95d8
Compare
dc8382e
to
65fed71
Compare
// If topology hints are disabled, unset the provided topology hint | ||
if (conf.useTopologyHints == "off") { | ||
topologyHint = faabric::util::SchedulingTopologyHint::NORMAL; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would change this to check if they're requesting anything other than NORMAL
, then print a warning if so. We don't want to have this on accidentally.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. Now we:
- Check if env var set
- If set and hint different than
NORMAL
, print a warning and unset.
"Test scheduling hints can be disabled through the config", | ||
"[scheduler]") | ||
{ | ||
SchedulingConfig config = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here I add the new test
I every now and then get errors in the sanitised builds unrelated to the changes introduced. Moving the discussion about this offline. |
With this PR scheduling topology hints may be disabled by setting the environment variable:
NO_TOPOLOGY_HINTS=on
in faam's worker.