-
Notifications
You must be signed in to change notification settings - Fork 1
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
allow env variables for numa settings #152
Conversation
OMNISTAT_EXPORTER_COREBINDING, OMNISTAT_VICSERVER_COREBINDING Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
omnistat/omni_util.py
Outdated
@@ -132,6 +132,9 @@ def startVictoriaServer(self): | |||
|
|||
vm_logfile = self.runtimeConfig[section].get("victoria_logfile", "victoria_server.log") | |||
vm_corebinding = self.runtimeConfig[section].getint("victoria_corebinding", None) | |||
# corebinding can also be overridden by separate env variable | |||
if "OMNISTAT_VICSERVER_COREBINDING" in os.environ: |
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.
This is minor, but we use victoria_corebinding
and OMNISTAT_VICSERVER_COREBINDING
, and internally we use vm
for the variables. It would be nice to settle on one name for Victoria Metrics.
Victoria Metrics itself uses either victoria-metrics
, victoriametrics
, or vm
. I understand victoriametrics
is long, and vm
can be confused with virtual machine.
Any thoughts? Even if vm
makes me think of virtual machine, there's enough context and it could work. We could also use vmserver
: OMNISTAT_VMSERVER_COREBINDING
and vmserver_corebinding
.
I'm a bit hesitant to change the existing nomenclature in the runtime config file which goes beyond a core binding setting, e.g.
I'm all for consistency but we have also advertised Seems we have the following options:
Options 2. and 3. would introduce a version incompatibility for the runtime file and environment variable settings. Granted, most folks are using the supplied runtime file, so now would be the time to do it but I confess to wondering if it's that useful to change things now. Thoughts? |
Option 4 (assuming we don't care about env variable name consistency with prometheus settings in user mode which are likely to get deprecated at some point)
This would make them consistent with the runtime variable names. Since the corebinding variable is new, that won't affect anyone and we could continue to support OMNISTAT_VICSERVER_DATADIR with a warning to phase out in future release. |
…put slightly Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Via direct comms, Option 4 above is the preference. |
OMNISTAST_VICTORIA_COREBINDING; also update datadir override to OMNISTAT_VICTORIA_DATADIR. The older OMNISTAT_VICSERVER_DATADIR setting is still supported for the time being but a warning is thrown to use the new name. Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
Signed-off-by: Karl W Schulz <karl.schulz@amd.com>
No description provided.