Skip to content

Commit c6c736f

Browse files
Merge pull request #2264 from rabbitmq/md/health-check-ready-to-serve
Document health checks for testing readiness to serve clients
2 parents 1267d29 + 9478a90 commit c6c736f

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

docs/http-api-reference.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,25 @@ serve clients, otherwise responds with a 503 Service Unavailable. If the
17021702
target node is being drained for maintenance then this check returns 503
17031703
Service Unavailable.
17041704

1705+
### GET /api/health/checks/below-node-connection-limit
1706+
1707+
Responds a 200 OK if the target node has fewer connections to the AMQP
1708+
and AMQPS ports than the configured maximum, otherwise responds with a
1709+
503 Service Unavailable.
1710+
1711+
### GET /api/health/checks/ready-to-serve-clients
1712+
1713+
Responds a 200 OK if the target node is ready to serve clients, otherwise
1714+
responds with a 503 Service Unavailable. This check combines:
1715+
1716+
* `/api/health/checks/is-in-service`
1717+
* `/api/health/checks/protocol-listener/amqp` or `/api/health/checks/protocol-listener/amqps`
1718+
* `/api/health/checks/below-node-connection-limit`
1719+
1720+
So this check will only return 200 OK if the target node is in service,
1721+
an AMQP or AMQPS listener is available and the target node has fewer active
1722+
AMQP and AMQPS connections that its configured limit.
1723+
17051724
### GET /api/rebalance/queues
17061725

17071726
Rebalances all queues in all vhosts.

0 commit comments

Comments
 (0)