[MXS-2168] Add "assume_unique_hostnames" option to MariaDBMonitor Created: 2018-11-15  Updated: 2018-11-27  Resolved: 2018-11-21

Status: Closed
Project: MariaDB MaxScale
Component/s: mariadbmon
Affects Version/s: 2.3.0
Fix Version/s: 2.3.2

Type: Task Priority: Major
Reporter: Esa Korhonen Assignee: Esa Korhonen
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Blocks
blocks MXS-2169 Split rejoin to two operations, add "... Closed
Sprint: MXS-SPRINT-70

 Description   

Currently, the monitor attempts to only use server id:s when building the replication topology. This has the weakness that the id:s cannot be used or trusted in any situation where MaxScale was started when a server was already down.

Example: If master (e.g. server1) is down when MaxScale starts, and a slave claims that it is replicating from server1's host:port, MaxScale cannot assume that the slave is actually replicating from server1. This is because hostnames may not be unique, the hostnames seen by the backends may be different from the ones seen by MaxScale. This complicates cluster detection quite a bit.

In practice however, such setups are rare. Failover/switchover use the hostnames in MaxScale configuration when issuing CHANGE MASTER TO-commands, so any exotic network configuration is already incompatible with cluster manipulation features.

For these reasons, a monitor option which allows MaxScale to assume that hostnames/IPs are unique and consistent is required. This setting would be on by default and a requirement for any cluster operations.


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