setup volatile redis

This commit is contained in:
Bryan Stitt 2022-08-16 05:00:29 +00:00
parent d822c607d9
commit 1ea94bc1d0
4 changed files with 11 additions and 6 deletions

@ -75,6 +75,7 @@
- [x] drop redis-cell in favor of a simpler (and faster) implementation. - [x] drop redis-cell in favor of a simpler (and faster) implementation.
- redis-cell was giving me weird errors and it isn't worth debugging it right now. - redis-cell was giving me weird errors and it isn't worth debugging it right now.
- [x] create user script should allow setting the api key - [x] create user script should allow setting the api key
- [x] disable redis persistence in dev
- [x] attach a request id to every web request - [x] attach a request id to every web request
- [x] attach user id (not IP!) to each request - [x] attach user id (not IP!) to each request
- [x] fantom_1 | 2022-08-10T22:19:43.522465Z WARN web3_proxy::jsonrpc: forwarding error err=missing field `jsonrpc` at line 1 column 60 - [x] fantom_1 | 2022-08-10T22:19:43.522465Z WARN web3_proxy::jsonrpc: forwarding error err=missing field `jsonrpc` at line 1 column 60
@ -253,7 +254,6 @@ in another repo: event subscriber
eth_1 | 2022-08-10T23:26:08.917603Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 1/2/5/5 rpcs have 0x0538…bfff eth_1 | 2022-08-10T23:26:08.917603Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 1/2/5/5 rpcs have 0x0538…bfff
eth_1 | 2022-08-10T23:26:10.195014Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 1/2/5/5 rpcs have 0x0538…bfff eth_1 | 2022-08-10T23:26:10.195014Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 1/2/5/5 rpcs have 0x0538…bfff
eth_1 | 2022-08-10T23:26:10.195658Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 2/3/5/5 rpcs have 0x0538…bfff eth_1 | 2022-08-10T23:26:10.195658Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 2/3/5/5 rpcs have 0x0538…bfff
- [x] disable redis persistence in dev
- [ ] fix ip detection when running in dev - [ ] fix ip detection when running in dev
- [ ] cache api keys that are not in the database? - [ ] cache api keys that are not in the database?
- [ ] double check weight sorting code - [ ] double check weight sorting code

@ -7,3 +7,7 @@ services:
environment: environment:
#RUST_LOG: "info,web3_proxy=debug" #RUST_LOG: "info,web3_proxy=debug"
RUST_LOG: info RUST_LOG: info
volatile_redis:
image: redis
command: [ "redis-server", "--save", "", "--appendonly", "no" ]

@ -3,9 +3,10 @@
version: "3.4" version: "3.4"
services: services:
# TODO: configure persistence? its just caches, but cold caches can be slow
redis: redis:
build: ./redis-cell-server/ extends:
file: docker-compose.common.yml
service: volatile_redis
db: db:
image: mysql image: mysql

@ -4,11 +4,11 @@ version: "3.4"
services: services:
dev-redis: dev-redis:
image: redis extends:
command: [ "redis-server", "--save", "", "--appendonly", "no" ] file: docker-compose.common.yml
service: volatile_redis
ports: ports:
- 127.0.0.1:16379:6379 - 127.0.0.1:16379:6379
# TODO: expose these ports?
dev-db: dev-db:
image: mysql image: mysql