Как стать автором
Обновить
3
0

C# developer

Отправить сообщение

Заряжай Patroni. Тестируем Patroni + Zookeeper кластер (Часть вторая)

Время на прочтение8 мин
Количество просмотров3.8K

В первой части мы остановились на том, что у нас есть отказоустойчивый кластер и теперь вроде бы все работает. Мы уже можем зайти в базу данных через лидера и что-нибудь туда записать. Последняя проблема, которую нужно решить — программно узнать, где находится лидер. Неужели нужно будет каждый раз делать эту проверку после падения, чтобы понять через какую ноду подключаться к базе?

Читать далее
Всего голосов 1: ↑1 и ↓0+1
Комментарии2

Заряжай Patroni. Тестируем Patroni + Zookeeper кластер (Часть первая)

Время на прочтение15 мин
Количество просмотров10K

Если вы работаете с crucial data, то рано или поздно задумаетесь о том, что неплохо бы поднять кластер отказоустойчивости. Даже если основной сервер с базой улетит в глухой нокаут, show must go on, не так ли?

Читать далее
Всего голосов 7: ↑6 и ↓1+11
Комментарии9

Patroni cluster (with Zookeeper) in a docker swarm on a local machine

Время на прочтение20 мин
Количество просмотров9.7K

There probably is no way one who stores some crucial data (and well, in particular, using SQL databases) can possibly dodge from thoughts of building some kind of safe cluster, distant guardian to protect consistency and availability at all times. Even if the main server with your precious database gets knocked out deadly - the show must go on, right? This basically means the database must still be available and data be up-to-date with the one on the failed server.

As you might have noticed, there are dozens of ways to go and Patroni is just one of them. There is plenty of articles providing a more or less detailed comparison of the options available, so I assume I'm free to skip the part of luring you into Patroni's side. Let's start off from the point where among others you are already leaning towards Patroni and are willing to try that out in a more or less real-case setup.

I am not a DevOps engineer originally so when the need for the high-availability cluster arose and I went on I would catch every single bump on the road. Hope this tutorial will help you out to get the job done with ease! If you don't want any more explanations, jump right in. Otherwise, you might want to read some more notes on the setup I went on with.

Read more
Рейтинг0
Комментарии1

Информация

В рейтинге
Не участвует
Зарегистрирован
Активность