Skip to content

Commit d3a2926

Browse files
committed
refactor: use valkey only for caching
1 parent 653ce65 commit d3a2926

9 files changed

+13
-30
lines changed

docker-compose.infrastructure.yaml

+3-12
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
11
# base infrastructure
22

33
services:
4-
# redis:
5-
# image: redis:latest
6-
# hostname: redis
7-
# healthcheck:
8-
# test: ["CMD-SHELL", "redis-cli -p 6379 ping | grep PONG"]
9-
# interval: 1s
10-
# timeout: 3s
11-
# retries: 5
12-
134
valkey:
145
hostname: valkey
156
image: valkey/valkey:7.2.5
16-
command: "valkey-server --port 6380"
7+
command: "valkey-server --port 6379"
178
ports:
18-
- 16380:6380
9+
- 16379:6379
1910
healthcheck:
20-
test: ["CMD-SHELL", "valkey-cli -p 6380 ping | grep PONG"]
11+
test: ["CMD-SHELL", "valkey-cli -p 6379 ping | grep PONG"]
2112
interval: 1s
2213
timeout: 3s
2314
retries: 5

docker-compose.override.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# For local testing
22

33
services:
4-
# redis:
5-
# ports:
6-
# - 16379:6379
4+
valkey:
5+
ports:
6+
- 16379:6379
77

88
arango:
99
environment:

env/admin.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ APM_ACTIVE=false
1818
# DB
1919
# # VALKEY
2020
REDIS_DATABASE=0
21-
REDIS_SERVERS='[{"host":"valkey", "port":6380}]'
21+
REDIS_SERVERS='[{"host":"valkey", "port":6379}]'
2222
REDIS_AUTH=
2323
REDIS_IS_CLUSTER=false
2424
DISTRIBUTED_CACHETTL=300

env/ed.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ APM_SERVICE_NAME="event-director"
1616
# DB
1717
# # REDIS
1818
REDIS_DATABASE=0
19-
REDIS_SERVERS=[{"host":"valkey", "port":6380}]
19+
REDIS_SERVERS=[{"host":"valkey", "port":6379}]
2020
REDIS_AUTH=
2121
REDIS_IS_CLUSTER=false
2222
DISTRIBUTED_CACHETTL=300

env/event-flow.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ MAX_CPU=1
88
# REDIS
99
REDIS_DATABASE=0
1010
REDIS_AUTH="exampleAuth"
11-
REDIS_SERVERS='[{"host":"valkey", "port":6380}]'
11+
REDIS_SERVERS='[{"host":"valkey", "port":6379}]'
1212
REDIS_IS_CLUSTER=false
1313
DISTRIBUTED_CACHETTL=300
1414
DISTRIBUTED_CACHE_ENABLED=false

env/rule-executer.env

+1-9
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,9 @@ APM_SECRET_TOKEN=
1515
APM_ACTIVE=false
1616
APM_SERVICE_NAME="rule-901"
1717

18-
# REDIS
19-
REDIS_DATABASE=0
20-
REDIS_SERVERS=[{"host":"valkey", "port":6380}]
21-
REDIS_AUTH=
22-
REDIS_IS_CLUSTER=false
23-
DISTRIBUTED_CACHETTL=300
24-
DISTRIBUTED_CACHE_ENABLED=false
25-
2618
# NODE CACHE
2719
LOCAL_CACHETTL=300
28-
LOCAL_CACHE_ENABLED=false
20+
LOCAL_CACHE_ENABLED=true
2921

3022

3123
# ARANGO

env/tadp.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ APM_SERVICE_NAME="tadp"
1515

1616
# REDIS
1717
REDIS_DATABASE=0
18-
REDIS_SERVERS=[{"host":"valkey", "port":6380}]
18+
REDIS_SERVERS=[{"host":"valkey", "port":6379}]
1919
REDIS_AUTH=
2020
REDIS_IS_CLUSTER=false
2121
DISTRIBUTED_CACHETTL=300

env/tms.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ APM_ACTIVE=false
1717
# DB
1818
# # REDIS
1919
REDIS_DATABASE=0
20-
REDIS_SERVERS=[{"host":"valkey", "port":6380}]
20+
REDIS_SERVERS=[{"host":"valkey", "port":6379}]
2121
REDIS_AUTH=
2222
REDIS_IS_CLUSTER=false
2323
DISTRIBUTED_CACHETTL=300

env/tp.env

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ APM_ACTIVE=false
1515

1616
# REDIS
1717
REDIS_DATABASE=0
18-
REDIS_SERVERS=[{"host":"valkey", "port":6380}]
18+
REDIS_SERVERS=[{"host":"valkey", "port":6379}]
1919
REDIS_AUTH=
2020
REDIS_IS_CLUSTER=false
2121
DISTRIBUTED_CACHETTL=300

0 commit comments

Comments
 (0)