Authored by Your Name

union分区

@@ -165,10 +165,9 @@ http @@ -165,10 +165,9 @@ http
165 165
166 # union servers 166 # union servers
167 upstream union_pools { 167 upstream union_pools {
168 - server 10.66.70.49:8088 max_fails=5 fail_timeout=3s;  
169 - server 10.66.70.126:8088 max_fails=5 fail_timeout=3s;  
170 - server 10.66.70.21:8088 max_fails=5 fail_timeout=3s;  
171 - server 10.66.70.56:8088 max_fails=5 fail_timeout=3s; 168 + {% for i in groups['java-union'] %}
  169 + server {{ i }}:8088 max_fails=5 fail_timeout=3s;
  170 + {% endfor %}
172 keepalive 100; 171 keepalive 100;
173 } 172 }
174 173