Update api-reference.md doc (#7065)

- moving description of coordinator isLeader endpoint
This commit is contained in:
awelsh93 2019-02-14 14:38:09 +00:00 committed by Dylan Wylie
parent 1f29940811
commit ee91e27fe7

View File

@ -74,17 +74,15 @@ Returns the current leader Coordinator of the cluster.
* `/druid/coordinator/v1/isLeader` * `/druid/coordinator/v1/isLeader`
Returns true if the Coordinator receiving the request is the current leader.
#### Segment Loading
##### GET
Returns a JSON object with field "leader", either true or false, indicating if this server is the current leader Returns a JSON object with field "leader", either true or false, indicating if this server is the current leader
Coordinator of the cluster. In addition, returns HTTP 200 if the server is the current leader and HTTP 404 if not. Coordinator of the cluster. In addition, returns HTTP 200 if the server is the current leader and HTTP 404 if not.
This is suitable for use as a load balancer status check if you only want the active leader to be considered in-service This is suitable for use as a load balancer status check if you only want the active leader to be considered in-service
at the load balancer. at the load balancer.
#### Segment Loading
##### GET
* `/druid/coordinator/v1/loadstatus` * `/druid/coordinator/v1/loadstatus`
Returns the percentage of segments actually loaded in the cluster versus segments that should be loaded in the cluster. Returns the percentage of segments actually loaded in the cluster versus segments that should be loaded in the cluster.