load-balancing

How do I enable sticky load balancing based on session identifiers using apache mod_proxy_balancer

Our proxy configuration (in httpd.conf) to send requests to 2 JBoss instances are given below is based on mod_proxy_balancer <Proxy balancer://mycluster> Allow from all BalancerMember http://192.168.1.2:9080 BalancerMember http://192.168.1.2:8080 </Proxy> ProxyPass /app balancer://mycluster/app ProxyPassReverse /app http://192.168.1.2...

Writing a connection manager for OpenVPN in python

Hi I'm having trouble trying to write a connection manager for OpenVPN in python. My needs are to have a script that listens on port 1195 UDP and when a connections is established, it should forward all the packages to the server instance of OpenVPN. The reason I need to do this is that I will have 4 instances of OpenVPN running in the s...

nhibernate, load-balancing, failover, and caching

We have a server that uses NHibernate, and we would like to load balance multiple instances of this server. Our database is big, ~100 GB. If we use a distributed second level cache like memcached or sharedcache, are there still potential data integrity issues? And, why doesn't the first level cache need to be distributed? Also, how ...

Elastic Load Balancing

Hi, I am wondering if there is a way to do elastic load balancing. I have read about HAProxy but it seems I need to bring down HAProxy to reconfigure it to work with more or less machines. To make the picture more clear: I have a cluster of web backends (lets say apache + mod_rails). I can monitor the usage of the backends and bring up...

Session state on a network load balance scenario.

Hi, We've currently got the current server set up for a site: Server 1: Admin System & Database Server 2: Public site Server 3: Public Site Server 2 and 3 are managed using the Windows Network Load Balancing system. They are both running copies of the public site code. The sites rely heavily on sessions because they work with user...

Redirect users to nearest and fastest web server using Javascript and AJAX?

How can I redirect users to the mirror-site that is nearest and fastest for them using Javascript and possible AJAX? Is there a way using Javascript to make a HTTP request to each of the servers (mirror sites), then redirect to the one which is closest and/or fastest for the end-user? I would prefer using Javascript to perform the redir...

How to configure WCF with transport security behind a load balancer

I have a WCF service that will be configured to use transport security with a certificate. The service will sit behind a load balancer (F5). The service certificate will be installed on the load balancer which will terminate the SSL session. I understand how to configure this---my question is whether or not I will be able to authenticat...

ASP.Net load balancing

Hello, I am working on asp.net (newbie) and I am trying to understand what it means to do "load balancing" for the web site. The website will be used by multiple users and resources (database, web service,..). If anyone could help me understanding the concept of the load balance for asp.net web site, I would really appreciate it. Th...

PHP Code on Separate Server From Apache?

This is something I've never seen done, and I'm not turning up in my research, but my boss is interested in the idea. We are looking at some load balancing options, and wonder if it is possible to have apache and php installed on multiple servers, managed by a load balancer, but have all the actual php code on one server, with the vario...

How to load balance (scale) a simple PHP application?

I constantly read on the Internet how it's important to correctly architect my PHP applications so that they can scale. I have built a simple/small CMS that is written in PHP (think of Wordpress, but waaaay simpler). I essentially have URLs like such: http://example.com/?page_id=X where X is the id in my MySQL database that has the pag...

IIS Load Balancing and ASP.Net

Basically, I have 3 servers where 1 of them serves as a load balancing server. In my ASPX page, I want to add a HTML comment to show the IP address or even host name of the server selected by the load balancer. I tried looking through IIS Server variables and tried using SERVER_NAME but that just returns the domain URL. So, is there a...

Will ASP.Net MVC's AntiForgeryToken Method work with Load Balancers?

Using ASP.Net MVC v2.0, I am starting to research the use of the Html.AntiForgeryToken() method when submitting forms that process data. I can see it sets a hidden value in the form HTML and it sets the same value in a session cookie. The question is will different web servers in a load balanced configuration create the same token in t...

Adding decision logic to Apache's mod_proxy_balancer with Memcache

Hi, What I am trying to achieve is to have Apache's mod_proxy_balancer check if a request was already made using a Memcache store. Basically: Streaming media request comes in. Check if streaming media has already been served with Memcache. If so, can that streaming media server handle another request. If so send request to said streami...

Loadbalancer Caching problems

Hi, I am using Apache Webserver 2.x with mod_proxy and mod_proxy_balancer for load-balancing two Jboss servers. Everything is working fine except one weird problem. The application is using Flex as UI technology and it consists of various modules (separate SWF files for each module). When I switch between modules, some of the modules a...

WebServices load balancing using Oracle WebCache ?

Hi all, I am using JBoss 5.1.0.GA on Red Hat Linux 4. We have only webservices deployed on this application server as .war files (servlets only, no stateful applications present). As a part of our architecture change for improving scalability, we are planning to have multiple JBoss servers running (may or may not be on different IP's an...

How to get a host name behind a load balancer in ASP.NET?

I have a couple of servers and a load balancer. I want to show a server name which is currently serving the page. I am using HttpContext.Current.Request.ServerVariables["SERVER_NAME"] and HttpContext.Current.Request.ServerVariables["LOCAL_ADDR"] but is shows the same data for all servers (load balancer information is shown but not the ...

Apache's mod_jk vs Oracle WebCache

Hi, What is the difference in the load balancing capabilities of Apache's mod_jk and Oracle's Oracle WebCache ? If my application doesn't have any need for caching (hence no use of caching features of Oracle WebCache), then how do they both rate ? The obvious thing is cost. mod_jk is open source while WebCache isn't. Apart from this, how...

Moving an Asp.net application to a load-balanced environment

I have an application which works well on a single server. My customer now wants to move it to a load-balanced environment. Which things are likely to bite me when doing this? Currently I know of Session state, and Machine key. Both of these are described here, for example, so I'm looking for things additional to this. These simila...

CommunicationObjectFaultedException occurring only in test environment

I have a WCF service than in my development and production environments works without any trouble but in my test environment it will occasionally throw a CommunicationObjectFaultedException. This has been very difficult to track down but it seems to happen only after going a long time with out calling it. The client is a web applicta...

Caching over distributed application on servers

I have a web application that will be distributed over 2 servers and the Database will be on a server other than the 2 servers. so application on each server will access database exists in another server.I am using caching in the application and when data changed the cache is cleared and the problem now how each server will feel with cac...