Commit c8cf0fd
committed
Check the per rule settings in the VR health check
haproxy_check.py compares the router's haproxy.cfg against what the
management server thinks it configured. It knew about maxconn and the
global idle timeout, so a rule's own keepalive and timeouts could drift
without anything noticing.
The health check data now carries the three per rule values, empty when
the rule inherits, and the check validates them in that rule's listen
section:
ruleKeepAlive option http-keep-alive, or option httpclose
ruleIdleTimeout timeout client, timeout server
ruleKeepAliveTimeout timeout http-keep-alive
The http mode test needed widening too. It read the offering flag alone,
so a rule that sets keepalive itself stopped being checked at all:
before port 80 and the offering has keepalive off
after port 80 and (the rule sets keepalive, or the offering has it off)
An older management server sends none of these keys, and a rule that sets
nothing sends them empty. Both read as nothing to check.
Signed-off-by: Brad House <bhouse@nexthop.ai>1 parent 08327da commit c8cf0fd
2 files changed
Lines changed: 79 additions & 3 deletions
File tree
- server/src/main/java/com/cloud/network/router
- systemvm/debian/root/health_checks
Lines changed: 23 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
199 | 201 | | |
200 | 202 | | |
201 | 203 | | |
| 204 | + | |
202 | 205 | | |
203 | 206 | | |
204 | 207 | | |
| |||
352 | 355 | | |
353 | 356 | | |
354 | 357 | | |
| 358 | + | |
| 359 | + | |
355 | 360 | | |
356 | 361 | | |
357 | 362 | | |
| |||
1711 | 1716 | | |
1712 | 1717 | | |
1713 | 1718 | | |
1714 | | - | |
| 1719 | + | |
| 1720 | + | |
| 1721 | + | |
1715 | 1722 | | |
1716 | 1723 | | |
1717 | 1724 | | |
| |||
1720 | 1727 | | |
1721 | 1728 | | |
1722 | 1729 | | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
| 1734 | + | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
| 1738 | + | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
| 1742 | + | |
| 1743 | + | |
| 1744 | + | |
1723 | 1745 | | |
1724 | 1746 | | |
1725 | 1747 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
72 | 118 | | |
73 | 119 | | |
74 | 120 | | |
| |||
94 | 140 | | |
95 | 141 | | |
96 | 142 | | |
97 | | - | |
98 | | - | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
99 | 150 | | |
100 | 151 | | |
101 | 152 | | |
102 | 153 | | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
103 | 157 | | |
104 | 158 | | |
105 | 159 | | |
| |||
0 commit comments