2011/10/24 shared mailinglists <[email protected]>:
> During the run, I use iptables to simulate a network partition in which one
> node in the cluster is disconnected from the other four (but all five remain
> connected to the client). To disconnect from node A, for example, I run:
>
> sudo /sbin/iptables -A INPUT -s <node A> -j REJECT
> sudo /sbin/iptables -A OUTPUT -d <node A> -j REJECT

This will not simulate a network partition. It will simulate Riak not
running on the given node. REJECT means a response is "sent back" to
the requestor, saying that the connection was rejected. Using DROP as
your target would more closely mimick a network partition as any
attempts to contact the node in question will be met with silence.


-- 
Soren Hansen        | http://linux2go.dk/
Ubuntu Developer    | http://www.ubuntu.com/
OpenStack Developer | http://www.openstack.org/

_______________________________________________
riak-users mailing list
[email protected]
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to