[CONCPP-4] Failover capabilities for Connector/C++ Created: 2020-03-13  Updated: 2022-01-18  Resolved: 2022-01-18

Status: Closed
Project: MariaDB Connector/C++
Component/s: General
Affects Version/s: None
Fix Version/s: 1.1.1

Type: New Feature Priority: Critical
Reporter: Geoff Montee (Inactive) Assignee: Lawrin Novitsky
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Blocks
is blocked by CONC-365 Failover capabilities Closed
Relates
relates to CONCPP-73 Loadbalancing for Connector/C++ Closed
relates to CONJS-169 Support failover and/or high-availabi... Closed
relates to CONPY-44 Failover capabilities for Connector/P... Closed
relates to ODBC-116 Failover capabilities for Connector/ODBC Closed
relates to R2DBC-21 Failover capabilities for Connector/R... Closed
PM Planning: FR_FIELD, FR_MAXSCALE, RM_CONCPP

 Description   

Goal is to permit setting some failover capability on connector level for C++.

Configuration must permit setting multiple hosts/ports. Then, when trying to establish a connection, connector will trying to connect those hosts sequentially until success or throwing error if last host connection fails.

This would permit failover on multiple maxscale instances, avoiding use additional tools that monitor maxscales state.

UPDATE: This task would cover the failover, CONCPP-73 the loadbalancing



 Comments   
Comment by Lawrin Novitsky [ 2020-03-13 ]

It will actually derive those capabilities from C/J. They won't be in first version, though. But lot's of code is already there. It's just would be too much for first version.

Comment by Lawrin Novitsky [ 2022-01-18 ]

Based on Connector/C v3.3 feature. Syntax for hosts definition is the same, as in the C/J
jdbc:mariadb:sequential://host1,host2,host3/testdb
Single host: <host>[:port]. IPv6 address should be enclosed in square
brackets like [::1].
C/C submodule has been moved to use 3.3 branch by the commit.

Generated at Thu Feb 08 03:07:38 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.