Hi, I’m new to Yugabytes. Please help me to figure this out.
I have 2 CentOS servers, where I wanted to deploy YugaByteDB using the generic binary v2.14 on both servers and setup as a 2-node cluster with replication as 2.
First of all is it possible to do this with only 2 servers because the leader election needs 3 instances?
I tried deploying the following commands,
# VM 1
yb-master \
--master_addresses <vm-01>:7100,<vm-02>:7100 \
--rpc_bind_addresses <vm-01> \
--fs_data_dirs "/home/yugabyte/yb-data" > /home/yugabyte/yb-master.out 2>&1 &
# VM 2
yb-master \
--master_addresses <vm-01>:7100,<vm-02>:7100
--rpc_bind_addresses <vm-02>
--fs_data_dirs "/home/yugabyte/yb-data" > /home/yugabyte/yb-master.out 2>&1 &
# VM 1
yb-tserver
--tserver_master_addrs <vm-01>:7100,<vm-02>:7100
--rpc_bind_addresses <vm-01>
--fs_data_dirs "/home/yugabyte/yb-data" > /home/yugabyte/yb-tserver.out 2>&1 &
# VM 2
yb-tserver
--tserver_master_addrs <vm-01>:7100,<vm-02>:7100
--rpc_bind_addresses <vm-02>
--fs_data_dirs "/home/yugabyte/yb-data" > /home/yugabyte/yb-tserver.out 2>&1 &
But for some reason, VM1’s yb-master fails on VM1’s yb-tserver deployment. And again VM2 can run both at once.
VM2’s UI is accessible at port 7000 and shows this error.
Any help regarding this 2 node deployment is highly appriciated.