I am new to Nginx. I have two servers serverA and serverB. I want a 75% request to go to serverA and rest 25% requests to serverB. Is this possible?
I am new to Nginx. I have two servers serverA and serverB. I want a 75% request to go to serverA and rest 25% requests to serverB. Is this possible?
use nginx weighted routing:
stream {
upstream stream_backend {
server srv1.example.com weight=75;
server srv2.example.com weight=25;
}
server {
listen 80;
proxy_pass stream_backend;
}
}
http://nginx.org/en/docs/http/load_balancing.html#nginx_weighted_load_balancing