Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a 2nodes Cassandra ring on ec2 (10.96.31.143, 10.254.94.177) in the same zone (east-1). How can I introduce a 3 seconds delay for all cassandra-related network communications between them? I found 'dummynet' via Google as a possible solution but I haven't been able to figure a way. Thanks.

Regards,

-k

share|improve this question

migrated from stackoverflow.com Jun 9 '11 at 2:32

This question came from our site for professional and enthusiast programmers.

    
This probably belongs on Serverfault, but the normal way on Linux would be with the network emulator queuing discipline. linuxfoundation.org/collaborate/workgroups/networking/netem –  derobert Jun 8 '11 at 20:58
add comment

1 Answer

up vote 2 down vote accepted

You can use tc. Check out the link for a pretty good write up of how to use it

http://www.cyberciti.biz/faq/linux-traffic-shaping-using-tc-to-control-http-traffic/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.