Interrupción de CloudFlare®: soluciones y alternativas
Demasiado grande para fallar no se aplica en el mundo de los servidores. Independientemente de su proveedor, debe tener redundancia para lograr 100% tiempo de actividad. Se trata de evitar el único punto de falla..
CloudFlare® está caído?! Es imposible!
El apagón ha sido una realidad para muchos durante media hora. If you run an ecommerce website with a order every 20 segundos: it must have been painful.
Why so many people use CloudFlare® in the first place?
The answer is simple: it is free and fast!
How could you limit such outage in the future?
Unfortunately CloudFlare® does not allow secondary NS usage (which makes senses if you want to limit DDoS attacks, because you want to shield your main server as much as possible). However you could greatly have limited the outage if you did not use the «Auto» TTL setting within CloudFlare®. There is actually nothing automatic: it is in fact a TTL of 300 segundos (5 min). If you had a TTL set above the duration of the outage you could have greatly limited the impact on your users.
The Golden Rule: always set the highest TTL on all of your records.
Es decir: when you do not use the CloudFlare® proxy/CDN/cache
Shall you ditch CloudFlare®?
It all depends on your needs: if you run a personal websites, then CloudFlare® is certainly the best. If you run a busy online shop and want to keep CloudFlare®: then you should at least apply the golden rule above. However you can still consider the alternatives below.
What are the alternatives to CloudFlare®?
There are really two main groups:
- Free alternatives
- Paid alternatives
The free alternatives to CloudFlare®
Do not sign-up for free trials or free plans that limit the amount of queries per month: that will lead to a disaster! Once the limit is reached, the DNS requests will simply be left unanswered, turning you offline. It is also very easy to attack such websites and bring them down.
Most of the domains’ registrars include a free DNS service: you can easily use it and deploy this where you have registered your domain name. Bear in mind that when you transfer your domain names out: you are going to lose all of your DNS records… If you always renew at the same registrar then no problem.
Si tu corres 2 servers or more: you can deploy a cluster and serve your DNS from those different servers.
Finally the last alternative is to switch back to self-hosted DNS.
The paid alternatives to CloudFlare®
The best paid alternative is nothing else than Ruta 53 from Amazon AWS®. All other offers are either overpriced, obscure (prices unknown), o not redundant enough due to a low amount of PoPs (Points-of-Presence). The deployment is so redundant that the engineers at AWS® use different domain extension as NS servers:
We have switched to it since the outage.