I am running dshackle v0.14.0.
I want to test caching mechanism. The idea is to run local socat wich point to my private ethereum node and point dshackle to socat, instead of ethereum node. Make curl request to dshackle 2 times. First time I should see log in the socat as dshackle need to request it from ethereum node, second time I should not see the log in the socat, as web3_proxy should return result from cache.
It doesn't work for me, as I see all curl requests in the socat log.
How to reproduce
With the following command I am running websocket:
Make curl requests multiple times. In the socat log you will see all the requests, but should see only the first one. As I understand cache mechanism doesn't work. Tried both with and without reds
Could you please help me to understand what I am doing wrong, or it's expected behavior?
I am running dshackle v0.14.0. I want to test caching mechanism. The idea is to run local socat wich point to my private ethereum node and point dshackle to socat, instead of ethereum node. Make curl request to dshackle 2 times. First time I should see log in the socat as dshackle need to request it from ethereum node, second time I should not see the log in the socat, as web3_proxy should return result from cache. It doesn't work for me, as I see all curl requests in the socat log.
How to reproduce
With the following command I am running websocket:
Where eth.hckn.dev - private ethereum node.
Also, I running dshackle with the following config:
Also, I've tried redis cache:
Where
http://10.1.193.177:8546
is the address of local websocket. Redis running in the docker container.The command to run dshackle:
Make the following curl request to dshackle:
where
10.1.193.177
- ip address of the server where dshackle is running.Take a look to the socat log with:
Make curl requests multiple times. In the socat log you will see all the requests, but should see only the first one. As I understand cache mechanism doesn't work. Tried both with and without reds
Could you please help me to understand what I am doing wrong, or it's expected behavior?