auto release floating back to the pool
HI, is there an option that can make neutron release floating IPs automatically if an instance has been idle for some time? thanks.
First time here? Check out the FAQ!
HI, is there an option that can make neutron release floating IPs automatically if an instance has been idle for some time? thanks.
Asked: 2018-11-10 14:04:12 -0600
Seen: 64 times
Last updated: Nov 10 '18
What do you mean by “idle”?
Even when you remove a floating IP from a server, it is not returned to the pool. You need to do that explicitly. You may however be able to automate this once you have a definition of “idle”.
if we define "idle" as there has been no interaction with the instance for the last 30 minutes. how do you think it would work out? I can imagine using ceilometer to monitor idleness and maybe use heat to automate releasing floating IPs
What do you mean with "no interaction"? No network access? No console access? No OpenStack API that affects the instance? Something else?
Yes, my idea was using Ceilometer as well, plus Aodh to send an alarm when the idle condition is reached. The alarm processor then returns the floating IP.
Or use Heat for more automation. However, I am not sure if your particular definition of idleness can be detected by Ceilometer/Aodh.