I just created a 3-node local cluster in my vmware virtual machine which IP is 192.168.213.142.
Now, I have 3 Nodes at 127.0.0.1, 127.0.0.2, 127.0.0.3, and in yb-ctl statu it shows
Web UI : http://127.0.0.1:7000/
I’m wondering how to access this web page with http://192.168.213.142:7000?
Got it thanks, apologies for not reading your question properly.
yb-ctl is meant for local development and functional testing only. It is not meant to reflect a true multi-node cluster that you would use for performance testing and/or production. So you can the following two modes with yb-ctl:
Single node RF1cluster where the bind IP address for all ports can be bound to 0.0.0.0 using the listen_ip param. This is the mode you use if you want to have external access.
Multi-node (say 3-node RF3) cluster where the bind IP addresses are a bunch of loopback IP addresses since binding to 0.0.0.0 by even one set of servers will immediately lead to all addresses getting occupied. Hence, this mode is only meant for internal access.
So all you have to do is to simply do the default yb-ctl create --listen_ip=0.0.0.0 which will create a single node RF1 cluster with external access instead of the multi-node mode you are using today.