[MXS-2313] Replace weightby Created: 2019-02-04  Updated: 2020-08-25  Resolved: 2019-03-18

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: None
Fix Version/s: 2.4.0

Type: New Feature Priority: Major
Reporter: markus makela Assignee: markus makela
Resolution: Fixed Votes: 3
Labels: None

Sprint: MXS-SPRINT-77

 Description   

The weightby mechanism is rarely used to do what it is intended for, which is manual adjustments to the load balancing alogorithms, and most of the time it is abused to forcibly discard a server from routing.

The use of conditional server use, or in other words priority based usage, is a valid use-case as in some scenarios a local server is always better compared a remote one but the remote server should be usable in case the local one fails.



 Comments   
Comment by Dipti Joshi (Inactive) [ 2019-02-04 ]

johan.wikman markus makela What is the source of this request? Let us hold on to this one for now.

Comment by markus makela [ 2019-02-04 ]

The parameter was deprecated in 2.3.

Comment by Johan Wikman [ 2019-02-22 ]

This should be quite straightforward to support. Something like:

[Server1]
type=server
...
location=local
 
[Server2]
type=server
...
location=remote

And a remote server is only used if a local is not available.

Comment by markus makela [ 2019-03-18 ]

Added the rank parameter with two values: primary and secondary. The default value is primary.

Generated at Thu Feb 08 04:13:13 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.