Bug #111210 please add weight to replication_group_members
| Submitted: | 31 May 2023 6:40 | Modified: | 31 May 2023 7:01 |
|---|---|---|---|
| Reporter: | Simon Mudd | Email Updates: | |
| Status: | Verified | Impact on me: | |
| Category: | MySQL Server: Group Replication | Severity: | S4 (Feature request) |
| Version: | 8.0 | OS: | Any |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | group_replication, performance schema, replication_group_members, weight | ||
[31 May 2023 6:40]
Simon Mudd
[31 May 2023 6:52]
MySQL Verification Team
Hello Simon, Thank you for the feature request! regards, Umesh
[31 May 2023 6:59]
Simon Mudd
The documentation is rather vague here about the extreme values that can be set. If I want to PREVENT a server being used for failovers yet want it to participate under normal circumstances I do not appear to have a way to do that. The weight of 0 does not necessarily imply that a failover to this server should not take place. Consider maintenance windows and/or when we may really not want to promote a specific server (e.g. a test version) for one or more reasons. The promotion rules as they stand reduce the possibility of the failover taking place on a server I give a weight of 0 to but do not prevent that. I believe such a feature would be convenient using the value of 0 (current minimum value) or perhaps something like -1. This would allow the failover logic to behave as now and PREVENT the server(s) with such a priority to be failed over to. Clearly doing so may mean that a failover is not possible and the expected redundancy may actually be lower than implicitly defined by the group members being ONLINE but this is a policy decision in the configuration.
[19 Feb 2025 12:58]
Buchan Milne
I identified the same need while evaluating MySQL Group Replication. I have implemented support for group_replication_group_member_weight in performance_schema.replication_group_members in https://github.com/mysql/mysql-server/pull/601 . However, note that with this implementation if group_replication_group_member_weight is changed on one member that the weight will not be propagated to other nodes (see https://dev.mysql.com/doc/refman/8.0/en/group-replication-system-variables.html#sysvar_gro...). If you want the changed value to be propagated, you need to `stop group_replication; start group_replication` on the node in question. This limitation is acceptable for my needs, so I haven't explored making the change propagate without this (it would probably be a lot more work as new cluster membership messages may be required). Note that I have been added to an existing corporate CLA and my contribution is covered by that CLA.
[19 Feb 2025 15:48]
OCA Admin
Contribution submitted via Github - Bug#111210 Extend pfs.replication_group_members to include MEMBER_WEIGHT (*) Contribution by Buchan Milne (Github bgmilne, mysql-server/pull/601#issuecomment-2668975815): "I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it."
Contribution: git_patch_2344536258.txt (text/plain), 7.33 KiB.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.058 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.