Hi all,
I’m deploying GN4.4.5 with elasticsearch and postgis under Kubernetes.
2 instances for ES, 2 instances for PG.
With 1 GN4 instance, I can connect with admin/admin.
With 2 GN4 instances, I can’t, I can, I can’t, I can’t, I can’t, it’s depend about the target instance.
The problem is the session localization (on server), so only one instance knows admin, nope for the other one, so I loose the connection.
A way for this issue is usint Redis database to centralize the GN session in one place for both instance.
My headache begin there:
How to tell GN4 “stop to use the local session” =>“use Redis as the store”?
I tried JAVA env.
-Dredis.host=redis-service
-Dredis.port=6379
-Dredis.password=redispassword
I tried env.
- name: SESSION_STORE_TYPE
value: redis - name: REDIS_HOST
value: redis-service - name: REDIS_PORT
value: “6379” - name: REDIS_PASSWORD
value: redispassword
I tried the file “application.properties”
GN4 ignore all of these.
“curl redis-service:6379” works perfectly on each GN4 pod with Redis’ log connection visible (one for each curl…).
Does anyone have a way to connect Redis to GN4?
Thank you.