Add options to /etc/resolv.conf in pxc/haproxy

Hello, I have problem with random restarting of haproxy pod due to fail probe (Readiness probe failed/reading initial communication packet’, system error: 2/Lost connection to MySQL server at ‘reading initial communication packet’, system error: 2), This happen about 30-40 times per day. I think it problem related to dns resolve race in pods when client connects, sometimes I got very slow dns resolving.
I would like to add single-request-reopen to /etc/resolv.conf to pxc and haproxy pods, but how can I do it with operator config ?

1 Like

Hello, I am not sure there is an easy way to do that and also not sure it will actually solve your problem. Have you considered running some dns caching solution instead?

1 Like