You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2018/09/06 09:51:04 UTC

[GitHub] leanken edited a comment on issue #6172: nodes should allow draining

leanken edited a comment on issue #6172: nodes should allow draining
URL: https://github.com/apache/incubator-druid/issues/6172#issuecomment-419034484
 
 
   we hit the same issue with this topic. Our SLB system detect and determined whether a broker is alive or not only by its return HTTP Code.
   Our Druid Cluster is quite huge, and a broker from start to ready to serve query might have 10+ seconds time gap.
   
   when our SLB system try call /druid/broker/v1/loadstatus
   it might return
   HTTP Code: 200
   {
       "inventoryInitialized": false
   }
   
   and assume that this broker could be served query, hens, some of the request will fail according to this condition.
   
   Proposal: 
   Have to look at the latest code of coordinator isLeader API
   
   ```
       if (leading) {
         return Response.ok(response).build();
       } else {
         return Response.status(Response.Status.NOT_FOUND).entity(response).build();
       }
   ```
   
   i suggest that we can have a another broker http endpoint
   /druid/broker/v1/isReady
   if serverView is not inititalized, return 404, else return 200. and this will make our SLB system work as expected.
   
   @pdeva if you are with my proposal, i can do the pull request, and fix this issue along with the documentation.  FYI.
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org