Debian Planet








Welcome to Debian Planet

Search

Apt-get into it.
Main Menu

  • Home

  • Topics

  • Web Links

  • Your Account

  • Submit News

  • Stats

  • Top 10

  • Debian

    These are important Debian sites one should not be without!

  • Official Debian site

  • Package search

  • Mailing list archives

  • Bug reports

  • Debian on CD

  • Unofficial woody CD ISOs

  • Unofficial APT sources

  • Developers’ Corner

    Other great Debian news sources:

  • Debian Weekly News

  • Kernel Cousin Debian

    (Debian mailing lists digested)
  • Community Groups

    Need help? You’re not alone on this planet.

  • debianHELP

    (User support site)

  • Debian International

  • DebianWorld

    (Français)

  • DebianForum.de

    (Deutsch)

  • EsDebian

    (Español)

  • Debian-BR

    (Português)

  • DebianUsers

    (Korean)

  • IRC

    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on irc.debian.org.

    Many of the Debian Planet staff live there so pop by and say hello.

    Wanna write?

    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you’ve written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.

    Sponsorship

    DP is sponsored by uklinux.net and CheepLinux.

    Debian Planet runs on hardware donated by Xinit systems and is using kieser.net‘s bandwidth.

    Who’s Online

    There are currently, 79 guest(s) and 6 member(s) that are online.

    You are Anonymous user. You can register for free by clicking here.

      

    Linux Virtual Servers (Score: 0)
    by Anonymous on Thursday, November 01 @ 19:30:03 GMT

    Have you looked into the Linux Virtual Server project? It does what you’re looking for, all licensed under the GPL.

    Potato did have some LVS packages a while ago, but they’re a bit out of date now. At work, we have a 400MHz Celeron with 64mb of RAM acting as a director for 4 load-balanced Web servers. The Director is a stock Potato installation w/ a 2.4kernel patched for IPVS.

    The project offers great documentation, but the just of it is this:

    All you need to do to get a quick-n-easy Load balancing setup up and running is this:

    1. Compile kernel (2.2 or 2.4, your choice)
    2. Configure the Director to forward IP’s for your Real Servers
    3. Change the default gateway on the Real Servers to route through the Director
    4. Use the following commands (To your suiting)

    ipvsadm -A -t director.myserver.com:www -s rr
    ipvsadm -a -t director.myserver.com:www -r www1.myserver.com:www -m



    ipvsadm -a -t director.myserver.com:www -r www2.myserver.com:www -m

    With that, you have round-robbin load balancing setup. You mention that you need persistence handling as well: For that, simply change the ‘-s rr’ in the first ipvsadm command to ‘-p’. With that, ipvs will keep the user with the same server at least as long as one connection is still open (TIME_WAIT).

    You can then setup your own customized heartbeat setup, or use some of the pre-made scripts (UltraMonkey, etc) from the LVS to remove unavailable Real Servers from the pool dynamically.

    We’ve been using this setup for a long time now, and I can vouch for it’s stability. Using the LVS-NAT solution above, you should be able to get full 100MB/s throughput on the Director w/ a 300+MHz x86 processor.


    Your Name: Anonymous [ New User ]

    Subject

    Comment

    Allowed HTML:
    <p> <b> <i> <a> <em> <br> <strong> <blockquote> <tt> <li> <ol> <ul>