-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Problem
Our system administrators installs the servers (containing metwork module which has already been started) by cloning a server to another one.
So it results to identical uuid between servers (file ~/var/uuid in modules).
It results to identical reponse querying urls http://<server1>:<port>/uuid, http://<server2>:<port>/uuid.... in our case it causes a server to not be able to know it is the primary or secondary server.
Possible solution
We should study the possibility to initialize the uuid during the first start of the module on the server.
Involved code is https://github.com/metwork-framework/mfext/blob/master/adm/_circus.start
if ! test -s "${MFMODULE_RUNTIME_HOME}/var/uuid"; then
get_unique_hexa_identifier >"${MFMODULE_RUNTIME_HOME}/var/uuid"
fi
Today if the ~/var/uuid file is already present, it is not (re)initialized.... but it does not mean it is really unique (cf. "Problem")...