although tcpcopy is not mature,it may be useful for you.
just try it
tcpcopy--It has request replication capability and is a powerful tool for testing tasks using netlink and raw sockets.
It can help you find bugs in your online project without actually being online. And it can alo be used to test the pressure that a system could endure.
For example, if your system already has "memcached" subsystem and you want to use "membase" to replace it, tcpcopy can assist you to test "membase". While your old memcached system is still running online, tcpcopy could copy the flow of packets from memcached to membase. From the point view of membase, the flow is accessing membase(just like membase online), and it will not affect memcached at all except network bandwidth and a little cpu load.
How to use tcpcopy?
the destination machine(root):
iptables -I OUTPUT -p tcp --sport 11211 -j QUEUE
./tcpcopy 18.104.22.168 11211 22.214.171.124 11211
It is tested in linux versions(kernal 2.6 or above).
Freebsd is not supported now.
© 2013 COUCHBASE All rights reserved.