I need to test my app in following scenario:
I could simulate this pulling the adsl cable out of my ruter, but then it won't reconnect fast enough. Is this any way to simulate this programmatically?
Simulating a hard-down or node failure is fairly easy. All you have to do is turn off the node itself to verify how the system responds (system reconvergence). If high availability is enabled, a secondary/standby node will immediately take over and become the active node, servicing user requests.
If you have a Mac, you can do it with Network Link Conditionner. It's really efficient, see here the step to install it :
http://nshipster.com/network-link-conditioner/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With