169 похожих чатов

Hello! I'm a novice with mysql and I found myself

in an unpleasant situation.
current danger state: db3_leader and db4_replica
original correct state: db3_replica and db4_leader
orchestrator switched/promoted db3 to leader.
I'll try to get dump from db3 and load it on db4
But idk how is it doing? Because db3 is a production DB (I think use mysqldump with options) and it's 2Tb of size
Could you please advice me manual or howto or just help with article, thanks!

5 ответов

30 просмотров

not enough info. you definetely use some kind of arbiter to make a failover. and it seems a failover has happened. ain't nothing wrong with that

Evgenii-Anisimov Автор вопроса
Какой-то Хмырь
not enough info. you definetely use some kind of a...

Yes, orchestrator - is an arbiter, it's just did failover (no more questions to it) Main question is - how to get valid dump db.<all_tables> and restore it on current replica? mysqldump is logical backup, but db has 2Tb size, it's too much for mysqldump percona xtrabackup... is physical, but idk how to use it on production db without affect on users

Evgenii Anisimov
Yes, orchestrator - is an arbiter, it's just did f...

if i remember correctly, it doesn't block readers or writers. so the only thing you have to worry about is disk and network io. which usually is not a problem. but in case it is, you can pipe this stuff into pv and call it a day.

Evgenii Anisimov
Yes, orchestrator - is an arbiter, it's just did f...

You don't have a choice in this situation. 1. mysqldump a few files, different tables in the different files with data 2. mysqldump, a single file with all tables and data 3. perconaxtrabackup. Percona XtraBackup will use Backup locks where available as a lightweight alternative to FLUSH TABLES WITH READ LOCK. This feature is available in Percona Server for MySQL 5.6+. Percona XtraBackup uses this automatically to copy non-InnoDB data to avoid blocking DML queries that modify InnoDB tables. When backup locks are supported by the server, xtrabackup will first copy InnoDB data, run the LOCK TABLES FOR BACKUP and copy the MyISAM tables and .frm files. Once this is done, the backup of the files will begin. It will backup .frm, .MRG, .MYD, .MYI, .TRG, .TRN, .ARM, .ARZ, .CSM, .CSV, .par, and .opt files.

Evgenii-Anisimov Автор вопроса

Похожие вопросы

Обсуждают сегодня

а зачем этот вопрос для удаления из чата?
Mёdkinson Medvezhkin
63
Добрый день. Хочу сделать отрисовку по команде на панели. Почему-то рисуется только при втором вызове. С чем может быть связано, не подскажете? procedure TForm1.FormDblClick(...
Kirill Filippenok
20
I just installed it but how do I use it?
Talula
12
Всем доброго дня! Подскажите может кто использовал связку Pagebuilder + Clientsetting. Сами параметры с типом pagebuilder в модуле Clientsetting работают нормально, можно такж...
Александр Добриков
12
Всем привет! Нужен совет от опытных. Переношу свой проект с Делфи 10.2 Токио на Лазарус 3.2 установленный через инсталлятор fpcupdeluxe-x86_64-win64. При импортировании проект...
Дмитрий Завгородний
7
А почему в си некоторые вещи работают с двойными кавычками некоторые с одинарными? Нельзя было все сделать с одними или чтоб работало с разными? например чтоб выводить строки ...
.
15
Всем привет! Подскажите. Я написал приложение на Delphi 10.2 Tokyo под Windows 10. И передо мной стал вопрос о том чтобы сделать это приложение кроссплатформенным (под Linux и...
Дмитрий Завгородний
24
Эх кто-то пришел и весь праздник испортил :( You need complex FBX scene importing setup to change things on import? good luck with that. You need navigation and pathfinding? g...
Serg Gini
5
Приветствую всех, возникла проблема, до этого писал бота в простом формате где при выполнении условий приходило через send_message информация, сейчас решил добавить хендлер на...
Andrew
4
Good afternoon, I just started learning php in conjunction with mysql. I am registering a system on a local Mamp server using phpMyAdmin. It seems to be stored normally in the...
ManGo
1
Карта сайта