nebula-java icon indicating copy to clipboard operation
nebula-java copied to clipboard

auto rebalance sessions

Open ahxxm opened this issue 1 year ago • 0 comments

Introduction

On graphd/storaged reboots/failures, we observed that QPS skews toward remaining living servers, and QPS are never balanced again without intervention(client reboot, network fluctuation, etc).

The more servers we have, the lower the probability that a new session is created on a recently started server, because pos is only an index.

This undermines the purpose of a distributed database.

Proposal

Implement a new priority queue based on existing connections count for graphd server to replace pos, enabling each client to balance connections across all available servers. (I believe this would serve as a suitable default configuration.)

ahxxm avatar Nov 29 '24 01:11 ahxxm