Browsing articles tagged with "loadbalancing - Admins Goodies"
Jan 17, 2013
tom

How should I configure my ELB health check when using NameVirtualHosts and redirecting to www?

My ELB keeps taking my instances out of service, because the HTTP health check is failing. We have a DNS wildcard, and redirect everything to www: vhost.conf: ServerName www.example.com ServerAlias *.example.com RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC] RewriteRule ^ http://www.example.com/$1 [R=301,L] This works fine for actual browsers, but the HTTP health check to / fails, presumably because it’s getting a 302. Is the best option to use a TCP health check, or is there a [...]

Continue Reading »
Jan 7, 2013
tom

nginx load balancer rewrite to listen port

I have implemented load balancer using nginx as below: upstream lb_units { server 127.0.0.1:88 weight=7 max_fails=3 fail_timeout=30s; # Reverse proxy to BES1 server 10.200.200.107 weight=1 max_fails=3 fail_timeout=30s; # Reverse proxy to BES2 server 10.200.200.94 weight=1 max_fails=3 fail_timeout=30s; # Reverse proxy to BES2 } server { listen 80; server_name mysite.com; location / { proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Host $host; proxy_pass http://lb_units; proxy_redirect off; } } #########FINALLY THE REAL SITE############## server { listen 88 [...]

Continue Reading »
Dec 23, 2012
tom

Loadbalance a bunch of Squid servers

I’m trying to load balance a network of proxy (squid) servers (currently 8 nodes) efficiently. I’m currently balancing over a network wide proxy autoconfig but that seems to not work properly. Some servers do get a horrible amount of load, some are just sitting there and waiting for requests. What’s an efficient way to balance these (without changing too much on the client side)? Is it possible to do some kind of request delegating instead [...]

Continue Reading »
Dec 7, 2012
tom

Big IP F5 outbound HTTP issues

We’ve tried upgrading from 9.x to 10.2 on our F5 Big IP 3400 and everything went over fine apart from one thing. We’re unable to establish any outbound HTTP (80) connections from any servers that are assigned to a virtual server. This is something that worked before and is required for certain calls our servers need to make. Interestingly HTTPS (443) connections work fine, it’s literally just anything outbound over port 80 seems to fail. [...]

Continue Reading »
Nov 30, 2012
tom

apache, shibboleth, load balancing alias, ssl

Good morning folks Could you give me a bit of help with the following problem ? I have a dns load balancing mechanism and an alias (hostAlias) which may point to host01, or host02 I want to configure apache and shibboleth to work with that alias. What happens is … User types : https://hostAlias (it points to host01) apache host01 : redirect to shibboleth shibboleth host01 : redirect to **https://hostAlias.cern.ch/Shibboleth.sso/ADFS** Now, there are two cases. [...]

Continue Reading »
Nov 29, 2012
tom

aws load balancer ssl termination implications

If I set up a load balancer on aws that terminates ssl at the load balancer, then the requests being sent to the application server is in plain text. That has definite security implications. How do folks mitigate this implication in practice? If alternatively, I set up https traffic between load balancer and the application servers also, what are the performance implications? There is bound to be performance hit but how does it compare to [...]

Continue Reading »
Jul 26, 2012
tom

machine.config file update crashing the website asp.net

We are using load balancing and have three servers for that. On one of the servers the machine.config file had different machine key then the other two machines. Once we updated the machine key and made the value same as the other two, now we can’t run the website through that server. What do you guys think can be the reason? Thanks, Laziale Asked by Laziale HTTP 503 usually indicates that the Application Pool is [...]

Continue Reading »
Jul 13, 2012
tom

When is the right time to put a load balancer in place?

I have a shopping site with 1m products, to be honest I have a lot of questions – most of them probably subjective, but this one I think fits. When is the right time to get a load balancer? We have 1 server at the moment, and are rampantly looking for growth. Anything could happen at any moment, so I ask – whens the right time? We have the resources to buy one now and [...]

Continue Reading »
Jun 8, 2012
tom

What’s the best way to detect whether an incoming request is secure?

Is there a preferred method of detecting HTTP vs. HTTPS on an incoming request to an F5 load-balancer? We are attempting to detect secure vs. non-secure with an iRule and pass a corresponding header flag along to my web servers. Here’s what we have so far (untested): when HTTP_REQUEST_SEND { clientside { if {[TCP::local_port] == 443} { HTTP::header replace HTTP_X_FORWARDED_PROTO “https” } else { HTTP::header replace HTTP_X_FORWARDED_PROTO “http” } } } As you can see, [...]

Continue Reading »
Jun 7, 2012
tom

Haproxy mysql failover load balancing

I have setup mysql master-master replication and now I am trying to load balance mysql servers with Haproxy. Load balancer: 192.168.1.5 mysql1: 192.168.1.7 mysql2: 192.168.1.8 The below haproxy configuration is working fine and it’s rotating nodes like roundrobin. # this config needs haproxy-1.1.28 or haproxy-1.2.1global log 127.0.0.1 local0 log 127.0.0.1 local1 notice #log loghost local0 info maxconn 4096 #chroot /usr/share/haproxy chroot /etc/haproxy user haproxy group haproxy pidfile /var/run/haproxy.pid daemon #debug #quietdefaults log global #mode http [...]

Continue Reading »
Pages:1234567...39»