How much difference do different slave_parallel_mode settings make when we use parallel replication in MariaDB? In most cases, not much. The conservative setting has been the default for a long time, and in most cases it performs similarly or better than optimistic. But every once in a while there is a very large difference. One […]
The post MariaDB Replication – slave_parallel_mode Difference appeared first on Shattered Silicon.
MariaDB Replication – slave_parallel_mode Difference appeared first on MariaDB.org
How much difference do different slave_parallel_mode settings make when we use parallel replication in MariaDB? In most cases, not much. The conservative setting has been the default for a long time, and in most cases it performs similarly or better than optimistic. But every once in a while there is a very large difference.
One of our MariaDB support engineers was recently called to investigate why a newly built server was struggling to keep up with replication. Since it was built, it hardly managed to close the gap at all, and at the current rate it wouldn’t be able to be used in the foreseeable future. All of the usual settings were already very well optimised.
The only thing that remained to try was slave_parallel_mode=optimistic, and surprisingly, in this case it made a huge difference.
You can see where the setting was changed around 13:20 and the replication lag started to rapidly decay, and the server caught up with 20 hour lag in approximately 3.5 hours.
Conclusionslave_parallel_mode=optimistic may not always yield a significant improvement, but if you have already applied all other optimisations and the replication lag just isn’t budging, it’s definitely worth a try.
| # | Наименование новости | Тональность | Информативность | Дата публикации |
|---|---|---|---|---|
| 1 | MariaDB’s parallel replication to catch up | 0 | 13.23 | 09-04-2024 |
| 2 | Talk: The implementation of MariaDB parallel replication | 0 | 4.78 | 12-11-2024 |
| 3 | MariaDB replication demo | 0 | 6.23 | 03-10-2022 |
| 4 | Reduce Replication Lag | 0 | 7.96 | 01-06-2022 |
| 5 | Why MySQL Replication Is Fast | 0 | 8.26 | 31-05-2024 |
| 6 | MariaDB High Availability: Maximum Availability Solutions in MariaDB 12.3 LTS | 0 | 9.37 | 17-08-2026 |
| 7 | MaxScale configuration synchronisation | 0 | 3.91 | 04-04-2024 |
| 8 | dbstat for MariaDB after one month of productive use | 0 | 6.27 | 26-04-2024 |
| 9 | PostgreSQL active-active replication, do you really need it? | 0 | 10.97 | 18-06-2025 |
| 10 | The Insert Benchmark vs MariaDB 10.2 to 13.0 on a 32-core server | 0 | 6.43 | 08-04-2026 |