Slashdot Mirror


Managing Bandwidth and Bandwidth Costs?

azav asks: "The company I work for has bandwidth requirements that occasionally spike to satisfy the immediate requirements of a several meg download to say 30,000 users. We hope to make this several million in the future. With that in mind, this request is directed to any person who manages a site that must deliver content on an irregular schedule. How do you manage your bandwidth costs? How do you manage the availability of bandwidth?"

"I'd like to illustrate the second concept. When you have your (for example) T1 and you're not really using it, you are still paying for all that bandwidth. It's like the car that sits in your garage, you're still paying insurance and car payments on it even though you're not using it. But then you put up a new game, serve new media or suddenly become the 'Site of the Day' and your bandwidth is flooded and maxed out. For that case, it's like you've bought a car that only goes 40 miles an hour but while the demand exists and only while that demand exists, you need a car that goes 150 miles an hour. You don't want to pay the money for a car that goes 150 because you only need it occasionally. Later, you know you'll need that car to go 220 but you're not there yet.

So if this makes sense with regards to bandwidth, it is like you'd want burst-bandwidth depending on need. Do any of you face this problem? If you do and have solved it, I'd love to hear about your strategy. Once this is solved, we get back to the first question, how do you manage that cost, put a number on it and either fit it in to your business model or pass it on to your customers?"

