1. Welcome to TRD Forums! A community for Toyota, Lexus, and Scion Enthusiasts. To enjoy all the benefits of the site, we invite you to signup.

Tech Any network guru's on here?

Discussion in 'Off Topic' started by moonshadow, Jul 19, 2005.

  1. Offline

    moonshadow ||\\|||D)||\\||

    Message Count:
    1,274
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Jersey City, NJ
    Any network guru's on here?

    I have a little question. I need to write a algorithm for 'Round Robin' to break down the assignment of jobs based on active connections. problem is i have 2 main sets of servers dbc and dbx and then there is one single floating server db05. db05 needs to get called by either dbc or dbx depending on which one has the heavier load. anyone have any ideas how to go about doing this? if you need clarification, feel free to ask :)
  2. Offline

    Denver Rolla 98 impreza

    Message Count:
    2,887
    Likes Received:
    0
    Trophy Points:
    588
    Location:
    Lakewood, CO
    are we doing your home work or a hacking project
  3. Offline

    vortex Well-Known Member

    Administrator
    Message Count:
    4,110
    Likes Received:
    48
    Trophy Points:
    748
    Location:
    Westminster, CO
    If you wanna just do it off active connections, use FreeBSD's RR routine in natd/ipfw setups. For that type of application, it load balances quite nicely. I've been using that here for roughly 5yrs w/o a single problem. :)
  4. Offline

    moonshadow ||\\|||D)||\\||

    Message Count:
    1,274
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Jersey City, NJ
    i narrowed it down to using a least-connection algorithm. now the only question is how to tie in the floater.

    Denver_Rolla, its not my homework, i work for Dept of Defence and i need to write a algorithm for a few servers using C and then tie in a load of other features. I'm just trying to get the best start on this :)
  5. Offline

    vortex Well-Known Member

    Administrator
    Message Count:
    4,110
    Likes Received:
    48
    Trophy Points:
    748
    Location:
    Westminster, CO
    then i'd take a look at the algorithm used in natd for load distribution... it's pretty good to start with then build on... and you should be able to adapt it to whatever you want.
  6. Offline

    moonshadow ||\\|||D)||\\||

    Message Count:
    1,274
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Jersey City, NJ
    awesome, is it called natd?
  7. Offline

    vortex Well-Known Member

    Administrator
    Message Count:
    4,110
    Likes Received:
    48
    Trophy Points:
    748
    Location:
    Westminster, CO
    yes, all related code to the load balance stuff is in natd source. if you need help getting it let me know... its out there its just sometimes a pain to get unless you install the OS and included the sources with the binary install.
  8. Offline

    moonshadow ||\\|||D)||\\||

    Message Count:
    1,274
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Jersey City, NJ
    thanks for all the help man. i'm gonna look into it :)
  9. Offline

    vortex Well-Known Member

    Administrator
    Message Count:
    4,110
    Likes Received:
    48
    Trophy Points:
    748
    Location:
    Westminster, CO
    no problem

Share This Page