ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Kumar Sankaran <anand.sanka...@workday.com>
Subject Re: Simulating network outages
Date Fri, 02 Sep 2016 21:39:31 GMT
Thanks Yakov and Alexey.  Appreciate the help.


On 8/31/16, 6:47 AM, "Yakov Zhdanov" <yzhdanov@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 <alexey.goncharuk@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
    > >
    >
    


Mime
View raw message