New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
Digital Ocean Floating IPs
So am I being thick here?
In terms of "Automatic Failover" it's not actually automatic. To achieve "High Availability" I need to notice it's down and then make the switch manually. Or I need to do some scripting myself to make it happen truly automatically.
In other words its not automatic, in which case that's a bit shit.
I can see a great use for it in a development / live environment allowing you to duplicate and switch but still...
Comments
Yes, and they provide hand-holding instructions for it.
https://www.digitalocean.com/community/tutorials/how-to-set-up-highly-available-web-servers-with-keepalived-and-floating-ips-on-ubuntu-14-04
Floating IPs don't usually involve failover. It's usually under called load balancer. Same for AWS with elastic IP AFAIK.
As a side effect, seems like this is a way to have 2 IPs per derplet at no extra cost? As it's only charged when detached.
Didn't get a chance to play with this just yet, but I hadn't thought of it this way... interesting.
Still don't understand why DO doesn't add multiple IPs per droplet already.
Harsh
Either way, first implementation and definitely a good time to collect feedback, see how people use it, and move from there.
A poor man's "floating IP" - https://github.com/blackdotsh/UptimeFlare
You can code your own monitor and just call the php function cfBkup
That's ur script right? Just wanna ask.
Yep.
@Lee just wait until third party monitoring sites like pingdom add integration for this feature and will make it truly automatic for you.
It can't be automatic without some application layer knowledge. I.e. DO can know when your whole droplet is down / turned off, but they don't know when the web server inside your droplet is down or when the database behind that web server is down. So you will need some application specific knowledge and custom monitoring / custom failover triggering.