maria-discuss team mailing list archive
-
maria-discuss team
-
Mailing list archive
-
Message #05936
Re: How to replicate TO a HA pair of MariaDB servers?
-
To:
Antony Stone <Antony.Stone@xxxxxxxxxxxxxxxxxxxxxx>, "maria-discuss@xxxxxxxxxxxxxxxxxxx" <maria-discuss@xxxxxxxxxxxxxxxxxxx>
-
From:
martin doc <db1280@xxxxxxxxxxx>
-
Date:
Tue, 15 Sep 2020 10:39:16 +0000
-
Accept-language:
en-AU, en-US
-
Arc-authentication-results:
i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none
-
Arc-message-signature:
i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BQ6yxt+68g/EDbCqdG6cLzE19Vup0O2h/jhWMMXb2CU=; b=Q39pdPgcbh29CR/2WuftXhjcSWYqq3icoujSVyBFLn3BMRFdlZeXGdunoxcd9dEIOA9NXYK8zxuVZXvfRM8E2X3ncS+E7qANxXC+TKmY1Amj8yxBWteI59s5sTbdfyeB/tWsUp//IB8glCA7W+5YJG9Q2gtyMC4z7OVuVDdElWjlMNi1pJHB67UldWFQQOVB/3YuycQsuAUAJWh9hQYdPzV8GMb7gLGseZ8XPUrOvXl/eUL7ZiGjlSCNLVYWEisrrz5tVV/Jran7P8wm1SM0s/MRYZH13OnfnnTqElRHkIbSc0jAxJpQxSP9XugCq/+/3+e07UlxxX9DwdzXfyRU8Q==
-
Arc-seal:
i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oSTXQIeEAMV7LMrnEYoxIZM0DLh/4EuKLZwWyVT0egU+NpYplY4BsXjuimlW1p/ms1BYQ6qGihmzJrkLaXQ82YgsJK4jO2joBwA+6Utid1VTZbG7SO2WmF1no2EaBf3As6C99eTYdwJRghR/NeXhzHiA/LicS4+D7yszMcQ6JQM0bgpWYiACpUrVGfYIbwKLDnQh4ZiK+B1AF887/mvSx0rS1U2uLxFX/VKRKxTPFHOCCz/tTVDJLPvE0HcM3pUb1dvZU7z43JZ2Z6YD3NVa7pF9R22gSi3VQgrGKio0j2xq+qe8nLzHbKg2vf8yReII1dwNVKCx6jJzUFz6kYezDQ==
-
In-reply-to:
<202009151212.05700.Antony.Stone@mariadb.open.source.it>
-
Thread-index:
AQHWi0i2Ugrea6Zreka0qVWP+6UTmKlpf5lx
-
Thread-topic:
[Maria-discuss] How to replicate TO a HA pair of MariaDB servers?
On Tuesday 15 September 2020, Anthony Stone wrote:
> On Tuesday 15 September 2020 at 11:45:05, martin doc wrote:
> > What I'm after advice on is how to replicate tables from a number of single
> > host instances of MariaDB to a single HA pair of MariaDB servers
> > (HA-1/HA-2) that have a VIP that moves between them.
>
> > One way of looking at this might be to say that the single host instances
> > of MariaDB are satellite servers that I need to pull table data back into
> > a primary pair. Kind of like a backup.
> Do you need this to be immediate replication (data written to a single host
> must be replicated immedately to the HA pair) or is a delay of some minutes
> acceptable?
Good question.
A delay of 1 minute or two would be acceptable.
More than 5 minutes, not so much.
> That would be your other problem - you say you have a number of single host
> instances which you want to replicate from, but you can't point a slave at
> more than one master in standard M-M or M-S replication.
I've also used multi-master configurations with GTID before but there's still
the problem of how to restrict the connection accepted on the slave to only
be the host with the VIP.
> a) runs a query on the single hosts to extract updates since the last time the
> query was run, and send this over to the HA pair (eg: rsync and then an
> equivalent script to write into the HA pair, or an SSH tunnel streaming the
> query output into a MariaDB client instance on the HA pair), or
Ok, sounds like I need to write some python to run as a background service
on each of the "satellite" servers that does SELECT/INSERT manually.
Follow ups
References