47 of 202 comments (clear)

  1. Doh!, by Anonymous Coward · · Score: 3, Funny

    We can do it the slackware way - tar it up and let someone else do it.

    Or we can do it the debian way - let someone else tar it up and then do it.

    But we like the Slashdot way most. Post it up and watch the traffic floooooooooooooooow....

  2. Many Options by voxel · · Score: 3, Informative

    Too many to spell out here.. Search google, LOTS of people sell bandwidth at X mbits/s with a BURST to x mbit/s.

    You figure our how much you will estimate you will use as a total per month, and you pay for that. You cruise at 2mbit/s mostly, then you explode to 145mbit/s and at the end of the month you average out to 6mbit/s.

    The idea is you BUY your peak speed, but pay for a low average..

    EVERYONE does this now, call around... It was kind of silly for you to ask Slashdot how to do this. UGH.

    - Voxel

    --
    Modesty is one of life's greatest attributes
    1. Re:Many Options by ischorr · · Score: 2, Insightful

      Argh! Must...read...source article...closer...

  3. Managing bandwidth by js62 · · Score: 4, Informative

    Where possible BitTorrent is your friend. If you can use it, let your customers help out with the bandwidth usage. They will probably get the file(s) quicker and you won't have servers getting torched.

    1. Re:Managing bandwidth by Neophytus · · Score: 3, Informative

      What must be noted is that a custom tracker would almost be a necessity. Trackers overload REAL easy, so having one you can run over a load balanced system or that keeps CPU and memory usage to a bare minimum is a must.

    2. Re:Managing bandwidth by flowerp · · Score: 3, Interesting

      Yeah, but you probably want to put out a branded version of BitTorrent with a nicer user interface.

      The current UI looks like puked out in 2 days ;)

      Also it might make sense to provide a BitTorrent version that installs through ActiveX. The download version should be offered for Linux, Mozilla and Opera users.

      Christian

      --
      --- Eat my sig.
    3. Re:Managing bandwidth by KDan · · Score: 4, Informative

      Yes, this is one thing where it would probably be VERY worthwhile to write a custom bit-torrent client (which looks like one of these installers which goes and downloads the data from a server, but actually goes and downloads it from everyone else). Just give people a choice in the maximum speed of the download, eg: 20k/sec if you don't want to share, 150k/sec if you're willing to share the file 10 times, and max out bandwidth if they're willing to share it whenever the application is open. Seeing as it seems you're distributing updates to an application, incorporating a bit-torrent client in the app shouldn't be beyond possibility, and even if only 10% of people who say they'll be sharing actually let it through their firewall, that will still make it a lot easier on your servers.

      Daniel

      --
      Carpe Diem
    4. Re:Managing bandwidth by jhines · · Score: 2, Insightful

      Is there any reason an FTP server couldn't support bit torrent as well?

      The combo of the two would be great for moving distributions and other mirroring of publicily available data.

    5. Re:Managing bandwidth by Specialist2k · · Score: 5, Insightful
      One problem might be corporate customers who have to pay for their bandwidth:

      If you had to pay for your bandwidth, would you give it for free to some company from which you are currently downloading a product update? I wouldn't...

    6. Re:Managing bandwidth by MortisUmbra · · Score: 3, Interesting

      Why is it that BitTorrent is the fix-all solution for the /. crowd? I for one HATE BT, because, seeing as I am on DSL, I usually get no more than 20K/Sec even when sharing to my maximum potential. Why you ask? Because due to the assymetrical nature of ADSL, once my upstream gets clogged, it cannot facilitate the neccisary ACK's that need to be sent out to the other end in order to ensure my download stays up.

      In other words, if I'm uploading at my maximum speed, I can't reply quickly enough to tell the nodes I am downloading from that the last packet got through, so they resend it instead of the next packet until I can squeak out an ACK or two to let them know to move on.

      BT is a nice concept, but in practice it needs work.

      --

      "The saddest words of mice and men, are not those which were, but should have been."
    7. Re:Managing bandwidth by mskfisher · · Score: 2, Informative

      The newest experimental versions of the BitTorrent client allow you to throttle your upstream usage.

      I don't have the problem very often on my cable connection, but the one time I experienced a major BT-related slowdown, I was quite annoyed - so I can empathize with your hatred.

      Here's the link to the experimental client:
      http://ei.kefro.st/projects/btclient/

      --
      0x0D 0x0A
    8. Re:Managing bandwidth by jetmarc · · Score: 2, Interesting

      > One problem might be corporate customers who have to pay for their bandwidth

      Actually I was working on a P2P software that solves this problem,
      by introducing "neighbourhood". That means, when several machines
      in the same LAN receive the update, they will prefer to connect to
      each other rather than to a machine outside on internet. This
      SAVES money (on ingres), provided that exgres bandwidth isn't
      excessively donated back to the P2P community.

    9. Re:Managing bandwidth by azav · · Score: 3, Insightful

      (Author here)

      What you're missing is that if you end up using your client's bandwidth to distribute your software without their knowledge or permission, you're screwed.

      In serving the general public, something like this would be subject to a large negative reaction not to mention the problem of "have you ever gotten a file from bit torrent that was invalid?" I have.

      Though technically neat, practically, it's unfeasable for a mass market product.

      1) You can't impact/rely on the user base to help you deliver your product.
      2) Added chance for error introduces risk and jeapordizes your distribution model and therefore business model.

      --
      - Zav - Imagine a Beowulf cluster of insensitive clods...
    10. Re:Managing bandwidth by Zarquon · · Score: 2, Interesting

      Look at wondershaper.. I have it set to prioritize my upload stream (don't bother having it reduce queueing on my downstream, hasn't been necessary) by putting ACKs, DNS, irc, ssh, ping, and http (port 80 target; haven't addressed https) in the high priority queue, and everything else in bulk. Works pretty well, although I'm considering adding more ram on the NAT box and running a local DNS server again; Comcast's are flakey.

      --
      "'Tis great confidence in a friend to tell him your faults, greater to tell him his." --Poor Richard's Almanac
  4. here's what he's asking by Triumph+The+Insult+C · · Score: 2, Interesting

    how can we get our company's bandwidth setup so we can survive a slashdotting?

    maybe if he got some comments from the peeps at osnews or cnet...

    --
    vodka, straight up, thank you!
  5. Get what you want... by anthony_dipierro · · Score: 4, Informative

    If you want to pay for data by the gig, rather than by the pipe size, just sign up with an ISP which allows that.

  6. Get Burstable Fibre by manly_15 · · Score: 4, Informative

    At the ISP where I work we offer fiber connections that allow for increased bandwidth for certain periods of time. For example, our burstable connections are usually around 1-3 meg for normal times, then burstable up to 10 megs. I'm sure you can find something suitable to you.

    *blatant sales pitch*
    If your buisness is near Southern Ontario, check out our website at www.sentex.net. We rock :-)

  7. Free Tip by fastdecade · · Score: 3, Funny

    Here's a free tip --- don't post your site to slashdot.

    Congratulations - you passed this one.

    Anyway the answer to all your prayers is obviously BitTorrent.

  8. Savvis has huge sales right now. by Anonymous Coward · · Score: 2, Interesting

    Whenever Savvis has end of quarter sales you can negotiate the price a ton.

    Right now they're about 700/month for a managed T1 with local loop included.

  9. This is easy... charge the customer! by bc90021 · · Score: 4, Interesting

    1) Agree with your ISP on a standard data rate, burstable to X as needed.
    2) Use RTG to monitor traffic in and out, making sure that you know what switch/ports/etc. that client is using.
    3) Charge the client (this is usally done based on 95th percentile).
    4) Profit!!!

  10. Akamai or other offsite hosting by sully67 · · Score: 5, Informative

    This is what Akamai and the like are sold for.
    It's almost certainly going to be cheaper than just buying bandwidth.
    Or you could go for the approach of colocating your own box somewhere central for the heavily hit stuff.
    Even this will be a whole lot cheaper and won't impact on your normal traffic to your organisation.

    1. Re:Akamai or other offsite hosting by Ryan+Amos · · Score: 2, Interesting

      Totally. Akamai really isn't that expensive when compared to buying your own bandwidth. The only thing about Akamai (from what I've heard, I've never used it) is that you have to plan updates a few days ahead of time to give them time to propagate amongst the various Akamai balancing servers. But have you ever noticed that downloads from Akamai are usually the fastest around? And that pretty much every corporate high-traffic site uses them (CNN, Apple, IBM, ETrade, FedEx, Yahoo, etc.) so I think they'd be fine for your small usage.

  11. One word by LittleLebowskiUrbanA · · Score: 2, Informative
  12. Testing Solution by jmt9581 · · Score: 2, Funny

    I don't know what solution you'll eventually decide on, but to test it you can post a link to the file on AskSlashdot.

    :)

    --

    My blog

  13. Bit Torrent? No, Kast! by Velocity44 · · Score: 3, Interesting
    This is exactily what Kast was designed for. Bit Torrent is great, but you still have to request the DL. With Kast, you subscribe to the channel and you get what is delivered. Go to http://konspire.sourceforge.net/index.shtml to get what you need.
    If you need proof that Kast is better than BT in this situation look at http://konspire.sourceforge.net/BitTorrent.shtml .

    Hope it helps.

    1. Re:Bit Torrent? No, Kast! by deadsaijinx* · · Score: 2, Insightful

      the problem with the logic of the second link is that they assume that users of bit torrent close the client after their download is done. The study of any popular files shows a great number of seeds, as many people find it only fair to leave their client open as long as possible (i try to redistribut the file 10x whenever i download it, which is about 3 days open for the files i download). Because he does burst files, it would be very similar to a new eps released on BT, as a surge of people will ensure at least a week of incredibley fast download speeds. Also, he could hash it on the eD2k network and set up a link for that, as well as encourage people to share it on the eD2k network (think new release on sharereactor).

      --
      YOU SUCK BALLS!
  14. P2P and partial files is the answer by grumpygrodyguy · · Score: 4, Interesting

    As soon as we all have 50mpbs 802X connections and, anonymous P2P software. This kind of question will never be asked.

    With 100 gig hds, and reliable high speed connectivity 24/7. It's pretty easy to see what could be built from that.

    Someone wants to download the new 150mb CS or BF1942 upgrade? Just enter the name of the file, select it...and the P2P software does the rest. Initiating multiple downloads from about 20 or so nodes in parallel. Then you just glue the program together once you have downloaded all the pieces.

    Mirroring is such a hack, and dynamic bandwidth is the last gasp of the client-server paradigm. Let's move on.

    --
    The government has a defect: it's potentially democratic. Corporations have no defect: they're pure tyrannies. -Chomsky
    1. Re:P2P and partial files is the answer by alienw · · Score: 2, Insightful

      Indeed, as soon as we all have 50mbps connections (and file sizes remain the same), the question will no longer be asked. But it won't be due to P2P, just due to the cheap bandwidth.

      P2P is severely overrated. It's not a solution for anything that doesn't involve sharing illegal files. If everyone on P2P is on a standard 128k/768k ADSL connection, it will not work -- there will be more demand than supply. It only works when there are nodes with a fat upload line that never download anything. But those are quickly disappearing since organizations figure out that their fast internet connections are being abused.

      If you seriously think that P2P will solve any problems besides distributing warez, you are wrong. P2P is a hack, unlike the client-server paradigm. The real solution here would be multicasting and other intelligent routing that would basically mirror the broadcast model. P2P is nothing more than a band-aid.

      If you still don't believe me, just think about this: how can each node connect to 20 other nodes that have the same file and aren't busy downloading it? Mostly due to people's benevolence, but that would not work in a production environment. If I need to download a BF1942 patch, I'll get it and delete it, I won't leave it on my machine for a few more weeks. You can't expect people to share stuff indefinitely. The client-server model is much simpler and much more scalable than any P2P solution.

  15. Find a new provider... by IpSo_ · · Score: 4, Informative

    that offers "pay by the GB". The hosting company I work for has GiGE links but only pays for the exact amount of traffic we push through the link. The monthly cost on the line is minimal, or nonexistent depending on the provider.

    Since we have more then one link as well, it gives us redundancy and the upper hand to negotiate the best price per GB, so we can send 90% of our traffic out that link. If the next month a different provider comes back with a cheaper price, we switch it around and send the 90% out their link. Within days of cutting the traffic off for a link, we can usually expect a phone call from the sales rep with lower price offer.

    Any idle links we have don't cost us anything extra, since we _will not_ deal with any provider that doesn't offer pay by the GB. Paying for the raw link speed, regardless of how much traffic you push through, or paying 95th percentile prices are all mostly a rip off.

    --
    Open Source Time and Attendance, Job Costing a
  16. CDN, colocation by UnderAttack · · Score: 5, Informative

    Couple of different options. First, you could talk to the Content Delivery Networks (CDN's) like Akamai or Digital Island. They can probably help you (for a price).

    Another option is colocation. In particular if you have short traffic spikes. Many colocation places charge your for at a '95 Percentile'. This will cut out about 3 days worth of 'peek traffic' and you only pay for the maximum bandwidth you use after removing the top 5%. Just make sure the colocation place has enough bandwidth to handle the spikes.

    Some ISPs (e.g. Yipes) offer flexible contracts that allow fast (daily?) bandwidth changes. So if you announce a new version of your product, you can increase your bandwidth until the rush is over.

    One hint: Try to move the large file/content away from your 'importants' networks, so other things like e-mail keep flowing even if the content site is running into issues due to load.

    --
    ---- join dshield.org Distributed Intrusion Detec
  17. Content Delivery Network by ryuspeed · · Score: 3, Informative

    It seems to me that this is exactly the type of problem that places like akamai and cable and wireless (was digital island) are trying to solve. Pay only for the bandwidth you use, leverage their existing distributed architecture, profit. You can try to get bustable bandwidth etc, but in the past I've found it to be more expensive. Things may have changed since them (a year ago) but you should still look into a content delivery network.

    1. Re:Content Delivery Network by borkus · · Score: 2, Informative

      My employer is looking at CDNs. I understand that they had an impressive presentation from Speedera as well. It looks like Speedera has a service specifically for downloads.

      No, I didn't site through the presentation; however, our admin guys seemed impressed. Just another option.

  18. Option pricing methods may well be the solution... by ssclift · · Score: 4, Interesting

    Based on recent research at the University of Waterloo, you may well be able to treat the bandwidth usage as a risk factor and treat the option to buy more bandwidth as exactly that: an option on a real commodity. You would likely be able, then, to price the value of waiting to invest versus the value of investing now with a given expected return. Basically the cost of holding off on investing would then be quantifiable and you could choose the best time for investment.

    There has been some good research done on this lately which you can read up on at the U. Waterloo Scientific Computation Group which did the work in co-operation with telecoms and the Finance department. The math is perhaps a little heavy going, but the results may put you on a firmer footing than doing the same computation with NPV or similar methods.

    Disclaimer: I'm currently doing research with this group, though not exactly on this topic.

  19. Don't host it yourself. by Peter+Cooper · · Score: 5, Interesting

    Let's face it. Most of the suggestions above are useless. Since when is a company going to officially distribute stuff via Kazaa or BitTorrent? Sorry, but when Microsoft says 'To download our latest Service Pack, use Kazaa' then pigs will be flying. It's so unprofessional.

    The easiest solution is not to host it yourself, but to use specialized file hosting ISPs. There are lots of these around, and it's a trivial task on Google to find one at the price you want. These are ISPs that entirely focus on hosting large files for download, with servers optimized for that job.

    There's no point in lagging out your regular servers which are probably optimized for something else.. and a dedicated file host can scale as you go.. which would usually cost you a packet.

    1. Re:Don't host it yourself. by seanadams.com · · Score: 2, Insightful

      There was a time when selling software without a manual was considered unprofessional. Now you can buy software online and get NOTHING except for the string of bits - not even a CD.

    2. Re:Don't host it yourself. by Xzzy · · Score: 2, Interesting

      > Since when is a company going to officially
      > distribute stuff via Kazaa or BitTorrent? Sorry,
      > but when Microsoft says 'To download our latest
      > Service Pack, use Kazaa' then pigs will be flying.
      > It's so unprofessional.

      Replace all the statements in here about kazaa with statements about linux.

      And you get the same thing people were saying 4/5 years ago. Don't underestimate the ability for the tech industry to evolve. ;)

    3. Re:Don't host it yourself. by Majix · · Score: 2, Insightful
      Let's face it. Most of the suggestions above are useless. Since when is a company going to officially distribute stuff via Kazaa or BitTorrent? Sorry, but when Microsoft says 'To download our latest Service Pack, use Kazaa' then pigs will be flying. It's so unprofessional.

      They will do it if saves them money or if the alternative is simply not to host large files. Many sites already allow or even require you to have special download managers (Fileplanet etc.). What if they provide special rebranded versions of the p2p services? Instead of running "BitTorrent" you're using "Symantec AutoUpdater 4". Or some tiny general client could be delivered automatically like Macromedia does with Flash.

      Using BitTorrent as the back end just make sense, you have a server serving the files, just like a standard web server (in fact, it could be the web server). That provides you with a base level of service. Then on top of this guaranteed bandwidth you add all the unused bandwith of whoever happens to be downloading at the same time. Suddenly your paltry T1 turns into a T3 and even the bean counters start to take notice. The key is hiding all this P2P stuff from the user, the end user just clicks on links and the download starts.

      BitTorrent exists me a lot. I hope to create an apache module for drop-in deployment for torrent hosting some day.
  20. Managing your network is an ongoing process by f1ipf10p · · Score: 2, Informative

    Start with a best guess for amount of bandwidth based on number of users and type of usage. Then monitor and adjust. If you pay for uneeded bandwidth you may be losing money. If underestimate bandwith needs and lose business, you may lose money...

    Some things to consider checking into:

    Use SNMP and RMON to manage and monitor your wide area connections. You will be able to do trending on your traffic to see what percentage of used is used during any predetermined interval. Free tools like MRTG are a great place to start.

    Good network hardware, maybe most specifically your edge router(s) and firewall(s), that allows you to configure some sort of priority queuing or traffic shaping. Cisco's QOS features in its IOS based routers are known to be particularly strong.

    A service or dedicated person to make sense of the traffic reports. It is an ongoing process.

    You will also likely want to consider measuring "latency" as well as bandwidth consumption.

    Also note that during a one minute average, 50% use can be 30 seconds of 100% and 30 seconds of 0%. Be aware that many of the bandwidth utilization numbers that are reported can be averages. You will want to look for peaks as well.

    Good Luck.

    --
    ~8^]
  21. Your Options by Zebra_X · · Score: 2, Informative

    How to handle this situation primarily depends on where your site is hosted.

    If you have your servers hosted with co-location provider like AT&T, Globix, Cable and Wireless (ha ha), Verio ot the like then you'll almost always have the option to "burst" above your monthly allotment of transfer per month - problem solved. Just do some simple math and figure out what is the max of the LAN connection of the provider, how much your server(s) can handle with respect to transfer and you'll be able to figure out if you need to add hardware or NIC's to handle the load. Generally speaking the "bursting" is usually calculated fairly. Also, in months that you use less bandwidth you won't have to pay for a higher class of service above the already agreed upon monthly transfer rates.

    However, It doesn't sound like this is the case. A t-1 has a physical capacity to transfer 1.544 Mb/sec. You will never be able to "burst" above this rate. As long as your servers are at the end of this pipe they will never be able to transfer more than ~ 180K/sec to the internet at large. Your options at this point are:

    * Add more capacity to your hosting site (expensive).

    * "Partner" with a company like Akamai for content delivery. It'll be a few thousand dollars plus the cost of bandwith to set up the content redistribution. Not really a bad deal if you are serious about delivering your content to your users. They also have great reporting about who and where your users are coming from.

    * Your last option is to set up a shared/dedicated hosting account with a provider that charges you by the GB. That way you only pay for what you use + the monthly cost of the server. Try interland they have some good deals.

    The bottom line is that if your site is hosted at the end of a physical connection you own - it's not going to be enough. You'll need a datacenter environment that has a PhatPipe to the internet and a machine or machine(s) that can handle the throughput. If you have the cash go with Akamai - they are good at what they do.

  22. Re:Are you kidding? by Sevn · · Score: 2, Insightful

    to clarify, it was a FreeBSD x86 server. The
    largest ftp site in the world.

    --
    For every annoying gentoo user, are three even more annoying anti-gentoo crybabies. Take Yosh from #Gimp for example.
  23. I disagree by ionpro · · Score: 3, Insightful

    P2P realizes the two facts that you obviously don't:
    1) Not everyone uses their Internet connection 24 hours per da
    2) Most people don't need hard drive space these days (i.e. storage is cheap)

    Combine these two developments, and you have a lot of upload bandwidth sitting idle. I would argue that P2P becomes MORE effective, not less, as you move to legitimate files, because people are more likely to leave it running when they aren't afraid of the RIAA/MPAA tracing their connection down. Since ISPs have been reluctant heretofore to ban P2P traffic (after all, it is a driving factor for adoption of high-speed Internet access), all those hours people are sleeping with a P2P program open is free downloads for the rest of us.

    There are valid complaints against P2P (untrusted incoming executable data, very high latency, no centralized validation of data, etc.) Use them instead of the bandwidth non-issue if you don't like P2P.

  24. Characterize your traffic, then apply rules. by Mordant · · Score: 2, Informative

    First of all, you need to know what's normal for your network, and how your bandwidth is actually being used:

    http://www.linuxgeek.org/netflow-howto.php

    http://wwwstats.net.wisc.edu/

    http://www.arbornetworks.com/products_sp.php

    Then you need to make use of technologies which allow you to provision accordingly:

    http://www.cisco.com/en/US/tech/tk543/tk757/tech no logies_white_paper09186a008017f93b.shtml

    http://www.cisco.com/pcgi-bin/Support/browse/ind ex .pl?i=Technologies&f=1387

    Juniper and other vendors have equivalent capabilities, I'm just not very familiar with them. But the concepts are the same.

  25. Colocation! by danejasper · · Score: 5, Informative
    Colocation or contracted file hosting is probably your best bet. You'll pay by the gigabyte, or by peak utilization. Careful as you quote this - a 95th percentile means that they bill you monthly for the PEAK after tossing out the top 5%. For a site which is pretty even all month long, this works great. However, if you're serving a single file, once in a while, and expect heavy traffic only then, you do NOT want to pay on 95th, as you'll pay for your peak utilization all month long.

    Be sure to tell your colo or file hosting provider what your projected usage is, and how many megabits you may want access to, to assure that they can handle it. You may also want to make a courtesy call a day or so prior to each launch to let them know what to expect.

    Remember when Eddy Van Halen got tounge cancer a couple years ago? THAT was a busy weekend for their website, which we host. Of course, they didn't have any warning, but boy-o, that was bigger than any slashdot effect that I've ever seen. We also host O'Reilly (the computer book folks), so we certainly see plenty of slashdotting.

    We're at: http://www.sonic.net/sales/colo/

    Shop around - but keep in mind that buying from someone near your intended downloader may help you with both latency and costs. The SF Bay Area has the best pricing for bandwidth, and the lowest latency connections to the highest number of users - that said, if your target market is on the east coast, you should be in Hearndon, VA or NY or Boston.

    -Dane Jasper (Sonic.net)

    --
    -- Dane Jasper Sonic.net, Inc.
  26. One option, and it's probably the easiest. by jd · · Score: 2, Interesting
    First, install the caching server "Squid". Have all FTP and HTTP requests intercepted and diverted through the caching server. This'll save you massively on bandwidth, as you won't need to do multiple transfers of the same file.


    Have the timeout on a file reasonable, though. FTP files generally don't change that frequently, so hold those for 48 hours. HTTP pages can change a lot more often. Make sure the caching server is configured to respect the HTTP flag to not cache, and don't cache unmarked web pages for more than a few minutes.


    This should be sufficient to spread out the load some. I prefer to have a few "extras" in there, though. If I know there's going to be a popular file released, it makes sense to have a CRON job pre-load that file into the cache during off-peak hours. That way, it's in the cache and ready for users by the time anyone gets round to requesting it.


    If there are a few web sites that are VERY popular but largely static, set up a "neighbor" cache, which ONLY caches those web sites, with a very long time-out. Use a program like Harvest to grab the entire site, via the cache, and you'll then have everything ready for the users. (It'll also be searchable, via Harvest, which'll be a bonus.)


    The second option is at the network layer, and should be used only if the above is not sufficient. Enable "diff-services" and "Quality of Service" in the kernel. How to do this depends on the OS you use. Linux and all the *BSDs support these options, but how you set it up varies with each.


    Once you've done that, enable "HQF" or "CBQ" queueing discipline, and attach those to the FTP and HTTP services. Configure them such that each user is guaranteed a certain level of bandwidth for that service, if they request that or more. They get more only of nobody else needs it. (This is usually described as a "soft ceiling".)


    You also want to enable the "RED" networking option.


    This isn't as hard to do as it sounds, and it can massively ease network congestion.


    (CBQ = Class Based Queueing. HQF = Heirarchical Queueing Function. RED = Random Early Detection.)


    Once you've applied both the "high level" and "low level" solutions, your network congestion should be massively eased. Again, though, use pre-loading for the cache as extensively as you can to ease those peak-time burdens.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  27. So go hire Bram.... by billstewart · · Score: 3, Insightful

    He'd be happy to make money customizing it for people...

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  28. burstable bandwith with a control shaping. by drasfr · · Score: 5, Insightful

    What I would do is colocate all my servers in a datacenter.

    Take a burstable bandwidth, let's say that can burst to 100mbs, but to control your bandwidth in most time to ensure you do not go over the cost, you configure your router to not allow more than let's say 1mb of bandwitdh or whatever you want as a maximum and willing to pay for in normal time.

    You should then monitor your bandwidth usage in real time, as well as the logs on the machines, and adjust the traffic shaping to the amount of traffic you want to allow.

    For example, you know what on that day, you will do a marketing operation, and you are willing to spend $xxx more for the bandwidth, you then change your setting right before your marketing plan to the maximum of bandwidth you are willing to pay.

    my 2c...

  29. Re:Option pricing methods may well be the solution by MeanGene · · Score: 2, Insightful

    Who in their right mind modded the parent to +5???

    "Bandwidth trading" escapades have bancrupted Williams and contributed to Enron having to go ever more aggressive with their "creative accounting." It reeks of the same foul smell as the "real options" nonsense. (Note: the article referenced even has "real options" in the keywords).

    Basically you've got a whole bunch of not-so-smart people who can fake expertise in nearly anything as long as they don't get their hands dirty (aka academics) colluding with some not-so-smart MBA's in executive positions - and then you've got a problem for everyone around them.

    This is a problem that needs to be priced based on actuarial type methods (a'la insurance). Just because you can write a (usually bad) price process for "bandwidth" doesn't mean that you can logically apply all the consequent financial mathematics.

    And, here's a party-pooper - real options are not options at all - no matter what tenured clowns like Pindyck and Dixit want you to believe.