-
Notifications
You must be signed in to change notification settings - Fork 0
Enable config monitoring for Thor in containerized deployments #152
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
base: candidate-10.0.x
Are you sure you want to change the base?
Conversation
Co-authored-by: jakesmith <902700+jakesmith@users.noreply.github.com>
Co-authored-by: jakesmith <902700+jakesmith@users.noreply.github.com>
Co-authored-by: jakesmith <902700+jakesmith@users.noreply.github.com>
Co-authored-by: jakesmith <902700+jakesmith@users.noreply.github.com>
jakesmith
left a comment
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.
@copilot - structure looks broadly okay, but:
- you should be able to tell that a lot of the settings that you have added to managerAdditionalSettings, e.g. channelsPerWorker, logging/@thorworkerdetail, are coming direct from the configuration, without being overridden, and therefore there is no point in storing and sending them.
Also some settings are used by workers like "managerMemory" - prefer isContainerized() in code rather than #ifdef _CONTAINERIZED
- prefer out of method static's than in-method static objects.
Addressed all three points in commit 6c97653:
|
…), move statics Co-authored-by: jakesmith <902700+jakesmith@users.noreply.github.com>
Code Review Changes (latest commit)
1. Optimized additional settings - Only include settings truly SET by manager:
@channelsPerWorker,logging/@thorworkerdetail,@name,@nodeGroup(already in config)managerMemory(not used by workers)@masterBuildTag,@masterTotalMem,@thorPath,@query_so_dir,@dllsToSlaves,@thorTempDirectory,workerMemory2. Replaced #ifdef with isContainerized() - More flexible runtime check
3. Moved in-method statics to file scope - Better code organization:
managerAdditionalSettings,managerAdditionalSettingsCrit,managerConfigHookworkerStoredManagerSettings,workerManagerSettingsCrit,workerConfigHookOriginal prompt
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.