Consider the following config:
components:
zss:
port: 123
haInstances:
first:
components:
zss:
port: 456
second:
components:
zss:
port: 567
cfgGet functions such as here
|
getStatus = cfgGetIntC(configmgr,ZSS_CFGNAME,port,3,"components","zss","port"); |
Do not check for HA. They just read the section they want, without considering the haInstances is an override.
In other servers, the haInstances section is respected by having the env vars they read be the result of a merge of haInstances over the standard config.
I expect that cfgGet functions should do the right thing rather than rely upon developers to remember this rule.
So, I think something should be doing this merge prior to zss reading values.
To apply an ha override, you must know the ha instance name.
That is captured as $ZWE_haInstance_id
I suggest a solution in zwe to create a file which has the HA override done, and place that in workspace/.env
There are other such HA-overridden temp files there in .env and .json format, but not for .yaml
Provided we have one, then zss can use it instead of the current ".zowe-merged.yaml" file which leaves the haInst as-is.
Consider the following config:
cfgGet functions such as here
zss/c/zss.c
Line 1124 in 940ad1a
Do not check for HA. They just read the section they want, without considering the haInstances is an override.
In other servers, the haInstances section is respected by having the env vars they read be the result of a merge of haInstances over the standard config.
I expect that cfgGet functions should do the right thing rather than rely upon developers to remember this rule.
So, I think something should be doing this merge prior to zss reading values.
To apply an ha override, you must know the ha instance name.
That is captured as
$ZWE_haInstance_idI suggest a solution in zwe to create a file which has the HA override done, and place that in workspace/.env
There are other such HA-overridden temp files there in .env and .json format, but not for .yaml
Provided we have one, then zss can use it instead of the current ".zowe-merged.yaml" file which leaves the haInst as-is.