hibari / hibari-doc

Hibari is a production-ready, distributed, ordered key-value, big data store. Hibari uses chain replication for strong consistency, high-availability, and durability. Hibari has excellent performance especially for read and large value operations.
http://hibari.github.com/hibari-doc
Other
9 stars 1 forks source link

Application Developer's Guide - Add a step to ensure Erlang nodes can communicate via TCP/IP #10

Open tatsuya6502 opened 13 years ago

tatsuya6502 commented 13 years ago

Bootstrapping multi-node Hibari will fail when the TCP ports used by Erlang nodes are blocked by the firewall. Add a step to the Application Developer's Guide to ensure those ports are not blocked and Erlang nodes can communicate each other.

$ clus/priv/clus-hibari.sh bootstrap hibari hibari.config 
Node hibari@hibari2 not responding to pings.
hibari@hibari1 => hibari@hibari1 hibari@hibari2 hibari@hibari3 hibari@hibari4

Try to disable filrewall on hibari2, hibari3 and hibari4 servers.

$ ssh hibari-mgr@hibari2
$ sudo /etc/init.d/iptables stop
Flushing firewall rules:                                   [  OK  ]
Setting chains to policy ACCEPT: filter                    [  OK  ]
Unloading iptables modules:                                [  OK  ]
$ exit

$ ssh hibari-mgr@hibari3
...
$ ssh hibari-mgr@hibari4
...
$ clus/priv/clus-hibari.sh bootstrap hibari hibari.config 
ok
hibari@hibari1 => hibari@hibari1 hibari@hibari2 hibari@hibari3 hibari@hibari4