Details
-
New Feature
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
None
-
None
-
MXS-SPRINT-186
Description
By adding load related metadata to the login requests, the connectors can make more educated guesses as to where to connect next. This would work well with the MariaDB connectors that support multiple endpoints and would allow a more even load distribution.
Attachments
Issue Links
- relates to
-
MDEV-31609 Send initial values of system variables in first OK packet
-
- Closed
-
-
CONJ-1084 loadbalance distribution ensuring repartition after failover
-
- Closed
-
-
MDEV-15935 Connection Redirection Mechanism in MariaDB Client/Server Protocol
-
- Closed
-
-
MXS-4153 Graceful Restart
-
- Open
-
A solution would be to have some new "Session change type" SESSION_CONNECTION_COUNTER : When establishing a connection to maxscale, maxscale can send to connectors current number of connection in connection creation ending OK_Packet.
When using loadbalancing, connector could by default use a round-robin pattern and when having those informations, will connect to the less use maxscale by default. The advantage is when a failover occurs, and that maxscale is up again, connectors will then priorize new connections creation to this maxscale until number of connections reach other's.