Bitbucket Server Data Center cluster only contains one node
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
Unable to create Bitbucket Server Data Center cluster, only one node registered.
診断
If a node that is visible is stopped/shutdown, another node is registered in the cluster but restarting the previous node does not add it to the cluster.
Also, restarting Bitbucket Server Data Center does not resolve the issue
原因
Bitbucket Server Data Center has been configured to use multicast but the network does not support it.
ソリューション
Switch from multicast to TCP/IP
1. Stop cluster nodes.
2. In $BITBUCKET_HOME/shared/bitbucket.properties
change hazelcast.network.multicast=true
to hazelcast.network.multicast=false
3. In the same file, uncomment or add the following line: hazelcast.network.tcpip=true
4. Also in that file, uncomment or add the following line and use the the node IPs and port for the members:hazelcast.network.tcpip.members=10.xx.xxx.xx:xxxx,10.xx.xxx.xx:xxxx
5. Restart the nodes.
More info on the process can be found here: Installing Bitbucket Data Center (see #7. Start the first cluster node).