Almanac register more than two hosts failed


#1

hi, I want to install phabricator into cluster mode, but when configing it,(https://secure.phabricator.com/book/phabricator/article/cluster_devices/), add more than one device, i used share keys, but register the second device failed.
details:
first devcie register succed:
root #> almanac register --device lxbkeywarden --private-key /root/.ssh/lxb/id_rsa --identify-as lxb11
second device register failed:
root #> almanac register --device lxbkeywarden --private-key /root/.ssh/lxb/id_rsa --identify-as lxb49

Usage Exception: This host already has a registered public key ("/opt/phabricator/phabricator/conf/keys/device.pub"). Remove this key before registering the host, or use --force to overwrite it.

so, how can i regiter two device for cluster mode?


#2

Why does device.pub already exist on the second host?

If it exists because you previously ran some other almanac register command, it is safe to use --force to overwrite it.

If it exists because /opt/phabricator/phabricator is a NFS mount, clustering currently relies on each working copy being able to have a unique identity file on disk, which won’t work if the directory is an NFS mount. Using NFS to distribute the phabricator/ code is normally at odds with clustering goals: clustering usually is an effort to increase availability, but if you use NFS to support clustering you still have NFS as a single point of failure.


#3

hi, epriestley, thank you , but i still have some confusion on configuring phabricator cluster mode.
if i have three nodes and use share keys , should i regiser them in each node( registering three hosts in every node) or just register itself ?


#4

hi, epriestley, thank you , but i still have some confusion on configuring phabricator cluster mode.
if i have three nodes and use share keys , should i regiser them in each node( registering three hosts in every node) or just register itself ?


#5

hi, epriestley, thank you , but i still have some confusion on configuring phabricator cluster mode.
if i have three nodes and use share keys , should i regiser them in each node( registering three hosts in every node) or just register itself ?


closed #6