Skip to content

Conversation

@csegarragonz
Copy link
Collaborator

@csegarragonz csegarragonz commented Nov 30, 2021

With this PR scheduling topology hints may be disabled by setting the environment variable: NO_TOPOLOGY_HINTS=on in faam's worker.

@csegarragonz csegarragonz force-pushed the env-var-topo-hints branch 2 times, most recently from 6be0388 to 4db2985 Compare November 30, 2021 17:45
// If topology hints are disabled, unset the provided topology hint
if (conf.useTopologyHints == "off") {
topologyHint = faabric::util::SchedulingTopologyHint::NORMAL;
}
Copy link
Collaborator

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point. Now we:

  1. Check if env var set
  2. If set and hint different than NORMAL, print a warning and unset.

"Test scheduling hints can be disabled through the config",
"[scheduler]")
{
SchedulingConfig config = {
Copy link
Collaborator Author

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

@csegarragonz
Copy link
Collaborator Author

I every now and then get errors in the sanitised builds unrelated to the changes introduced. Moving the discussion about this offline.

@csegarragonz csegarragonz requested review from Shillaker and removed request for Shillaker December 1, 2021 15:27
@csegarragonz csegarragonz self-assigned this Dec 1, 2021
@csegarragonz csegarragonz merged commit 6ff81aa into master Dec 2, 2021
@csegarragonz csegarragonz deleted the env-var-topo-hints branch December 2, 2021 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants