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.
Comments
OP typed $200, I say about $200. Like you said, your solution costs more
Its a scale thing - if you dont need big scale then youre good with providers doing work for you (VPS, shared hosting, CDN).
If you are medium you buy dedis, custom solutions from providers.
If you are big you most likely rent a whole rack cabinet.
If you are extrabig you can build own DC or make custom agreements with big bois so your pricing is nice and they will pay you if they fail to provide services
@stevewatson301
What you should always do: "intelligent" health checks. That is: don't just check for e.g. a 200 response or ping but have scripts that proclaim the health status and have those checked. E.g. my servers indicate a starting maintenance to the dns health checks while they are still able to serve requests. So the dns has time to remove the server (needs 60sec for that) while the server still is capable of serving requests. This won't help with e.g. a server hardware failure or fiber cut but those are actually rare in comparison to e.g. human errors or stupidity. E.g. all commands like reboot/shutdown/service stop etc. are aliased to a script that first indicates an upcoming maintenance to dns, than sleeps for five minutes before doing anything that is requested by the command (e.g. "reboot"). So it is declared as "under maintenance" for health checks and removed from dns while still serving requests for 5 more minutes.
@AXYZE
That's true but by running my own CDN I gain advantage against my smaller competitors that run their services out of just one DC and go down if their provider goes down but also gain advantage against my competitors (small or big) that use services like e.g. Cloudflare and go down if Cloudflare goes down. The problem with CF and AWS is that they are so big that they centralize again through automation as otherwise they wouldn't be able to run their network. So with your own CDN you have latency optimization plus resilience and redundancy all woven in.
And also if you e.g. use BunnyCDN you cannot do canary releases easily the way I can by just testing new backends with e.g. one small country only (you still could do this if you control dns e.g. through geodns and only route like 99% traffic to Bunny and 1% elsewhere for a canary release test).
The other cheaper option compare to Amazon is keycdn.com
I am thinking about using several cheap bare metal dedis or low end vpses with unlimited bandwidth or large bw quotas at different locations for cdn network. I may set up nginx+varnish. I have hands on experience with this setup, and am using one of this for one of my sites. Right now, my question is that if I have several of these nginx+varnish boxes or vpses, how can set up my single domain to let people in asia accesing my singapore box, us east or west audience access their own local ones. My server will be in EU, because it is the cheapest place to have a powerful bare metal dedi.
I don't know how to set up this geodns round robin with single domain. This is my current situation. If I know how to make this happen, I think I can set up my in house cdn much cheaper than aws cf. I already identify wsi and dacentec and reliablesite for my us dedi providers, terrahost for vpn, php-friends and hetzner and netcup as my eu providers, for asia, maybe leaseweb or contabo or lightsail or terrahost. I think I can get less than $100 for my in house small scale cdn. The US and EU can be unmetered bw, Asia unmetered bw seems not possible.
I think for Asia your best bet would be either Contabo or cheapwindowsvps but neither have great local latencies
I'd stay away from cheapwindowsvps. Contabo is a good choice for their locations, BW and prices.
not at all no
but this many threads in that many weeks can be considered spammy, be careful kid
first 1TB is free anyway. So you are only paying for 1 TB.
What is LB?
Load balancer.
OK. I thought something new. LOL.
Actually, if I don't care about geoip smart thing, just want a dumb cdn, I think that a round robin LB can do the job. Probably this workflow will work: domain name point to the ip address of the LB VPS, then LB VPS round robin to several nginx-varnish cache servers.
Then if this is the case, I can put LB behind the cache server and before the application server, which is what I have now. Maybe a second LB is good, or may not be so important. LOL.
If I want to go free geoip, debian has a package of geoip freely available. Just don't know how to integrate this with the LB.
If you use round robin DNS, then that means users will not be automatically served by the closest cache server. In my mind, this gives you redundancy, but not one of the biggest advantages of a CDN: speed.
If all of your users and cache servers are in the same general geographic area, then perhaps this would be good enough.
In your in house cdn, do you fail over your lb?
Yes, LB (as edge node) failover is done via dns by external health checks, everything more inside the mesh internally by internal health checks.
So there is another server or third party service specifically monitoring these LBs without doing the LB job? Very smart idea.
Seems LB before varnish servers can protect from ddos attack. Interesting. In house cdn even dumb ones are beneficial.
Use cloudns here for the geodns feature and dns failover. https://www.cloudns.net/geodns/
It costs $10 monthly.
I personally use Google DNS and it is pay-as-you-go type ($0.70 per million queries per month). However, Google DNS doesn't have DNS failover. With Google DNS, you can configure routing rules at Google data center level instead of IP address.
At each region, you can create a DNS record of multiple regional load balancer IP address.
If the app server is down, the load balancer can handle the routing easily.
If the LB server is down, the browser can retry other IP addresses. Otherwise, you can build a service to monitor and change DNS record yourself.
I use Google DNS because I don't have many traffic to my website so a few millions queries with cost of $1-2 is a better choice for me than GeoDNS
OVH offer CDN too
Thank you ver much for the good info.
[Spam]
Mod edit (angstrom): Deleted spam
Performance much better on BunnyCDN or Keycdn
I suggested this as a budget option as the OP main query seems to be about cost, not performance.