Skip to content

Commit 1bb4748

Browse files
committed
Move explanation of TrinoStatus to its own section in routing-rules page
1 parent 6ee7566 commit 1bb4748

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/routing-rules.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,21 @@ condition: 'request.getHeader("X-Trino-Client-Tags") contains "label=foo"'
134134

135135
If no rules match, then request is routed to adhoc.
136136

137+
### TrinoStatus
138+
139+
This class attempts to track the current state of Trino cluster. It is updated per every healthcheck.
140+
There are three possible states
141+
142+
- PENDING
143+
- A Trino cluster will show this state when it is still starting up. It will be treated as
144+
unhealthy by RoutingManager, and therefore requests will not be routed to PENDING clusters
145+
- HEALTHY
146+
- A Trino cluster will show this state when healthchecks report clusters as healthy and ready.
147+
RoutingManager will only route requests to healthy clusters
148+
- UNHEALTHY
149+
- A Trino cluster will show this state when healthchecks report clusters as unhealthy. RoutingManager
150+
will not route requests to unhealthy clusters.
151+
137152
### TrinoRequestUser
138153

139154
This class attempts to extract the user from a request. In order, it attempts

0 commit comments

Comments
 (0)