terraform-aws-gitlab-runner
terraform-aws-gitlab-runner copied to clipboard
Race condition around elastic IP
We have enable_eip = true, and it seems to cause a race condition when rolling out a deployment on the GitLab Runner ASG. If the new instance tries to assign the IP before the old instance has shut down / released it, then it fails to come up cleanly and does not pick up jobs.
I'm not sure the best way to solve this, but perhaps either (or both):
- a retry / backoff for assigning the EIP in eip.tpl
- some sort of health check to automatically restart/replace the instance as a whole if it never comes up cleanly
Sorry cannot help, hope someone in the community can. We are not using EIP.
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 15 days.
This issue was closed because it has been stalled for 15 days with no activity.