Brief Description of the Bug
Hi, we use NextJS deployed on Docker and with Kubernetes and we use this package with the redis-string example as it is recommended in the NextJS docs to use another cache configuration when using kubernetes.
When a second kubernetes pod is spawned the memory of the first pod is copied, and as such the redis client connection too.
And as soon as the second pod starts to talk to redis I get a Socket already opened and the pod crashes because it tried to use the same connection socket as the first.
I don't really know if it's the responsibility of this package to solve this but maybe you can help me.
Basically we would need a way to create a new connection if a new pod spawn, because the connection — if I understand correctly — is only initiated once when the NextJS process starts.
Thanks.
Severity
Major
Frequency of Occurrence
Always (when a second pod spawn)
Steps to Reproduce
Complicated...
Expected vs. Actual Behavior
A way to create another connection when a pod starts
Environment:
- OS: Linux
- Node.js version: 18.9.0
@neshca/cache-handler version: 0.6.1
next version: 14.0.4
Dependencies and Versions
redis: 4.6.12
Brief Description of the Bug
Hi, we use NextJS deployed on Docker and with Kubernetes and we use this package with the redis-string example as it is recommended in the NextJS docs to use another cache configuration when using kubernetes.
When a second kubernetes pod is spawned the memory of the first pod is copied, and as such the redis client connection too.
And as soon as the second pod starts to talk to redis I get a
Socket already openedand the pod crashes because it tried to use the same connection socket as the first.I don't really know if it's the responsibility of this package to solve this but maybe you can help me.
Basically we would need a way to create a new connection if a new pod spawn, because the connection — if I understand correctly — is only initiated once when the NextJS process starts.
Thanks.
Severity
Major
Frequency of Occurrence
Always (when a second pod spawn)
Steps to Reproduce
Complicated...
Expected vs. Actual Behavior
A way to create another connection when a pod starts
Environment:
@neshca/cache-handlerversion: 0.6.1nextversion: 14.0.4Dependencies and Versions
redis: 4.6.12