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 ответов

39 просмотров

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 Автор вопроса

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

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

А как старый хаскел с новым стыковать ? потому как тут работает https://play.haskell.org/saved/C3xpMzcd, а вот тут https://stepik.org/lesson/7602/step/9?unit=1473 нет ошибка C...
Fedor
131
Народ, кто шарит в расширенных разделах (EBR/EPR) на дисках с разметками MBR? Везде пишут (в вики рус/англ) в частности + другие источники смотрел, что первый сектор расширенн...
Eugene Krasnikov (ᴊɪɴ x)
1
что насчет пагинга? на осдеве непонятно(
Vi Chapmann 🪙
26
Вопрос я правильно понимаю что в коде newtype ArrowMap k v = ArrowMap { getArrowMap :: k -> Maybe v } getArrowMap есть функция типа k -> Maybe v, если да, то не понимаю задач...
Fedor
64
Ребят, что лучше для реверса: гидра или ида?
En Vind Av Sorg
26
Делаю велосипед логгер. К сообщению хочу прикрутить некоторую информацию, типа, кем отправлено, какой уровень, и всякое такое. И тут подумалось мне, почему бы не хранить весь...
Serjone
24
Как Вы считаете нормально ли в двадцатых годах 21 века в ВУЗах Российской Федерации обучать студентов работе с TASM? Не слишком ли это "архаично"? (Если оффтоп или флейм для э...
Spiker01
52
Комрады, хотел уточнить. Проперть в OnDestroy юнита-хозяина по-прежнему доступна? И еще уточнение: finalization юнита наступает раньше или позже OnDestroy?
Ed Doc
48
Продолжая диалог про свифт в проде – сейчас возник вопрос в активном наборе бекендеров. В основном в нашей компании мы фанаты Java Spring и полностью ей довольны. Однако найм ...
Guseyn
27
Читаю сейчас [нет, уже больше не читаю!] курсовую о Булгакове, написанную, похоже, с помощью ChatGPT. Это удивительный психоделический опыт. Текст в основном написан в стиле б...
✨ Uni [🌊 В отпуске]
1
Карта сайта