Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-16-2009, 11:05 AM   #1
FightThisPatent
Confirmed User
 
Join Date: Aug 2003
Location: Austin, TX
Posts: 4,090
experiences with load balancers?

looking to hardware or software solutions that work for people.

i don't have a high loading.. need it more so for internally to route http API calls to multiple database servers for loading purposes (to increase throughput and scalability).

for software, i have found:

http://www.howtoforge.com/load_balan...proxy_balancer

http://www.inlab.de/balanceng/

http://haproxy.1wt.eu/

any experiences with these? looking for simple, easy to configure.

Fight the 411!
__________________

http://www.t3report.com
(where's the traffic?) v5.0 is out! |
http://www.FightThePatent.com
| ICQ 52741957
FightThisPatent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 11:25 AM   #2
darksoul
Confirmed User
 
darksoul's Avatar
 
Join Date: Apr 2002
Location: /root/
Posts: 4,997
since you're looking for a database load balancer you could use
mysql-proxy + replication, works alright.
__________________
1337 5y54|)m1n: 157717888
BM-2cUBw4B2fgiYAfjkE7JvWaJMiUXD96n9tN
Cambooth
darksoul is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 11:27 AM   #3
Phil21
Confirmed User
 
Join Date: May 2001
Location: ICQ: 25285313
Posts: 993
What kind of "routing" do you need?

Straight round robin?

Layer4 server affinity?

Layer 7 inspection?

Lots of options. If your load isn't nuts, haproxy is probably a good bet depending on your needs. If you want a more packaged solution, some of the hardware load balancers aren't bad depending on what you are looking for.
__________________
Quality affordable hosting.
Phil21 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 11:53 AM   #4
FightThisPatent
Confirmed User
 
Join Date: Aug 2003
Location: Austin, TX
Posts: 4,090
Quote:
Originally Posted by Phil21 View Post
What kind of "routing" do you need?

Straight round robin?

Layer4 server affinity?

Layer 7 inspection?
strictly HTTP. round robin can be the simplest method as long as it knows when a server goes down to stop routing to that server.

not looking for DNS round robin. wanting the balancer to balance between internal IPs so that I can have N number of database servers that receive http/php for api calls to the database, rather than direct db calls from my app.

so the webserver (ie. t3report.com) receives a user request for data. the server side makes http/api call to the rack (behind a firewall). the machine (ip) that it connects to is currently a server that then connects to the db to get the data.

in the new infrastructure, the webserver (t3report.com) makes http/api calls to the load balancer, from which it tunnels to the backend server, passing the http/api request, and data comes back.


Fight the unbalanced!
__________________

http://www.t3report.com
(where's the traffic?) v5.0 is out! |
http://www.FightThePatent.com
| ICQ 52741957
FightThisPatent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 01:20 PM   #5
Cyandin
Confirmed User
 
Industry Role:
Join Date: Aug 2008
Posts: 1,723
Quote:
Originally Posted by FightThisPatent View Post
strictly HTTP. round robin can be the simplest method as long as it knows when a server goes down to stop routing to that server.

not looking for DNS round robin. wanting the balancer to balance between internal IPs so that I can have N number of database servers that receive http/php for api calls to the database, rather than direct db calls from my app.

so the webserver (ie. t3report.com) receives a user request for data. the server side makes http/api call to the rack (behind a firewall). the machine (ip) that it connects to is currently a server that then connects to the db to get the data.

in the new infrastructure, the webserver (t3report.com) makes http/api calls to the load balancer, from which it tunnels to the backend server, passing the http/api request, and data comes back.


Fight the unbalanced!
RRDNS is technically load distribution though, not balancing. If every connection is of generally invariable resource usage, then RRDNS will work perfectly.
Cyandin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 01:27 PM   #6
Sansa
Confirmed User
 
Join Date: Apr 2007
Posts: 293
If you need strictly HTTP proxying check out http://www.apsis.ch/pound/. I use it in production and it hasn't failed me.
Sansa is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 01:36 PM   #7
Phil21
Confirmed User
 
Join Date: May 2001
Location: ICQ: 25285313
Posts: 993
Since all you need as round robin (or similar - idea being it doesn't matter which server a given connection ends up on), almost any load balancer will work.

For software, take a look a LVS or HAProxy - both will do what you want. If your needs are even simpler, you could even look at nginx, or varnish if you wanted to consider caching.

For devices - honestly at low traffic levels anything will work. I'm not too well versed on the lower end of the spectrum here, but in the mid-range the Foundry ServerIrons tend to be the best performance for the dollar (however, they are not exactly fun to configure).

I think the decision on what to use is if you can live with a single point of failure in your load balancer or not. If not, the devices may be easier to setup auto failover with.

-Phil
__________________
Quality affordable hosting.
Phil21 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 02:07 PM   #8
koreanbbque
Confirmed User
 
Join Date: Dec 2003
Location: Riverside and San Diego
Posts: 688
if you're looking for traffic under 100mbit, you can find the foundry load balancer switch on ebay for fairly cheap. the foundry serveriron XL FCSLB ( 8 or 16 ) the 8 or 16 mean how many ports there are. The setup is not that bad. the serveriron comes with a small gui you can use to configure the load balancer.

If you're looking for free opensource stuff, check out the already mentioned items above and this place


http://www.ultramonkey.org/
uses LVS and HA

Good luck
__________________
KBBQ
2 3 1 6 1 8 8 1 6
koreanbbque is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 03:26 PM   #9
kmanrox
aka K-Man
 
kmanrox's Avatar
 
Industry Role:
Join Date: Oct 2001
Location: The Gutter
Posts: 29,292
i'll be looking into load balancing this weekend, great thread. i'll post anything else i may turn up too.
__________________
Crypto HODLr
Crypto mining
Angel investor
kmanrox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 05:10 PM   #10
FightThisPatent
Confirmed User
 
Join Date: Aug 2003
Location: Austin, TX
Posts: 4,090
many thanks for the great replies.. i am looking into "pound" from sansa's post.

I'll post up my results as well once I am done evaluating the various solutions.

Fight the QA!
__________________

http://www.t3report.com
(where's the traffic?) v5.0 is out! |
http://www.FightThePatent.com
| ICQ 52741957
FightThisPatent is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-16-2009, 09:01 PM   #11
boudoir
Confirmed User
 
boudoir's Avatar
 
Join Date: Nov 2008
Location: South!
Posts: 211
I have experience with load balancers from Cisco and Big IP... and have read some on the ServerIron product. They're dang good at what they do, but probably overkill.

I have also used the Fortinet appliances to load balance. Even their smallest sub-$1k box can do this. Bonus is they are also a firewall, do AV, intrusion detection/prevention, spam control, etc.

If you're interested in Fortinet, hit me up ... I'm a dealer! :D
__________________
[email protected] / ICQ #28 653 489

Creating quality glamour & art content just for you! Contact me for more info and rates.

www.boudoir-art.com/content
boudoir is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.