Closed LamaAni closed 4 years ago
Changed the inner container host resolve for postgres and nc using HOSTALIASES enviroment variable. The host names are now aliased by,
local-alias-[type]-[#]
For example, for a datanode:
local-alias-dn-0
The aliases are loaded into the config directory @ /config/host_aliases and a env is added named HOSTALIASES=/config/host_aliases to match.
/config/host_aliases
HOSTALIASES=/config/host_aliases
Then, create node uses these aliases to connect to the other nodes on the network.
Fix for issue: https://github.com/LamaAni/postgres-xl-helm/issues/36
Brilliant! Will test this now.
Awesome, waiting on your approval.
What:
Changed the inner container host resolve for postgres and nc using HOSTALIASES enviroment variable. The host names are now aliased by,
For example, for a datanode:
The aliases are loaded into the config directory @
/config/host_aliases
and a env is added namedHOSTALIASES=/config/host_aliases
to match.Then, create node uses these aliases to connect to the other nodes on the network.
Why:
Fix for issue: https://github.com/LamaAni/postgres-xl-helm/issues/36