Commit 4df445f3 by Jason Song

try to load balance for long poll notification

parent 6e2e8ae7
......@@ -171,6 +171,11 @@ public class RemoteConfigLongPollService implements Initializable {
notify(lastServiceDto, response.getBody());
}
//try to load balance
if (random.nextBoolean()) {
lastServiceDto = null;
}
m_longPollFailSchedulePolicyInSecond.success();
transaction.addData("StatusCode", response.getStatusCode());
transaction.setStatus(Message.SUCCESS);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment