Simulating timeout for your redis server (Timeout performing EVAL)



I do not know why people would wanna do this .... .but i was tasked to do this. Maybe for tester to test it out. Here are some of the steps to reproduce this :

1. make sure you have installed redis. then go to C:\Program Files\Redis and run redis-cli
Assuming you are running your redis-server locally.

2. run the command "client pause" (this will pretty much stall your redis-server)

3. Hit into the page that uses redis-cache and you will get a time out similiar to the one below :-

Timeout performing EVAL, inst: 1, mgr: ExecuteSelect, err: never, queue: 2, qu: 0, qs: 2, qc: 0, wr: 0, wq: 0, in: 0, ar: 0, IOCP: (Busy=1,Free=999,Min=8,Max=1000), WORKER: (Busy=1,Free=32766,Min=8,Max=32767)

Normally you get this error when you redis server is running really slow.....




Comments

Popular posts from this blog

The specified initialization vector (IV) does not match the block size for this algorithm