There is an issue regrading sockets that i am facing, assume we have two services running A and B and both services have 5 replicas. client is connected to service B and service B sends socket to service A. Initially assumption was service A pods are receiving 5 independent socket(because of 5 pods) and distribution lock was implemented but same issue was being replicated also injected pod information in node server after that we came to know same pod was receiving 5 sockets. also mentioning that redis-adptar pub/sub model is also implemented.
-
Can you edit the question to include a minimal reproducible example, and make it clearer what problem exactly you're running into? Assuming you have Services in front of both sets of Pods, the external client could hit any B instance which could connect to any A instance; if you need a distributed lock to ensure you're not doing parallel processing then just using a single replica would be simpler and more efficient.David Maze– David Maze2025-10-14 13:12:18 +00:00Commented Oct 14 at 13:12
-
@DavidMaze well i will create minimal reproducible example shortly but upon further investigation i found multiple connection of socket are being created. i guess its not related to K8.Saleh Muahammad– Saleh Muahammad2025-10-14 14:33:11 +00:00Commented Oct 14 at 14:33
Add a comment
|