alexei-led / pumba

Chaos testing, network emulation, and stress testing tool for containers
Apache License 2.0
2.78k stars 195 forks source link

Add delays between container groups (more of an enhacement) #73

Open gtato opened 6 years ago

gtato commented 6 years ago

In the context of distributed services it would be nice to simulate different latencies between groups of containers. For example, instead of providing the filtering IP and list of containers, the user can provide a graph file where different groups are defined

pumba netem delay --graph graphfile

and the graph file can be something like this

groups:
    group_1:
        container_1_1 
        container_1_2 
    group_2:
        container_2_1 
        container_2_2
        ip_2_3 # you can support both IPs and container names 
    group_3:
        container_3_1 

filters: 
   filter_1:
       src_group: group_1
       dst_group: group_2
       delay: 150
   filter_2:
       src_group: group_1
       dst_group: group_3
       delay: 250
alexei-led commented 6 years ago

@gtato nice idea, need to think... and create well-defined spec. Want to contribute spec or/and code as PR?