[lvs-users] keepalived: can it be used in cloud environment?
greno at verizon.net
Thu Jan 14 02:02:04 GMT 2010
Siim Põder wrote:
> Gerry Reno wrote:
>> How can I use keepalived in a highly dynamic cloud environment? How can
>> I keep keepalived.conf up-to-date with the currently activated instances?
> However, the answer to your question depends on what you mean by
> "highly dynamic cloud environment". If you mean that changes in real
> servers and services will occur from time to time then keepalived
> absolutely supports this.
> If you mean that you will be updating the configuration every 3
> seconds, then YMMV. It might work, but you may discover new bugs as
> most people probably don't use keepalived that way.
> Also, you have to keep updating/generating the configuration file and
> reloading (no downtime luckily) - there is not CLI or any other
> similar machanism to dynamically update small parts of keepalived conf
> in memory. You would most likely have to do some imaginative scripting.
The problem is the number of contracting/expanding real servers.
My suggestion is if there was a mechanism whereby keepalived.conf could
just import from a database to know the current real servers, something
And then in keepalived.conf for virtual server 126.96.36.199 port 80 just
have something like "import servers.d/188.8.131.52:80-*.conf" or similar.
Now the servers.d/ files could be generated/removed according to current
active instances and then if the keepalived daemon/server needed
restarting it would always have the current state for the real servers.
More information about the lvs-users