You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ignite.apache.org by Anand Kumar Sankaran <an...@workday.com> on 2016/09/02 21:39:31 UTC
Re: Simulating network outages
Thanks Yakov and Alexey. Appreciate the help.
On 8/31/16, 6:47 AM, "Yakov Zhdanov" <yz...@apache.org> wrote:
You can shutdown and then restart (after some sleep) network stack on the
host. I remember doing that on Fedora several years ago for exactly the
same purposes.
--Yakov
2016-08-31 15:21 GMT+03:00 Alexey Goncharuk <al...@gmail.com>:
> Hi,
>
> As a starting point you can take a look
> at org.apache.ignite.spi.discovery.tcp.ServerImpl#forceNextNodeFailure
> which forces DiscoverySpi to drop next node from the topology (not sure if
> this is what you need). Another idea is to create a test discovery SPI
> which will terminate all it's threads when a test flag is set. Such nodes
> also should be segmented from the topology.
>
> Yakov, do you have other ideas?
>
> 2016-08-31 0:06 GMT+03:00 Anand Kumar Sankaran <anand.sankaran@workday.com
> >:
>
> > Hi
> >
> > I am implementing a segmentation resolver to handle split brain
> > scenarios. I need to simulate network outages to unit test this
> behavior.
> > Any suggestions on how to simulate this? I see that the TcpDiscoverySpi
> > has timeouts, is there a way to mock TcpDiscoverySpi to think that there
> is
> > a network outage to simulate such conditions?
> >
> > Thanks.
> >
> > --
> > anand
> >
>