[HN Gopher] Toxiproxy - simulate network and system conditions f...
       ___________________________________________________________________
        
       Toxiproxy - simulate network and system conditions for chaos
       testing
        
       Author : ekiauhce
       Score  : 85 points
       Date   : 2023-10-11 08:56 UTC (7 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | eatonphil wrote:
       | Tools like this and Jepsen and chaosmonkey do fault injection on
       | network and/or processes.
       | 
       | Are there any tools you like for storage fault injection?
       | 
       | Many database companies have an internal tool specific to their
       | database for this. I think Scylla has a public tool for storage
       | fault injection.
       | 
       | I've been experimenting with ptrace for storage fault injection
       | myself. And want to try FUSE and some other tech out.
       | 
       | https://notes.eatonphil.com/2023-10-01-intercepting-and-modi...
        
       | tlarkworthy wrote:
       | Oh I just started using this. I was a bit disappointed initially
       | that it can't randomly drop connections through its probabilistic
       | filters, but you can still achieve this with another process
       | commanding it so it's stayed.
        
         | jsiepkes wrote:
         | I think when doing integration testing with ToxiProxy often
         | people want it to be "predictable". Most of the time you just
         | want to prove the application behaves correctly when it needs
         | to reconnect. Otherwise you can get tests which sometimes fail
         | and sometimes not. That's also a valid test, but then it's a
         | smoke test.
         | 
         | What I often do is create a small framework which uses a pseudo
         | random number generator for all the "randomness". I then feed a
         | list of seeds to this random number generator which makes the
         | tests "random" but repeatable since you know the seed.
        
       | Arubis wrote:
       | On a similar note, my favorite-named network testing tool:
       | https://github.com/tylertreat/comcast
        
       ___________________________________________________________________
       (page generated 2023-10-11 16:00 UTC)