Skip to content
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

Manager: don't clear in-use prefs when disable in-use computing #5076

Merged
merged 2 commits into from
Feb 7, 2023

Conversation

davidpanderson
Copy link
Contributor

In-use prefs:

  • cpu_usage_limit
  • max_ncpus_pct
  • ram_max_used_busy_frac
  • suspend_cpu_usage
    Don't clear their values when in-use computing is disabled, and write them to the override file.
    That way if the user enables in-use computing again, they'll see the values they had set before.

Fixes some of Charlie's comments in #5072

In-use prefs:
- cpu_usage_limit
- max_ncpus_pct
- ram_max_used_busy_frac
- suspend_cpu_usage
Don't clear their values when in-use computing is disable,
and write them to the override file.
That way if the user enables in-use computing again,
they'll see the values they had set before.
@AenBleidd
Copy link
Member

Code looks good to me but testing is required.

Recall: the client has
- web prefs: from a project or AM.  global_prefs.xml
- local prefs: global_prefs_override.xml

Prefs from an AM have priority over prefs from projects.
If the client is using an AM and has prefs from it,
prefs from a project (in a scheduler reply) are silently ignored.

Change things so that prefs from a project are accepted
(written to global_prefs.xml) if you're using an AM but are
using local prefs.
So if you're using an AM and want prefs from a project P:
- switch to local prefs
- update P
- switch to web prefs (which will now be from P).

This is admittedly awkward.
@davidpanderson davidpanderson merged commit 891f481 into master Feb 7, 2023
This was referenced Feb 8, 2023
@AenBleidd AenBleidd deleted the dpa_prefs3 branch August 15, 2023 09:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants