https://linen.dev logo
Hello everyone.
# mirrord-help
w
Hello everyone. I'm trying to run mirrord with --steal towards a deployment with 2 replicas, but for some reason I only get some of the calls I make forwarded to the local process. In other words, If I run a sequence of
curl
requests to the remote endpoint, I only get about 1/2 of them in my local service. Can it be because the deployment has 2 replicas? This is how I run mirrord
Copy code
mirrord exec --steal --no-remote-dns --no-outgoing --agent-log-level debug -n <my namespace> -a <my namespace> --target deployment/<my deployment>/container/<my container> -- <my command here>
Example: when I run this
Copy code
for i in `seq 1 10`; do curl -so /dev/null https://<my hostname>/metrics?a=$i; done
I get this:
Copy code
{"level":"info","ts":1748263191.7260852,"caller":"http/server.go:3301","msg":"10.11.220.208 - - [26/May/2025:14:39:51 +0200] \"GET /metrics?a=1 HTTP/1.1\" 200 9764"}
{"level":"info","ts":1748263192.802208,"caller":"http/server.go:3301","msg":"10.11.220.208 - - [26/May/2025:14:39:52 +0200] \"GET /metrics?a=3 HTTP/1.1\" 200 9762"}
{"level":"info","ts":1748263193.9221797,"caller":"http/server.go:3301","msg":"10.11.220.208 - - [26/May/2025:14:39:53 +0200] \"GET /metrics?a=5 HTTP/1.1\" 200 9763"}
{"level":"info","ts":1748263195.3956103,"caller":"http/server.go:3301","msg":"10.11.220.208 - - [26/May/2025:14:39:55 +0200] \"GET /metrics?a=8 HTTP/1.1\" 200 9760"}
{"level":"info","ts":1748263196.0432932,"caller":"http/server.go:3301","msg":"10.11.220.208 - - [26/May/2025:14:39:56 +0200] \"GET /metrics?a=9 HTTP/1.1\" 200 9762"}
{"level":"info","ts":1748263196.7089062,"caller":"http/server.go:3301","msg":"10.11.220.208 - - [26/May/2025:14:39:56 +0200] \"GET /metrics?a=10 HTTP/1.1\" 200 9762"}
confirmed, with one replica I get all the requests
a
hey @whites_52471 - multi replica session requires the operator
without the operator, it uses one of the pods.