Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
MariaDB High Performance

You're reading from   MariaDB High Performance Familiarize yourself with the MariaDB system and build high-performance applications

Arrow left icon
Product type Paperback
Published in Sep 2014
Publisher
ISBN-13 9781783981601
Length 298 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Pierre Mavro Pierre Mavro
Author Profile Icon Pierre Mavro
Pierre Mavro
Arrow right icon
View More author details
Toc

Table of Contents (13) Chapters Close

Preface 1. Performance Introduction 2. Performance Analysis FREE CHAPTER 3. Performance Optimizations 4. MariaDB Replication 5. WAN Slave Architectures 6. Building a Dual Master Replication 7. MariaDB Multimaster Slaves 8. Galera Cluster – Multimaster Replication 9. Spider – Sharding Your Data 10. Monitoring 11. Backups Index

Cascade slaves

In the previous chapter, we've seen how to build several slaves from a master node. When you have a few nodes, it's not really a problem for the master node to handle them.

However, when you multiply the number of slave nodes, you'll encounter more and more I/O problems with your master node. It will be hard for it to perform write operations and give them to the slave nodes from the binary logs. So basically, you shouldn't have these kinds of architectures.

Refer to the following diagram:

Cascade slaves

Monitor the master node properly to ensure that it is not overloaded. Of course, the number of maximum slaves depends on the load of the master node.

To resolve this kind of problem, you can perform slave cascading. The following diagram shows a simple solution:

Cascade slaves

This means that you can have a master replicated on a slave and then replicated on another slave (as shown in the following diagram). This really helps in scaling with high load traffic.

Cascade slaves

With this solution, you can...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime