server-farm

How to avoid single point of failure when using state server in ASP.NET website

In my current project, we have to create a website (ASP.NET MVC) which is likely to have sufficient load to demand a server farm. I understand that if server farm is used, session states must be stored on somewhere else such as SQL server database or state server. After some experimentation, we are inclined to use the state server mecha...

Windows Services in a web farm (how to prevent concurrency conflicts)

Looking ahead, to when a Web Farm will be created... We have various windows service applications performing various back-ground tasks: sending emails, thumbnailing/processing files etc. In a server farm environment, we could in theory install and run each service on each machine, however there may be conflicts due to business object b...

Best strategy for sharing a periodical task in a farm

Hello from Spain, I have an issue here. Suppose you have a business periodical task, for instance generating balance each month. That task could run in a farm, so if the computer that is running the periodical task fail it must be passed to another computer. So, how could I persist a periodical task and making it safe in a farm? I have...

PHP $_SERVER[‘SERVER_ADDR’] variable always returns 127.0.0.1

We have multiple load-balanced webserver machines running the same PHP webapp (LAMP) and I'd like to run slightly different code on each server (for testing purposes). I was hoping to use the $_SERVER['SERVER_ADDR'] super global to do something like this: if ($_SERVER['SERVER_ADDR'] == 'XXX.XXX.XXX.XXX') { echo "Do one thing"; } elsei...