Hi,

I am trying to build a development environment with 3 solr nodes and 1
zookeeper node using Vagrant.

I am using example/collection1 with 2 shards, standard tutorial.

Right now, this is my Vagrantfile:

VAGRANTFILE_API_VERSION = "2"
> Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
>   config.vm.box = "ubuntu1204server"
>   config.vm.define "node1" do |n1|
>   n1.vm.network :forwarded_port, host: 8983, guest: 8983
>   n1.vm.network "private_network", ip: "172.20.20.20"
>   end
>   config.vm.define "node2" do |n2|
>   n2.vm.network :forwarded_port, host: 7983, guest: 7983
>   n2.vm.network "private_network", ip: "172.20.20.21"
>   end
>   config.vm.define "node3" do |n3|
>   n3.vm.network :forwarded_port, host: 6983, guest: 6983
>   n3.vm.network "private_network", ip: "172.20.20.22"
>   end
>   config.vm.define "zk" do |zk|
>   zk.vm.network :forwarded_port, host: 2181, guest: 2181
>   zk.vm.network "private_network", ip: "172.20.20.23"
>   end
> end



I am starting each solr with *java -Djetty.port=<host_port>
-Djetty.host=<private_network_ip> -DzkHost=172.20.20.23:2181
<http://172.20.20.23:2181>*

And it is working fine. I see the nodes connecting at Zookeeper and see the
leader election happening. Problem is with the shard replica node.

When I run the third node it is trying to connect at 10.0.2.15, which I
know is the NAT ip that vagrant uses. But as I configured jetty.host,
shouldn't Solr being using it?


-- 
Alexander Ramos Jardim

Reply via email to