Hi All,
I configured a cluster which cross two data center, each datacenter has 3 nodes, the configuration as follows,
A. Data center 1:
cockroach.exe start --insecure --host=198.1.3.119 --locality=datacenter=us-1
cockroach.exe start --insecure --host=198.1.3.119 --store=node2 --http-port=8072 --port=26262 --join=198.1.3.119:26257 --locality=datacenter=us-1
cockroach.exe start --insecure --host=198.1.3.119 --store=node3 --http-port=8073 --port=26263 --join=198.1.3.119:26257 --locality=datacenter=us-1
B. Datacenter 2:
cockroach start --insecure --store=node5 --host=198.1.3.124 --http-port=8053 --port=26245 --join=198.1.3.119:26257 --locality=datacenter=us-3 &
cockroach start --insecure --store=node6 --host=198.1.3.124 --http-port=8056 --port=26246 --join=198.1.3.119:26257 --locality=datacenter=us-3 &
cockroach start --insecure --store=node7 --host=198.1.3.124 --http-port=8057 --port=26247 --join=198.1.3.119:26257 --locality=datacenter=us-3 &
I can use Cockroach sql client connect any node, and create db, table, and other node will see it. It’s correct. But when I shut down the first node, the port is 26257, then other node cannot see db now. Is it correct? My expectation is what any node can work independent when lost the connection to each other, and the data can sync when the connection recover.
Thank you for your great help.
WIlliam