Mastering Nginx

(Ron) #1
Chapter 5

[ 99 ]

server 10.0.40.30;

server 10.0.40.40;

server 10.0.40.50;

server 10.0.40.60;

}

Perhaps the time has come for the application to be rewritten, or to be migrated
onto a server with a different application stack. Before moving the whole application


over, one server can be brought into the active pool for testing under real load with
real clients. This server could be given fewer requests to help minimize any negative


reactions should problems arise.


This is done with the following configuration:


upstream app {

server 10.0.40.10 weight 10;

server 10.0.40.20 weight 10;

server 10.0.40.30 weight 10;

server 10.0.40.100 weight 2;

}
Free download pdf