upstream test_group {
# If there is no specific strategy, round-robin
# would be the default strategy.
# least_conn;
# ip_hash;
server 172.16.217.109:8501 weight=1 max_fails=2 fail_timeout=30s;
server 172.16.217.109:8502 weight=1 max_fails=2 fail_timeout=30s;
}
location / {
#root html;
#index index.html index.htm;
client_max_body_size 3m;
proxy_pass http://test_group;
}