LamaAni / postgres-xl-helm

A postgres-xl chart for helm
MIT License
9 stars 2 forks source link

Added fix for long names using host aliases. #39

Closed LamaAni closed 4 years ago

LamaAni commented 4 years ago

What:

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.

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

sstubbs commented 4 years ago

Brilliant! Will test this now.

LamaAni commented 4 years ago

Brilliant! Will test this now.

Awesome, waiting on your approval.