| Author |
Message |
fernandoch
Joined: 20 May 2011
Posts: 57
Location: Spain
|
| Posted: Mon Jan 09, 2012 2:38 pm Post subject: How to load balance http requests? |
|
|
How would you load balance http requests? Any manuals?
Have you tried that http://library.linode.com/linux-ha/highly-available-load-balancer-ubuntu-10.04 ? I think with this setup only one node is active at a time, isn't it? |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1403
Location: Earth
|
| Posted: Mon Jan 09, 2012 4:57 pm Post subject: |
|
|
| Check out linode node balancers http://library.linode.com/linode-platform/nodebalancer-howto |
|
| Back to top |
|
fernandoch
Joined: 20 May 2011
Posts: 57
Location: Spain
|
| Posted: Tue Jan 10, 2012 5:06 am Post subject: |
|
|
I am aware of linode node balancers, but I see it as a black box, maybe I am wrong.
I was thinking about nginx, apache load balancers....
What do you think? |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1403
Location: Earth
|
| Posted: Tue Jan 10, 2012 6:01 am Post subject: |
|
|
Node balancers are easier, I've used them, you basically push a few buttons and poof! You're up and running.
If you want to do it yourself then a Linode 512 running Nginx using the proxy and upstream modules works well (I've done that too). It's the same cost as a node balancer but you have to keep everything up to date yourself.
Node balancers are more cost effective in a time = money world. |
|
| Back to top |
|
fernandoch
Joined: 20 May 2011
Posts: 57
Location: Spain
|
| Posted: Tue Jan 10, 2012 6:03 am Post subject: |
|
|
| And how can you monitor the node balancer? |
|
| Back to top |
|
obs
Joined: 07 Mar 2010
Posts: 1403
Location: Earth
|
| Posted: Tue Jan 10, 2012 7:18 am Post subject: |
|
|
| Monitor it for what? It monitors your back ends for you using checks you specify (either http or tcp), the balancer itself linode monitor so you don't have to. |
|
| Back to top |
|
mnordhoff
Joined: 03 May 2008
Posts: 451
|
| Posted: Tue Jan 10, 2012 11:14 am Post subject: |
|
|
obs wrote: If you want to do it yourself then a Linode 512 running Nginx using the proxy and upstream modules works well (I've done that too). It's the same cost as a node balancer but you have to keep everything up to date yourself.
It's the same cost, and if you only have one 512 without an HA configuration, it's also less reliable. You need more than one node to achieve the reliability of a NodeBalancer, making a NB far cheaper if you care about that. |
|
| Back to top |
|
| |