caoyang10 opened a new issue #4351:
URL: https://github.com/apache/incubator-doris/issues/4351


   I create a external ES table and test some queries on ES.Then I find all of 
the queries route at same 3 BE nodes.
   I find the code at 
fe/fe-core/src/main/java/org/apache/doris/planner/EsScanNode.java
   227: candidateBeList.add(backendList.get(beIndex++ % numBe));
   numBe is always 3 when number of be is greater than 3. So that 
candidateBeList always add 3 front of beckendList.
   It should be corrected like:
   candidateBeList.add(backendList.get(beIndex++ % backendList.size()));
   Then FE can balance ES queries between BE nodes. 


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to