Portal Home > Knowledgebase > Articles Database > building a cdn


building a cdn




Posted by ankurs, 08-22-2012, 05:11 AM
So from what i know of a cdn its basically cache servers with smart dns routing. Do you think its feasible to make a simple cdn ? to serve images/static content. 1. have multiple servers in multiple locations ex. server A/B/C in US and D/E in EU 2. the above will pull data from origin 3. sending users to right servers, this can be done using geo dns & some smart logic which checks server disk space+io/network usage before deciding which ip it should resolve to my question is, is there any such dns server ? which can do the above pt.3 ? if not, how hard can this be to code what other things i need to consider while building my own cdn ? this will be just for 1 site and not multiple sites

Posted by snickn, 08-22-2012, 06:18 AM
Have you looked at OnApp's CDN product? http://onapp.com/cdn/

Posted by iexo, 08-22-2012, 06:33 AM
This is possible yes, but I'd also suggest adding your hardware into an OnApp CDN, pulling in other edge nodes and putting yours on the OnApp marketplace gives you a great Content Delivery setup.

Posted by ankurs, 08-22-2012, 06:46 AM
dont like their pricing model, they are basically charging for dns routing i doubt if they actually check server health (disk/network usage)

Posted by cacheflymatt, 08-22-2012, 09:03 AM
Are you looking to build the CDN for your own internal usage, or to resell? In both cases I think their pricing model is actually very aggressive vs. the cost of building that stack yourself.. And, as you point out, that includes the actual operation of the DNS side as well.. you can fire up today and do 20TB of cdn this month, and it prices you $100/mo.. not too bad, IMHO ( unless you have 20 developers that you pay less than 5 cents an hour) Once you get into the multi petabyte range it's cost prohibitive, but I'm guessing: a) you can negotiate and b) it's a small percentage of your margin with a reasonable sell price

Posted by ankurs, 08-22-2012, 09:20 AM
if it was for resell i would have gone with onapp, but this is going to be for internal use we push 90x of what u specified & this is bound to increase, so onapp cdn would $9000/mo only thing stopping me is a smart dns server, which i doubt needs 20 developers ? would gdnsd with proper plugin work for this task ?

Posted by cacheflymatt, 08-22-2012, 10:15 AM
Okay that simplifies it since you don't need features you wont use and don't need to worry about management/billing/API/reporting etc.. Probably but that wont easily factor in your disk usage and network metrics that you want to integrate - have you looked at powerdns + pipebackend? I haven't used it but if I was writing something doing dynamic dns based on lots of variables that's probably where I'd start. As a bonus I believe powerdns also has edns-client-subnet support baked in (though you'll still have to reach out to opendns and google to whitelist you), which is a huge win as well. p.s. what is your average object size? There's some bad http cache implementations floating around out there that don't handle multiple concurrent downloads of a cache-miss very well, which is problematic if you're pulling large files from origin..

Posted by snickn, 08-22-2012, 10:19 AM
Now days if you can get CDN providers down to $20/TB, can you really do this cheaper then a CDN provider? I am a DIY type too, but there are particular areas I just don't think you can do cheaper (maybe better)

Posted by eming, 08-22-2012, 05:37 PM
We're flexible when it comes to CDN pricing - did you discuss with us? There's quite a bit more to it oh, we absolutely do...

Posted by iwod, 08-23-2012, 02:55 AM
I have had exactly the same question in my head about making a CDN as well. As per my understanding, it isn't $100 a month, because that is what you pay for routing through their services only, add in another $100 for the controller server. Then you will finally have to pay for the bandwidth others are reselling it to you. Let say you get a very decent price @ $5/TB you are still looking to add $100 to the cost. Which totals up to $300. Of coz that is still cheap for this volume of bandwidth. Back to the original question Now just suppose I already have the spare 4TB of bandwidth in each server, 2 in US, 2 in EU and 1 in Asia. Thinking of a GeoDNS to better utilize those bandwidth?

Posted by ankurs, 08-23-2012, 07:50 AM
thanks, will look into it average is around 100mb i don't want to pay per gb, a fixed/mo or a pricing model similar to what managed dns providers do Last edited by ankurs; 08-23-2012 at 08:03 AM.

Posted by ankurs, 08-23-2012, 08:06 AM
u can, but i wouldn't build it for that small a usage if your pushing 100s of tb, then its worth trying to building your own

Posted by snickn, 08-23-2012, 08:10 AM
You could sign up for CDN77 to ry out the OnApp solution, that'd let you know if you would get the performance you expect.

Posted by eming, 08-23-2012, 08:38 AM
np - we can do that. This is not the place to discuss price though, so ping me if you are interested.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Acunett Fraud (Views: 837)


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.