Open anhhuyla opened 8 years ago
timeout 500 milliseconds set in your twemproxy config seems to be very low considering the server communication latency and response time in case of high traffic. Have you tried increasing the timeout config? As your question seems posted long ago, could you pl share the solution in case if you had successfully resolved it?
We have setup twemproxy (nutcracker) with redis cache for our Social Network site Thulya recently and came across the same error. We increased the timeout in the twemproxy config to 30 minutes and set the idle timeout in redis.config to 30 seconds so all idle connections will be freedup by redis. For now the errors vanished but not sure if this is the right fix for this issue.
i want to know how to solve this problem
Hello Pros,
I need to use twemproxy to shard keys on my redis nodes, so first i take some benchmark :
with data size at 20 kbyte, ccu = 1000, the result looks very well.
Now I add more redis nodes to shard the keys, so the twemproxy config as this :
I re-benchmark again with the same command :
# redis-benchmark -p 7000 -c 1000 -n 10000 -d 20480 -k 1 -r 10000 -t set,get -q -l
Now the twemproxy log get lot of timed out errors :
I check the redis slow log but found nothing :
It looks like that the twemproxy get worse when add more redis nodes => it should be good at this because it was born to do this :)
Is it normal or I have missed something ?
Plz show advices, I really need to use twemproxy to scale out my redis cluster and I plan to add dozens of redis nodes behind a twemproxy.
Version info :
More advices are also appreciate.
Thank you & Brs.