We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43653f3 commit ccf8394Copy full SHA for ccf8394
1 file changed
_modules/haproxy_helpers.py
@@ -40,7 +40,7 @@ def construct_line(self, name, host, loop_index=None):
40
41
if 'mine_setbackup' in server and server['mine_setbackup']:
42
if not('extra' in server and 'backup' in server['extra']):
43
- if weight < server['mine_max_weight']:
+ if weight < server['mine_max_weight'] - 1:
44
line_elements.append('backup')
45
46
return ' '.join(line_elements)
0 commit comments