[MXS-3476] Enable session redistribution and rebalancing for applications relying on session pooling Created: 2021-03-31 Updated: 2022-04-22 Resolved: 2021-04-07 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | Documentation |
| Affects Version/s: | None |
| Fix Version/s: | N/A |
| Type: | New Feature | Priority: | Major |
| Reporter: | Gregory Dorman (Inactive) | Assignee: | Todd Stoffel (Inactive) |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | Xpand | ||
| Issue Links: |
|
||||||||
| Description |
|
The general description and the full background can be found in It appears the proposal can be implemented in 2 phases. Phase 1 . This is likely to be satisfactory to the client in question. At this stage we will still rely on command history for both RETRY and session failover. What this ticket is requesting is: a) Enable an additional directive to MaxScale requesting "rebalancing" of existing sessions. This operation would be requested when the XPAND cluster is enlarged. b)Enable additional directive to redistribute sessions presently located on a living server to other servers. This should be requested prior to terminating a node gracefully. In Phase 2, if we ever go there, we can talk about enhancing the current mechanism of moving sessions which presently depends on command history. Instead, "eligible" sessions get "moved" to a different server by Some proposed alternatives and possible risks are outlined in the referenced paper. |
| Comments |
| Comment by markus makela [ 2021-04-01 ] |
|
The first part seems like a duplicated of The second part is essentially already implemented with the Drain server state in MaxScale which prevents new connections from being created to servers in this state. The only addition that needs to be done is to actively discard the connections to the server being drained whenever it is safe to do. |
| Comment by markus makela [ 2022-04-22 ] |
|
With the addition of restart session commands for |