MySQL NDB Cluster offers high availability and scalability through its distributed architecture. However, managing and troubleshooting such a system requires robust monitoring and insightful diagnostics. At the heart of this lies effective logging. This post will guide you through the details of logging within MySQL NDB Cluster, explaining how it works across different kind of […]
In this blog, we will discuss about how to setup MySQL NDB
Cluster replication in a more secure way with the help of binary
log and relay log encryption and a secure connection. These
measures protect binary log dat in transit and at rest.
Let’s create two MySQL NDB Clusters with the following
environment, Here, one will be termed as ‘source’ cluster and the
other one will be termed as ‘replica’ cluster.
- MySQL NDB Cluster version (Latest GA version)
- 1 Management node
- 4 Data nodes
- 1 MySQLDs
- Configuration slots for up to 4 additional API nodes
Step 1: Start both of the Clusters
Let’s start both the source cluster and replica cluster but do
not start the MySQLD servers from both the clusters as we want to
modify their configuration first.
…
In this blog, we will discuss about how to scale out MySQL NDB
Cluster in few easy steps. The use cases could be, when user
business applications demand massive expansion and the existing
cluster may not able to handle the request in that case a cluster
scaling is needed. This is an online procedure i.e. zero cluster
downtime so that user’s business won’t affect while this scaling
process is going on.
In the below demo, we will see, how to scale from a 4 nodes
cluster to 8 nodes cluster while transactions are going on.
Let’s create a MySQL NDB Cluster with the following
environment.
- MySQL NDB Cluster version (Latest GA version)
- 1 Management node
- 4 Data nodes
- 1 MySQLDs
- Configuration slots for up to 4 additional API nodes
Step 1: Let's start the Cluster
Let’s start a 4 nodes cluster.
…
In this blog, we will discuss, how to setup MySQL NDB Cluster
replication through backup and restore method. This is bit
tricky but interesting. The scenario here is, say user have a
standalone cluster up and running, later there is a need to have
a replication setup with an another empty cluster without
shutting down the existing running cluster i.e. zero downtime.
Then this backup and restore method will come in handy.
Let’s create two MySQL NDB Cluster with the following
environment, Here, one will be termed as ‘source’ cluster and the
other one will be termed as ‘replica’ cluster.
- MySQL NDB Cluster version (Latest GA version)
- 1 Management Node
- 4 Data Nodes
- 1 MySQLDs
- Configuration slots for up to 4 additional API nodes
Replication schema diagram:
CLUSTER
'A' …
In this blog, we will discuss about bidirectional
replication between two NDB clusters. With this topology,
user can do transaction simultaneously from both the clusters on
the same database objects.
Let’s create two MySQL NDB Cluster with the following
environment, Here, both will be termed as ‘source’ cluster as
well as ‘replica’ cluster as we will do replication from both the
sides.
- MySQL NDB Cluster version (Latest GA version)
- 1 Management node
- 4 Data nodes
- 2 MySQLDs
- Configuration slots for up to 4 additional API nodes
Replication schema diagram:
|-----------S1---------->>----------S3--------------|
…
In the 1990s I spent a few years studying requirements on databases used in 3G telecom networks. The main requirement was centered around three keywords, Latency, Throughput and Availability. In this blog post I will focus on Availability.
If a telecom database is down it means that no phone calls can be made, internet connections will not work and your app on your smartphone will cease to work. So more or less impacting each and everyone's life immediately.
The same requirements on databases now also start to appear in AI applications such as online Fraud detection, self-driving cars, smartphone apps.
Availability is measured in percent and for telecom databases the requirement is to reach 99.9999% availability. One often calls this Class 6 availability where 6 is the number of nines in the availability percentage.
Almost every database …
[Read more]As introduced in a previous blog RonDB enables us to easily execute benchmarks on RonDB using the Sysbench benchmark.
In this blog I will present some results where the RonDB cluster had 2 data nodes, each using a r5.4xlarge VM in AWS that has 16 VCPUs and 128 GB memory. The Sysbench test uses SQL to access RonDB.
In this particular test case we wanted to test the Key-Lookup performance using SQL. Key-Lookup performance is essential in the RonDB use case as an online Feature Store in Hopsworks.
In this case we use the …
[Read more]
In the previous blog, we were able to setup a MySQL NDB Cluster
replication between one source and one replica cluster. In this
blog, we will discuss about replication between one source and
three replica clusters.
Note: With MySQL version (8.0.21), we have started
changing the term “master” to “source”, the term “slave” to
“replica”. So in this blog we will refer these terms ‘source’ and
‘replica’ wherever applicable.
The main advantage of this type of topology is good for giving
‘local’ reads in geographically distant areas as well as
increased redundancy in case of issues.
Let’s create four MySQL NDB Cluster with the following
environment, from which one will be termed as ‘source’ cluster
while the rest will be ‘replica’ clusters.
- MySQL NDB Cluster version (Latest GA version)
- 1 Management node
- 4 Data nodes …
In this blog series, we will discuss various MySQL NDB Cluster
replication topologies possible with a demonstration. We will
start with a simple case i.e. one source (formerly called master)
and one replica (formerly called slave).
Note: With MySQL version (8.0.21), we have started changing the
term “master” to “source”, the term “slave” to “replica”. So in
this blog we will refer these terms ‘source’ and ‘replica’
wherever applicable.
Let’s create two MySQL NDB Cluster with the following
environment, from which one will be termed as ‘source’ cluster
while the other one will be ‘replica’ cluster. For now, let’s
stick to the identical environment from both the cluster. Later
in the following blog series, we will change the environments and
will run the replication.
- MySQL NDB Cluster version (Latest GA version)
- 1 Management node
- 4 Data nodes …
Introduction
In my previous two blogs on this topic I first introduced the concept of automatic thread configuration and the thread model we use in RonDB. After receiving some questions on the topic I dived a bit deeper into explaining the RonDB thread model and its thread pipeline and compared it to another similar concept called batch pipelines.
Since then I read up a bit more on the research in this area with a focus on implementations in other key-value stores. Some researchers argue that a model where one handles the request immediately is superior to a model using a thread pipeline.
RonDB Software …
[Read more]