【发布时间】:2019-08-05 00:44:23
【问题描述】:
我有一个由 3 个节点组成的 cockroachdb 集群,它们位于 3 台不同的机器上,由 Docker Swarm 编排。
由于未链接到 cockroachdb 的原因,我的整个集群都崩溃了,每个 cockroachdb 容器都停止了。现在,我需要恢复并重新启动集群。
问题是,在启动过程中,蟑螂想在启动之前到达其他节点:
* WARNING: The server appears to be unable to contact the other nodes in the cluster. Please try:
*
* - starting the other nodes, if you haven't already;
* - double-checking that the '--join' and '--listen'/'--advertise' flags are set up correctly;
* - running the 'cockroach init' command if you are trying to initialize a new cluster.
问题是,如何在没有其他容器可用的情况下启动第一个容器?还是我需要启动一个新集群?
【问题讨论】:
标签: cockroachdb