4 ms·
Other than using VMs and 'surprise' power-cycling them, what other ways are there to test these sorts of behaviours? Would an entry like `iptables -I forward -s
by shabble 10y ago
Other than using VMs and 'surprise' power-cycling them, what other ways are there to test these sorts of behaviours? Would an entry like `iptables -I forward -s ... -d ... -j DENY` on a host the 2 endpoints route over suffice to suddenly stop all traffic (or a pair of rules to cover a->b and b->a packets)?
Are there any tools for 'and suddenly, the network disappears/goes to 99% packetloss/10s latency' etc that you can use to test existing software? I'm imagining some sort of iptables/tc wrappers that can take defined scenarios (or just chaos-monkey it) and apply them to traffic, possibly allowing assertions as to how the application should behave for various situations.
- beached_whale 10y agowould ipconfig eth0 down do the trick?
- jsnell 10y agoI wrote a tool for basically that exact use case. It causes deterministic network faults (on a per-flow rather than per-interface basis), and takes trace files from both sides of the fault. [0] https://www.snellman.net/blog/archive/2015-10-01-flow-disruptor/ https://www.snellman.net/blog/archive/2015-10-01-flow-disrup...
- deleted 10y ago[deleted]
- greenleafjacob 10y agoJepsen [1]. For previous discussions on HN with MongoDB [2] Cassandra [3] RabbitMQ [4] and ETCD [5]. Others exist as well. [1]: https://github.com/aphyr/jepsen https://github.com/aphyr/jepsen [2]: https://news.ycombinator.com/item?id=9417773 https://news.ycombinator.com/item?id=9417773 [3]: https://news.ycombinator.com/item?id=6451885 https://news.ycombinator.com/item?id=6451885 [4]: https://news.ycombinator.com/item?id=7863856 https://news.ycombinator.com/item?id=7863856 [5]: https://news.ycombinator.com/item?id=7884640 https://news.ycombinator.com/item?id=7884640