Hi guys,
I don’t know how to properly give a “title” to this so let’s start.
Our current environment is moving towards automation (CI/CD, Packer, Google GCP, etc). Less and less human interaction.
With that being said, a VM/container would be redeployed exactly with the same name it had before. Example: payment01.
The current problem tho is that:
- payment01 is deleted
- HaProxy will stop sending requests to it. L7 healthy check.
- payment01 is back online but via new VM or new container
- HaProxy doesn’t it
HaProxy still expecting the payment01 that no longer exists. Different ID, DNS, etc.
To make it to send requests to the new VM/container, I have to reload it.
This looks like some sort of DNS “caching issue”. How can I possibly fix this??
Is there a refresh the DNS caching every 10seconds or something like that??
Any plan b, c, etc, are welcome.
Thanks guys.
1 post - 1 participant