Percona XtraDB Cluster (PXC) is currently the most popular solution for HA in the MySQL ecosystem, and any solutions Galera-based as PXC have been the only viable option when looking for a high grade of HA using synchronous replication.
But Oracle had intensively worked on making Group Replication more solid and easy to use.
It is time to identify if Group Replication and attached solutions, like InnoDB cluster, can compete or even replace solutions based on Galera.
This presentation will focus on comparing the two solutions and how they behave when serving basic HA problems.
Attendees will be able to get a clearer understanding of which solutions will serve them better, and in which cases.
Wars of MySQL Cluster ( InnoDB Cluster VS Galera ) Mydbops
MySQL Clustering over InnoDB engines has grown a lot over the last decade. Galera began working with InnoDB early and then Group Replication came to the environment later, where the features are now rich and robust. This presentation offers a technical comparison of both of them.
This talk discusses how we structure our analytics information at Adjust. The analytics environment consists of 20+ 20TB databases and many smaller systems for a total of more than 400 TB of data. See how we make it work, from structuring and modelling the data through moving data around between systems.
In the first part of Galera Cluster best practices series, we will discuss the following topics:
* ongoing monitoring of the cluster and detection of bottlenecks;
* fine-tuning the configuration based on the actual database workload;
* selecting the optimal State Snapshot Transfer (SST) method;
* backup strategies
(video:http://galeracluster.com/videos/2159/)
ProxySQL is a popular database proxy for MySQL/MariaDB servers. This focuses on the possible High availability options for ProxySQL and operations of inbuilt clustering feature in ProxySQL. This tech talk was presented at Mydbops Database Meetup on 27-04-2019 by Aakash M, Database Administrator with Mydbops and Vignesh Prabhu, Database Administrator with Mydbops.
Group Replication went Generally Available end of 2016, it introduces a 'synchronous' active:active multi-master eplication, in addition to asynchronous and semi-synchronous replication, the latter 2 being available in in MySQL for longtime.
As with any new feature, and especially with introducing active:active multi-master replication, it takes a while before companies are adopting the software in production database environment.
For example, even though MySQL 5.7 has been GA for more than a year, adoption is only starting to increase recently.
We can, and should, expect the same from Group Replication. As with every release, bugs will be found, and with new features, best practises still need to formed out of practical experience.
After giving a short introduction on what Group Replication is, I will cover my experience so far in evaluating Group Replication.
We will show the advantages of having a geo-distributed database cluster and how to create one using Galera Cluster for MySQL. We will also discuss the configuration and status variables that are involved and how to deal with typical situations on the WAN such as slow, untrusted or unreliable links, latency and packet loss. We will demonstrate a multi-region cluster on Amazon EC2 and perform some throughput and latency measurements in real-time (video http://galeracluster.com/videos/using-galera-replication-to-create-geo-distributed-clusters-on-the-wan-webinar-video-3/)
Wars of MySQL Cluster ( InnoDB Cluster VS Galera ) Mydbops
MySQL Clustering over InnoDB engines has grown a lot over the last decade. Galera began working with InnoDB early and then Group Replication came to the environment later, where the features are now rich and robust. This presentation offers a technical comparison of both of them.
This talk discusses how we structure our analytics information at Adjust. The analytics environment consists of 20+ 20TB databases and many smaller systems for a total of more than 400 TB of data. See how we make it work, from structuring and modelling the data through moving data around between systems.
In the first part of Galera Cluster best practices series, we will discuss the following topics:
* ongoing monitoring of the cluster and detection of bottlenecks;
* fine-tuning the configuration based on the actual database workload;
* selecting the optimal State Snapshot Transfer (SST) method;
* backup strategies
(video:http://galeracluster.com/videos/2159/)
ProxySQL is a popular database proxy for MySQL/MariaDB servers. This focuses on the possible High availability options for ProxySQL and operations of inbuilt clustering feature in ProxySQL. This tech talk was presented at Mydbops Database Meetup on 27-04-2019 by Aakash M, Database Administrator with Mydbops and Vignesh Prabhu, Database Administrator with Mydbops.
Group Replication went Generally Available end of 2016, it introduces a 'synchronous' active:active multi-master eplication, in addition to asynchronous and semi-synchronous replication, the latter 2 being available in in MySQL for longtime.
As with any new feature, and especially with introducing active:active multi-master replication, it takes a while before companies are adopting the software in production database environment.
For example, even though MySQL 5.7 has been GA for more than a year, adoption is only starting to increase recently.
We can, and should, expect the same from Group Replication. As with every release, bugs will be found, and with new features, best practises still need to formed out of practical experience.
After giving a short introduction on what Group Replication is, I will cover my experience so far in evaluating Group Replication.
We will show the advantages of having a geo-distributed database cluster and how to create one using Galera Cluster for MySQL. We will also discuss the configuration and status variables that are involved and how to deal with typical situations on the WAN such as slow, untrusted or unreliable links, latency and packet loss. We will demonstrate a multi-region cluster on Amazon EC2 and perform some throughput and latency measurements in real-time (video http://galeracluster.com/videos/using-galera-replication-to-create-geo-distributed-clusters-on-the-wan-webinar-video-3/)
This tutorial covers all parallel replication implementation in MariaDB 10.0 and 10.1 and MySQL 5.6, 5.7 and 8.0 (including how it works in Group Replication).
MySQL and MariaDB have different types of parallel replication. In this tutorial, we present the different implementations that allow us to understand their limitations and tuning parameters. We cover how to make parallel replication faster and what to avoid for maximizing its benefits. We also present tests from Booking.com workloads.
Some of the subjects that are covered are group commit and optimistic parallel replication in MariaDB, the parallelism interval of MySQL and its Write Set optimization, and the ?slowing down the master to speed up the slave? optimization.
After this tutorial, you will know everything you need to implement and tune parallel replication in your environment. But more importantly, we will show how you can test parallel replication benefit in a non-disruptive way before deployment.
24시간 365일 서비스를 위한 MySQL DB 이중화.
MySQL 이중화 방안들에 대해 알아보고 운영하면서 겪은 고민들을 이야기해 봅니다.
목차
1. DB 이중화 필요성
2. 이중화 방안
- HW 이중화
- MySQL Replication 이중화
3. 이중화 운영 장애
4. DNS와 VIP
5. MySQL 이중화 솔루션 비교
대상
- MySQL을 서비스하고 있는 인프라 담당자
- MySQL 이중화에 관심 있는 개발자
*If you see the screen is not good condition, downloading please.*
MariaDB Optimization
- 풀 테이블 스캔
- ORDER BY 처리(Using filesort)
- GROUP BY 처리
- DISTINCT 처리
- 임시 테이블(Using Tempoary)
- 인덱스 컨디션 푸시다운(Index Condition Pushdown, ICP)
- 멀티 레인지 리드(Multi Range Read)
- 인덱스 머지(Index merge)
- 테이블 조인
- 서브 쿼리
MySQL InnoDB Cluster - Advanced Configuration & OperationsFrederic Descamps
MySQL InnoDB Cluster is a very easy HA solution to deploy. However it's also a very customizable solution able to respond to most needs. During this session I will give an overview of settings that you may tune like those related to quorum lost, level of consistency, but also some you may not know like how to change recovery system, effect of increasing the event horizon. We will also discus about maintenance operations like how to stream large transactions, how to deal with DDL in multi-primary environments...
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group ReplicationKenny Gryp
What are the implementation differences between Percona XtraDB Cluster 5.7, Galera Cluster 5.7 and MySQL Group Replication?
- How do each of these work?
- How do they behave differently?
- Are there any major issues with any of these?
This talk will describe these differences and also shed some light on how QA is done for each of these different technologies.
The Cassandra architecture shines at ensuring a very high availability of data even while nodes are failing or are overloaded. On the other hand, query latency will often rise during these events, especially on the higher percentiles. Many improvements have been made to reduce this effect over the past years. This talk will focus on one in particular: Speculative Retries. Introduced in Cassandra 2.0 on the server side and in the Java Driver 3.0 on the client side, this strategy remains complex to fully understand and to finely tune. This talk will deep dive into theoretical and practical aspects of Speculative Retries, showing the effect of tuning strategies with ad-hoc benchmarks.
About the Speakers
Michael Figuiere Cloud Platform Engineer, Netflix
Michael is a senior software engineer at Netflix where he works on improving the cloud storage infrastructure. He previously worked at Apple and DataStax where he worked for several years on creating Drivers and Developer Tools for Cassandra. At ease with both enterprise applications and lower level technologies, he specializes in distributed architectures and topics such as databases, search engines, and cloud.
Minh Do Senior Distributed Engineer, Netflix
Minh Do has been working at Netflix for the last several years to run, patch, and troubleshoot Cassandra on both server and client sides, and is also a co-creator of Dynomite project. Prior to Netflix, at Tango, he spearheaded its Big Data pipeline system from the ground using Spark/Hadoop. Before that, at Qualys, he built a distributed queue system that bridges traffics between all major components. He has passion in distributed system, machine learning/deep learning, and data storages.
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)Jean-François Gagné
To get better replication speed and less lag, MySQL implements parallel replication in the same schema, also known as LOGICAL_CLOCK. But fully benefiting from this feature is not as simple as just enabling it.
In this talk, I explain in detail how this feature works. I also cover how to optimize parallel replication and the improvements made in MySQL 8.0 and back-ported in 5.7 (Write Sets), greatly improving the potential for parallel execution on replicas (but needing RBR).
Come to this talk to get all the details about MySQL 5.7 and 8.0 Parallel Replication.
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScaleColin Charles
As proxies (and database routers) go, the first one I ever used was the now deprecated MySQL Proxy. Since then, I've managed to use MariaDB MaxScale quite a bit (including its fork AirBnB MaxScale), played around with ProxySQL in recent time, and also started taking a look at MySQL Router. In this quick 20-minute overview, we'll discuss why these three exist, a feature comparison, and reasons when to use the right tool for the job.
Evening out the uneven: dealing with skew in FlinkFlink Forward
Flink Forward San Francisco 2022.
When running Flink jobs, skew is a common problem that results in wasted resources and limited scalability. In the past years, we have helped our customers and users solve various skew-related issues in their Flink jobs or clusters. In this talk, we will present the different types of skew that users often run into: data skew, key skew, event time skew, state skew, and scheduling skew, and discuss solutions for each of them. We hope this will serve as a guideline to help you reduce skew in your Flink environment.
by
Jun Qin & Karl Friedrich
Developer’s guide to contributing code to Kafka with Mickael Maison and Tom B...HostedbyConfluent
Contributing code to an open source project can sometimes feel really difficult. The process is often different for each project and requires you to develop, build and test your change and then it needs to be accepted by the project. For Kafka, certain types of changes also require you to go through the Kafka Improvement Proposal (KIP) process.
In this talk, we will cover in detail the process to contribute code to Apache Kafka, from setting up a development environment, to building the code, running tests and opening a PR. We will also look at the KIP process, describe what each section of the document is for, the importance of finding consensus, and what happens when it gets voted. We will share, from a committers point of view, what we look for when reviewing a KIP and give some tips to help you get through the process successfully.
At the end of this talk, you will be able to get started contributing code to Kafka and understand how to get from idea, to KIP, to released feature.
This talk will tell the story of an analytics use case database from a non-OLAP and ACID-compliant RDBMS (MySQL) perspective.
I will cover the basics of the Clickhouse database Sample Clickhouse installation in a lab environment.
We are configuring Clickhouse for essential operations.
We will load the sample data set and monitor it.
We will query and visualize the results.
This talk will also base on how Kubernetes can help Clickhouse implementation via an operator.
Conclusions will include Do's and Don't of this emerging technology. Best practices and some advice around ingesting and analyzing terabytes of data efficiently.
MySQL and MariaDB though they share the same roots for replication .They support parallel replication , but they diverge the way the parallel replication is implemented.
- MariaDB 소개
- MariaDB 서버 구성 및 아키텍처 이해
- MariaDB 스토리지 엔진
- MariaDB 데이터베이스 관리
- 트랜잭션 / Locking 의 이해
- MariaDB 보안
- 백업과 복구를 통한 데이터베이스 관리
- MariaDB upgrade
- MariaDB 모니터링
- MySQL 에서 MariaDB 로의 전환
This tutorial covers all parallel replication implementation in MariaDB 10.0 and 10.1 and MySQL 5.6, 5.7 and 8.0 (including how it works in Group Replication).
MySQL and MariaDB have different types of parallel replication. In this tutorial, we present the different implementations that allow us to understand their limitations and tuning parameters. We cover how to make parallel replication faster and what to avoid for maximizing its benefits. We also present tests from Booking.com workloads.
Some of the subjects that are covered are group commit and optimistic parallel replication in MariaDB, the parallelism interval of MySQL and its Write Set optimization, and the ?slowing down the master to speed up the slave? optimization.
After this tutorial, you will know everything you need to implement and tune parallel replication in your environment. But more importantly, we will show how you can test parallel replication benefit in a non-disruptive way before deployment.
24시간 365일 서비스를 위한 MySQL DB 이중화.
MySQL 이중화 방안들에 대해 알아보고 운영하면서 겪은 고민들을 이야기해 봅니다.
목차
1. DB 이중화 필요성
2. 이중화 방안
- HW 이중화
- MySQL Replication 이중화
3. 이중화 운영 장애
4. DNS와 VIP
5. MySQL 이중화 솔루션 비교
대상
- MySQL을 서비스하고 있는 인프라 담당자
- MySQL 이중화에 관심 있는 개발자
*If you see the screen is not good condition, downloading please.*
MariaDB Optimization
- 풀 테이블 스캔
- ORDER BY 처리(Using filesort)
- GROUP BY 처리
- DISTINCT 처리
- 임시 테이블(Using Tempoary)
- 인덱스 컨디션 푸시다운(Index Condition Pushdown, ICP)
- 멀티 레인지 리드(Multi Range Read)
- 인덱스 머지(Index merge)
- 테이블 조인
- 서브 쿼리
MySQL InnoDB Cluster - Advanced Configuration & OperationsFrederic Descamps
MySQL InnoDB Cluster is a very easy HA solution to deploy. However it's also a very customizable solution able to respond to most needs. During this session I will give an overview of settings that you may tune like those related to quorum lost, level of consistency, but also some you may not know like how to change recovery system, effect of increasing the event horizon. We will also discus about maintenance operations like how to stream large transactions, how to deal with DDL in multi-primary environments...
Percona XtraDB Cluster vs Galera Cluster vs MySQL Group ReplicationKenny Gryp
What are the implementation differences between Percona XtraDB Cluster 5.7, Galera Cluster 5.7 and MySQL Group Replication?
- How do each of these work?
- How do they behave differently?
- Are there any major issues with any of these?
This talk will describe these differences and also shed some light on how QA is done for each of these different technologies.
The Cassandra architecture shines at ensuring a very high availability of data even while nodes are failing or are overloaded. On the other hand, query latency will often rise during these events, especially on the higher percentiles. Many improvements have been made to reduce this effect over the past years. This talk will focus on one in particular: Speculative Retries. Introduced in Cassandra 2.0 on the server side and in the Java Driver 3.0 on the client side, this strategy remains complex to fully understand and to finely tune. This talk will deep dive into theoretical and practical aspects of Speculative Retries, showing the effect of tuning strategies with ad-hoc benchmarks.
About the Speakers
Michael Figuiere Cloud Platform Engineer, Netflix
Michael is a senior software engineer at Netflix where he works on improving the cloud storage infrastructure. He previously worked at Apple and DataStax where he worked for several years on creating Drivers and Developer Tools for Cassandra. At ease with both enterprise applications and lower level technologies, he specializes in distributed architectures and topics such as databases, search engines, and cloud.
Minh Do Senior Distributed Engineer, Netflix
Minh Do has been working at Netflix for the last several years to run, patch, and troubleshoot Cassandra on both server and client sides, and is also a co-creator of Dynomite project. Prior to Netflix, at Tango, he spearheaded its Big Data pipeline system from the ground using Spark/Hadoop. Before that, at Qualys, he built a distributed queue system that bridges traffics between all major components. He has passion in distributed system, machine learning/deep learning, and data storages.
MySQL Parallel Replication: All the 5.7 and 8.0 Details (LOGICAL_CLOCK)Jean-François Gagné
To get better replication speed and less lag, MySQL implements parallel replication in the same schema, also known as LOGICAL_CLOCK. But fully benefiting from this feature is not as simple as just enabling it.
In this talk, I explain in detail how this feature works. I also cover how to optimize parallel replication and the improvements made in MySQL 8.0 and back-ported in 5.7 (Write Sets), greatly improving the potential for parallel execution on replicas (but needing RBR).
Come to this talk to get all the details about MySQL 5.7 and 8.0 Parallel Replication.
The Proxy Wars - MySQL Router, ProxySQL, MariaDB MaxScaleColin Charles
As proxies (and database routers) go, the first one I ever used was the now deprecated MySQL Proxy. Since then, I've managed to use MariaDB MaxScale quite a bit (including its fork AirBnB MaxScale), played around with ProxySQL in recent time, and also started taking a look at MySQL Router. In this quick 20-minute overview, we'll discuss why these three exist, a feature comparison, and reasons when to use the right tool for the job.
Evening out the uneven: dealing with skew in FlinkFlink Forward
Flink Forward San Francisco 2022.
When running Flink jobs, skew is a common problem that results in wasted resources and limited scalability. In the past years, we have helped our customers and users solve various skew-related issues in their Flink jobs or clusters. In this talk, we will present the different types of skew that users often run into: data skew, key skew, event time skew, state skew, and scheduling skew, and discuss solutions for each of them. We hope this will serve as a guideline to help you reduce skew in your Flink environment.
by
Jun Qin & Karl Friedrich
Developer’s guide to contributing code to Kafka with Mickael Maison and Tom B...HostedbyConfluent
Contributing code to an open source project can sometimes feel really difficult. The process is often different for each project and requires you to develop, build and test your change and then it needs to be accepted by the project. For Kafka, certain types of changes also require you to go through the Kafka Improvement Proposal (KIP) process.
In this talk, we will cover in detail the process to contribute code to Apache Kafka, from setting up a development environment, to building the code, running tests and opening a PR. We will also look at the KIP process, describe what each section of the document is for, the importance of finding consensus, and what happens when it gets voted. We will share, from a committers point of view, what we look for when reviewing a KIP and give some tips to help you get through the process successfully.
At the end of this talk, you will be able to get started contributing code to Kafka and understand how to get from idea, to KIP, to released feature.
This talk will tell the story of an analytics use case database from a non-OLAP and ACID-compliant RDBMS (MySQL) perspective.
I will cover the basics of the Clickhouse database Sample Clickhouse installation in a lab environment.
We are configuring Clickhouse for essential operations.
We will load the sample data set and monitor it.
We will query and visualize the results.
This talk will also base on how Kubernetes can help Clickhouse implementation via an operator.
Conclusions will include Do's and Don't of this emerging technology. Best practices and some advice around ingesting and analyzing terabytes of data efficiently.
MySQL and MariaDB though they share the same roots for replication .They support parallel replication , but they diverge the way the parallel replication is implemented.
- MariaDB 소개
- MariaDB 서버 구성 및 아키텍처 이해
- MariaDB 스토리지 엔진
- MariaDB 데이터베이스 관리
- 트랜잭션 / Locking 의 이해
- MariaDB 보안
- 백업과 복구를 통한 데이터베이스 관리
- MariaDB upgrade
- MariaDB 모니터링
- MySQL 에서 MariaDB 로의 전환
Detailed presentation on how queries and updates behave on updateable secondary. A few nuggets of best practices to make sure your HDR configuration works well.
Cassandra Tools and Distributed Administration (Jeffrey Berger, Knewton) | C*...DataStax
At Knewton we operate across five different VPCs a total of 29 clusters, each ranging from 3 nodes to 24 nodes. For a team of three to maintain this is not herculean, however good tools to diagnose issues and gather information in a distributed manner are vital to moving quickly and minimizing engineering time spent.
The database team at Knewton has been successfully using a combination of Ansible and custom open sourced tools to maintain and improve the Cassandra deployment at Knewton. I will be talking about several of these tools and giving examples of how we are using them. Specifically I will discuss the cassandra-tracing tool, which analyzes the contents of the system_traces keyspace, and the cassandra-stat tool, which gives real-time output of the operations of a cassandra cluster. Distributed administration with ad-hoc Ansible will also be covered and I will walk through examples of using these commands to identify and remediate clusterwide issues.
About the Speaker
Jeffrey Berger Lead Database Engineer, Knewton
Dr. Jeffrey Berger is currently the lead database engineer at Knewton, an education tech startup in NYC. He joined the tech scene in NYC in 2013 and spent two years working with MongoDB, becoming a certified MongoDB administrator and a MongoDB Master. He received his Cassandra Administrator certification at Cassandra Summit 2015. He holds a Ph.D. in Theoretical Physics from Penn State and spent several years working on high energy nuclear interactions.
Cocktail of Environments. How to Mix Test and Development Environments and St...Aleksandr Tarasov
Usually, companies have a clear separation between testing environments and development environments. But what if we take a different approach and combine everything into one environment and still survive? The speaker will discuss ways to organize cloud environments for testing and development, compare them, and discuss the pros and cons of the combined approach.
Geographically dispersed perconaxtra db cluster deploymentMarco Tusa
Geographically Dispersed Percona XtraDB Cluster Deployment
Percona XtraDB Cluster is a very robust, high performing and widly used solution to answer to High Availability needs. But it can be very challinging when we are in the need to deploy the cluster over a geographically disperse area.
This presentation will briefely discuss what is the right approach to sucessfully deploy PXC when in the need to cover multiple geographical sites, close and far.
- What is PXC and what happens in a set of node when commit
- Let us clarify, geo dispersed
- What to keep in mind then
- how to measure it correctly
- Use the right way (sync/async)
- Use help like replication_manager
Our Multi-Year Journey to a 10x Faster Confluent CloudHostedbyConfluent
"Confluent Cloud is a cloud-native service based on Apache Kafka. We run tens of thousands of clusters across all major cloud service providers (AWS, GCP and Azure). In this talk, we will go over our journey to make Confluent Cloud 10x faster than Apache Kafka.
We will talk about how we designed our various workloads, the complexities involved in our cloud-native service, the challenges we faced, and the various pitfalls we ran into. We will also cover the interesting learnings, which in hindsight, are first principles from this multi-year journey.
By attending this talk, attendees will be able to take our learnings from making Confluent Cloud latencies 10x better and possibly apply similar principles to their cloud native data streaming systems."
Latency is one of the most common Service Level Indicators (SLI), but where should it be measured from?
There are three main ways to measure latency:
•Server-side latency: Precise and high cardinality but missing the big picture
•Client-side latency: Big picture but noisy
•Blackbox monitoring latency: Good trade-off between the other two
In this talk, we will dive deeper into each perspective and how all of them can be leveraged. We will use Criteo’s large-scale key/value infrastructure as a case study
Join this workshop and accelerate your journey to production-ready Kubernetes by learning the practical techniques for reliably operating your software lifecycle using the GitOps pattern. The Weaveworks team will be running a full-day workshop, sharing their expertise as users and contributors of Kubernetes and Prometheus, as well as followers of GitOps (operations by pull request) practices.
Using a combination of instructor led demonstrations and hands-on exercises, the workshop will enable the attendee to go into detail on the following topics:
• Developing and operating your Kubernetes microservices at scale
• DevOps best practices and the movement towards a “GitOps” approach
• Building with Kubernetes in production: caring for your apps, implementing CI/CD best practices, and utilizing the right metrics, monitoring tools, and automated alerts
• Operating Kubernetes in production: Upgrading and managing Kubernetes, managing incident response, and adhering to security best practices for Kubernetes
20240515 - Chicago PUG - Clustering in PostgreSQL: Because one database serve...Umair Shahid
In the world of database management, high availability and disaster recovery are key considerations for any organization that wants to ensure reliable access to its critical data. Clustering in PostgreSQL is one of the most effective ways to achieve both. In this talk, we will explore the ins and outs of PostgreSQL clustering, including the benefits and challenges of different clustering approaches, and how to set up a highly available and disaster-resilient PostgreSQL cluster.
We will dive into topics such as synchronous vs. asynchronous replication, load balancing, failover, and disaster recovery. We will also touch on some open source tools that are readily available to aid in PostgreSQL cluster management.
High Speed Design Closure Techniques-Balachander KrishnamurthyMassimo Talia
Digital electronics and electronics are not only theory as many Italians are thinking. The investments in electronic design in Italy are very low, since there's the Asian market which specialized their people to the Electronics culture. So The italian electronic engineers are compared to Sciencists, but they're designers of Manifacturing. This webinar describes the main steps and techniques, in order to design a Digital Circuits, to evaluate the timing constraints and the hardware requirements. The webinar is promoted by Xilinx.
Percona xtra db cluster(pxc) non blocking operations, what you need to know t...Marco Tusa
Performing simple DDL operations as ADD/DROP INDEX in a tightly connected cluster as PXC, can become a nightmare. Metalock will prevent Data modifications for long period of time and to bypass this, we need to become creative, like using Rolling schema upgrade or Percona online-schema-change. With NBO, we will be able to avoid such craziness at least for a simple operation like adding an index. In this brief talk I will illustrate what you should do to see the negative effect of NON using NBO, as well what you should do to use it correctly and what to expect out of it.
The constant pressure to move DATA in containers and Kubernetes is creating a lot of confusion and misunderstanding.
This is particularly dangerous when talking about Relational Database Management System.
MySQL, as well as Oracle, Postgres or SQL Server, is a RDBM, as such subject to the erroneous interpretation caused by this new crazy shining things that will solve all. In this short talk we will clarify, that first of all, we are not looking to something new and second why we need to be very careful when talking about using Kubernetes and containers for RDBMS.
Accessing data through hibernate: what DBAs should tell to developers and vic...Marco Tusa
Accessing data through Hibernate, what DBA should tell to developers by Marco Tusa & Francisco Bordenave
This presentation will go through the simple process of accessing data from a Java application. What actually happens when we use a simple direct connection, and what instead happen using an ORM/Persistent layer like hibernate. How this apparently makes programmers life easier and DBAs days more difficult.
Best practice-high availability-solution-geo-distributed-finalMarco Tusa
Nowadays implementing different grades of business continuity for the data layer storage is a common requirement. When designing architectures that include MySQL as a data layer, we have different options to cover the required target. Nevertheless we still see a lot of confusion when in the need to properly cover concepts such as High Availability and Disaster Recovery. Confusion that often leads to improper architecture design and wrong solution implementation. This presentation aims to remove that confusion and provide clear guidelines when in the need to design a robust, flexible resilient architecture for your data layer.
In this presentation I am illustrating how and why InnodDB perform Merge and Split pages. I will also show what are the possible things to do to reduce the impact.
Robust HA Solutions - Native Support for PXC and InnoDB cluster in ProxySQL
This talk will illustrate and discuss several MySQL reference architectures that implement a different grade of tightly coupled database cluster.
We will show how ProxySQL implementation is a natural fit in all of them, and how easily it will provide additional stability and functionalities improvement.
Secure our data is a complex topic. We can build a very strong protection around our data, but nothing will prevent the one WHO could potentially access it to compromise the data integrity or to expose it.
This because we either under estimate the control we can or should impose, or because we think to do not have the tools to perform such control.
Nowadays to be able to control and manage what can access our data is a must, while how to do with standard tools it is a nightmare.
The presentation will guide you in a journey, there you will discover how implementing a quite robust protection, more than what you thought was possible.
Even more, it is possible and your performances will even improve. Cool right?
We will discuss:
- Access using not standard port
- Implement selective query access
- Define accessibility by location/ip/id
- Reduce to minimum cost of filtering
- Automate the query discovery
Are we there Yet?? (The long journey of Migrating from close source to opens...Marco Tusa
Migrating from Oracle to MySQL or another Open source RDBMS like Postgres is not as straightforward as many think if not well guided. Check what it means doing with someone that has done it already.
Mysql8 advance tuning with resource groupMarco Tusa
I have a very noisy secondary application written by a very, very bad developer that accesses my servers, mostly with read queries, and occasionally with write updates. Reads and writes are obsessive and create an impact on the MAIN application. My task is to limit the impact of this secondary application without having the main one affected. To do that I will create two resource groups, one for WRITE and another for READ. The first group, Write_app2, will have no cpu affiliation, but will have lowest priority.
Advance Sharding Solution with ProxySQL
ProxySQL is a very powerful platform that allows us to manipulate and manage our connections and queries in a simple but effective way.
Historically MySQL lacks in sharding capability. This significant missing part had often cause developer do implement sharding at application level, or DBA/SA to move on to another solution.
ProxySQL comes with an elegant and simple solution that allow us to implement sharding capability with MySQL without the need to perform significant, or at all, changes in the code.
This brief presentation will illustrate how to successfully configure and use ProxySQL to perform sharding, from very simple approach based on connection user/ip/port, to complicate ones that see the need to read values inside queries.
After some years, MySQL with Galera became the most common solution for synchronous replication. The cloud (and EC2 in particular) was one of the platforms that most successfully employed MySQL/Galera installations.
This year with Aurora, Amazon introduced an alternative solution that use all the flexibility of AWS and simplicity of RDS.
This presentation describes the behavior of both MySQL/Galera and Aurora, showing the details of how the two different solutions behave when dealing with same load. We will highlight the strong point of each, and which represents the best tool - depending on the needs of the situation.
Attendees will be able to make an informed decision on what kind of solutions will be the most efficient, in respect to their actual requirements.
Presentation shows how ProxySQL can improve the HA in solution like MySQL async and sync replication without the need to increase the platform complexity.
Scaling with sync_replication using Galera and EC2Marco Tusa
Challenging architecture design, and proof of concept on a real case of study using Syncrhomous solution.
Customer asks me to investigate and design MySQL architecture to support his application serving shops around the globe.
Scale out and scale in base to sales seasons.
Delightful Finds: Unveiling the Power of Gifts Under 100JoyTree Global
Stretch your budget and spread joy! This guide explores the world of gifts under 100, proving thoughtful gestures don't require a hefty price tag. Discover unique and practical options for birthdays, holidays, or simply showing someone you care. Find inspiration for every occasion within your budget!
What Are the Latest Trends in Endpoint Security for 2024?VRS Technologies
In this PDF, Discover the top 2024 endpoint security trends, including zero trust, AI integration, XDR, cloud security, and enhanced mobile protection. VRS Technologies LLC supplies the top level Endpoint Security Service Dubai. For More Info Contact us: +971 56 7029840 Visit us: https://www.vrstech.com/endpoint-security-solutions.html
SMS2ORBIT | launched in 2022 in Mumbai's Andheri area, aims to be the most reliable Bulk SMS Service Provider in Mumbai.
If More Information About The SMS Service Provided By SMS2ORBIT Is Desired, Please Don’t Hesitate To Contact The Business Team. They Can Be Reached At
business@sms2orbit.com Or By Calling 97248 55877.
BesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand...gitapress3
love problem solution astrologer
best love problem solution astrologer
online love problem solution astrologer
love problem solution astrologer in india
love problem solution astrologer in kolkata
love problem solution astrologer near me
love problem solution astrologer in ludhiana
love problem solution astrologer acharya ji
love problem solution astrologer in delhi
love problem solution astrologer amritsar
astrologer love problem solution
astrologer for love problem
astrology love problem solution
love solution astrologer
love problem solution specialist astrologer
love problem solution by astrologer
astrology love problem solution baba ji
love problem solve astrologer
love problem solution usa
love problem solution expert astrologer
astrologer for love marriage problem solution
love problem solution astrologer in mumbai
love problem solution muslim astrologer
love marriage specialist astrologer problem solution
famous love astrologer
love problem solution astrologer specialist
love problem solution astrologer tantrikBesT panDit Ji LoVe problem solution 9463629203 UK uSA California New Zealand baba ji LoVe marriage specialist Uk USA LonDOn panDit ji
Are Gutters Necessary? Explore the details now!AmeliaLauren3
Gutters are typically installed at a slight downward slope to allow water to flow freely towards downspouts or drains – the downspout being the vertical pipe attached to the gutters. The water is subsequently transported by the downspout to either the ground or an underground drainage system. Maintaining a gutter system that is free of blockages and functional requires regular maintenance.
But, many wonder in what situations gutters are required and not required. In this ppt we will discuss in detail the matter, ‘Are Gutters Necessary?’
SECUREX UK FOR SECURITY SERVICES AND MOBILE PATROLsecurexukweb
At Securex UK Ltd we are dedicated to providing top-rated security solutions tailored to your specific needs. With a team of highly trained professionals and cutting-edge technology, we prioritize your safety and peace of mind.
Our commitment to excellence extends beyond traditional security measures. We understand the dynamic nature of security challenges, and our personalized approach ensures that every client receives a bespoke protection plan.
BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem sol...gitapress3
TOP No AsTro 1 black magic SpecialiSt UK baba ji +91-9463629203 VashIkaRan blaCk maGiC specialist in uSA Uk England Luxembourg CanAdA America BEst VASHIKARAN SPECIALIST 9463629203 in UK Baba ji Love Marriage problem solution Uk USA america england LonDon Divorce problem solution astroloGer
The Jamstack Revolution: Building Dynamic Websites with Static Site Generator...Softradix Technologies
In this infographic, the Jamstack architecture emphasizes pre-rendered content and decoupling the frontend from the backend. It leverages static site generators (SSGs) to create fast-loading HTML files and APIs for dynamic functionality. Benefits include improved performance, enhanced security, scalability, and ease of deployment. Real-world examples include Netlify, Gatsby, and Contentful. https://softradix.com/web-development/
Solar power panels, also known as photovoltaic (PV) panels, convert sunlight into electricity, offering a renewable and sustainable energy solution. Composed of semiconductor materials, typically silicon, these panels absorb photons from sunlight, generating an electric current through the photovoltaic effect. This clean energy source reduces dependence on fossil fuels, mitigates greenhouse gas emissions, and contributes to environmental sustainability.
Experience the breathtaking beauty of a Waikiki sunset aboard the MAITAI Catamaran. Sail along the stunning coastline as the sun dips below the horizon, casting vibrant hues across the sky. Enjoy the gentle ocean breeze, refreshing drinks, and a relaxed atmosphere. This unforgettable voyage offers panoramic views of Diamond Head and the Waikiki skyline, making it the perfect way to end your day in paradise. Join us for a memorable sunset cruise you won't forget. Please visit our website: https://www.maitaicatamaran.net/ and call us at 808-922-5665 for additional information.
All Trophies at Trophy-World Malaysia | Custom Trophies & Plaques Supplier. Come to our Trophy Shop today and check out all our variety of Trophies available. We have the widest range of Trophies in Malaysia. Our team is always ready to greet your needs and discuss with you on your custom Trophy for your event. Rest assured, you will be with the best Trophy Supplier in Malaysia. The official Trophy Malaysia. Thank you for your support.
Looking for the Reliable Logistics Solutions in India? Discover unparalleled efficiency and reliability with our top-rated logistics services. We specialize in streamlining supply chains, ensuring timely deliveries, and providing cutting-edge tracking solutions. Our platform caters to businesses of all sizes, offering customizable logistics solutions to meet your unique needs. With a focus on innovation and customer satisfaction, we are your trusted partner in navigating the complexities of logistics in India. Choose us for seamless, cost-effective, and scalable logistics solutions. Experience the best in Indian logistics with our expert team by your side.
Blessed Marine Automation offers cutting-edge marine automation solutions tailored to enhance vessel efficiency and safety. From advanced control systems to remote monitoring, our services empower maritime operations worldwide. Explore our comprehensive range of products and services to optimize your vessel's performance. https://www.blessedmarineautomation.com/
Get your dream bridal look with top North Indian makeup artist - Pallavi KadalePallavi Makeup Artist
Achieve your dream wedding day look with renowned North Indian bridal makeup artist, Pallavi Kadale. With years of experience, her expert techniques and skills will leave you looking flawless and radiant. Book today for your perfect bridal makeover.
DOJO Training Center - Empowering Workforce ExcellenceHimanshu
The document delves into DOJO training, an immersive offline training concept designed to educate both new hires and existing staff. This method follows an organized eight-step process within a simulated work setting. The steps encompass safety protocols, behavioral coaching, product familiarity, production guidelines, and procedural understanding. Trainees acquire skills through hands-on simulations and rehearsal prior to transitioning to actual shop floor duties under supervision. The primary aim is to minimize accidents and defects by ensuring employees undergo comprehensive training, preparing them effectively for their job roles.
Learn about Inspect Edge, the leading platform for efficient inspections, featuring the advanced NSPIRE Inspection Application for seamless property assessments. Discover how the NSPIRE Inspection Application by Inspect Edge revolutionizes property inspections with advanced features and seamless integration.
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxamilabibi1
Islamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docxIslamabad No 1 Amil Baba In Pakistan amil baba kala ilm.docx
Nature’s Paradise Glamorous And Sustainable Designs For Your Outdoor Living S...Landscape Express
Create a harmonious blend of luxury and sustainability in your outdoor living space with eco-friendly kitchens, enchanting water features, and lush plant landscaping. Embrace energy-efficient appliances, solar lighting, rainwater harvesting, and native plants to enhance beauty while reducing environmental impact. Transform your space into a glamorous, eco-conscious retreat for relaxation and social gatherings.
How Does Littering Affect the Environment.ClenliDirect
Read this PPT now to gain in-depth insights into how to fight litter and safeguard our landscapes from its negative impacts.
Visit-https://clenlidirect.com/cleaning-equipment/litter-picker-grabber-equipment.html
Comparing high availability solutions with percona xtradb cluster and percona server
1.
2. Comparing Highly Available Solutions With Percona
XtraDB Cluster and Percona Server with Group
Replication
Marco Tusa, Percona
3. 3
• Open-source enthusiast
• MySQL tech lead
• Principal architect
• Working in the DB/development
world over 34 years (yes, I am that old)
• Open-source developer and community
contributor
About Me
4. 4
What This Presentation Covers
… What is it about?
● An overview of what HA and DR mean
● The most common issues
● How PXC and PS-GR cover the above needs
● Illustrate some differences
… What isn’t it about?
● We are not comparing performance
● We are not going into the deep tech mumbo jumbo (which is unusual for me!)
5. 5
OVH Case
I think this case/picture will be in MANY slides for a long time!
6. 6
● Unplanned downtime can be classified into downtime
caused by system faults, data and media errors, and site
outages.
● System faults can occur in the system itself (CPU, memory,
or power supply), the software (operating system,
database, middleware, or application), peripherals, power,
or the network.
● Data errors include human error by DBAs, system
administrators, users, and operators, as well as sabotage.
● Media errors include disk failure and data corruption.
● Site outages include natural disasters, power failure, and
sabotage.
The more you add to the stack, the more you increase the
chance of failures.
Unplanned Downtime
https://docs.oracle.com/cd/A91202_01/901_doc/rac.901/a89867/pshavdtl.htm#6062
7. 7
What is HA?
Availability % Downtime per year Downtime per month Downtime per week Downtime per day
99% ("two nines") 3.65 days 7.31 hours 1.68 hours 14.40 minutes
99.5% ("two nines five") 1.83 days 3.65 hours 50.40 minutes 7.20 minutes
99.9% ("three nines") 8.77 hours 43.83 minutes 10.08 minutes 1.44 minutes
99.95% ("three nines five") 4.38 hours 21.92 minutes 5.04 minutes 43.20 seconds
99.99% ("four nines") 52.60 minutes 4.38 minutes 1.01 minutes 8.64 seconds
99.995% ("four nines five") 26.30 minutes 2.19 minutes 30.24 seconds 4.32 seconds
99.999% ("five nines") 5.26 minutes 26.30 seconds 6.05 seconds 864.00 milliseconds
High Availability (HA) is a characteristic of a system, which aims to ensure an agreed level of
operational performance, usually uptime, for a higher than normal period.
8. • Geographic distribution in High
Availability is to cover service
availability in a location
o 10 Gb Ethernet best case scenario
400 metre distance max
What is HA?
9. • Geographic distribution in
Disaster Recovery is to ensure
you can restore service, in a
geographically distributed location
o Real speed may vary
o Linear distance ~1000Km
What is DR?
10. 10
The Datacentric Approach
Tightly coupled cluster
● Percona PXC
○ MySQL-based with custom Galera (Codership)
implementation
● Percona Server
○ Uses Group Replication
Both solutions use additional elements presented
in the distribution as:
○ HAProxy
○ MySQL Router
○ ProxySQL
1 Data State
11. 11
The distribute approach
Loosely coupled cluster
● In MySQL world is based on
Asynchronous replication
● Supported by PXC and PS with GR
https://www.slideshare.net/marcotusa/best-practicehigh-
availabilitysolutiongeodistributedfinal
12. 12
What Percona Implements (For MySQL)
We use three different solutions, bundled into two different Distributions
13. 13
Single Primary vs Multi Primary
← Scaling reads
← Local conflict resolution
→ Complicate distributed conflict
resolution
→ No write scaling
→ No sharding
14. 14
Cluster setup
● All W/R by default
● Number must be odd for quorum calculation
● Scaling READ only
● More nodes more noise Linear increase
● Primary R/W Secondary R only
● Number cannot over 9 nodes
● Scaling READ only
● No need to be odd number, but I don’t buy it
GR
PXC
19. 16
Split-brain
● PXC
○ Odd number of nodes
○ Use of quorum and views
■ Use of weight
○ Node either in Primary Component or not
able to serve
Dangerous Options:
● pc.ignore_sb (ignore splt-brain)
● pc.ignore_quorum (ignore quorum
calculation)
● GR
○ Group base on number of nodes and views
○ Weight is for Primary election not for quorum
calculation
○ Group quorum is base on majority of nodes
○ In case of expulsion a node can be:
■ ABORT_SERVER
■ OFFLINE_MODE
■ READ_ONLY
(exit_state_action)
○ group_replication_force_members
For both the crucial component is the view and the existing members
Birds-Eye View: Failure Detection
22. 19
● Working against writeset pending in the receive queue
○ No flow control
○ Writeset caching (joiner – Donor)
■ gcs.recv_q_hard_limit Maximum write-set cache size (in bytes).
■ gcs.max_throttle Smallest fraction to the normal replication rate the node
can tolerate in the cluster.
■ gcs.recv_q_soft_limit Estimate of the average replication rate for the node.
○ Catching up (Joined) Rate limited to what the joiner can apply
○ Cluster sync
■ gcs.fc_limit Used to determine the point where Flow Control engages.
■ gcs.fc_factor Used to determine the point where Flow Control disengages.
Birds-Eye View: Flow Control
23. 20
Birds-Eye View: Flow Control in Group Replication
Definitely more complicated and
analytical, it analyzes things such as:
● The certifier queue size
● The replication applier queue size
● The total number of transactions certified
● The total number of remote transactions
applied in the member
● The total number of local transactions
Variables
group_replication_flow_control_applier_threshold
group_replication_flow_control_certifier_threshold
group_replication_flow_control_member_quota_percent
group_replication_flow_control_hold_percent
group_replication_flow_control_release_percent
group_replication_flow_control_max_commit_quota
group_replication_flow_control_min_quota
group_replication_flow_control_min_recovery_quota
group_replication_flow_control_mode
group_replication_flow_control_period
24. 21
Bird-Eye View: Message Fragmentation
● PXC:
○ For Load data 10K limit (configurable)
○ Streaming replication (by Session)
■ wsrep_trx_fragment_unit
■ wsrep_trx_fragment_size
● GR:
○ Supported from 8.0.16
○ All nodes must be able to support it
○ Managed at global level
■ group_replication_communication_max_messag
e_size
○ Message delivery is complete when all nodes have
the whole message
○ Node joining can recover message fragments from
before it joins. Or it will be expelled
25. 22
Data Consistency
What am I looking for?
The platform validate the consistency of each tuple that is replicated on each node, preventing any possible local
deviation.
By inheritance data is the same on each node and cannot deviate.
● Two problems
1. None of them provide a 100% data consistency guarantee
2. PXC recently implement Inconsistent voting
3. Both come with Defaults that also allow stale read (inconsistent data in read operations)
PXC:
Set wsrep_on=0;
GR:
Set sql_bin_log=0;
26. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
27. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
28. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
29. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
30. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
31. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
32. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
33. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
34. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
35. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
36. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
37. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
38. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
39. 23
Data consistency: error during transactions
PXC use Cluster Error Voting GR is based on the local conflict error
40. 24
Data Consistency: Stale Reads
For full consistency change:
● PXC ! wsrep_sync_wait ≠ 0 (ie:3)
● GR ! group_replication_consistency ≠ EVENTUAL (ie: AFTER)
41. 25
DDL
● PXC
○ TOI
■ Cluster unavailable for writes
○ RSU
■ Node temporary unavailable
■ May end up in different data by node
○ No online DDL
○ Not possible to kill DDL running
○ Significant history of issues due to DDL/locking/rollback
○ Manual RSU (https://www.percona.com/blog/2019/03/25/how-to-perform-compatible-schema-changes-in-percona-
xtradb-cluster-advanced-alternative/)
○ Compatible VS incompatible changes
■ PT-OnlineSchemaChange
https://jira.percona.com/browse/PXC-3645
42. 26
DDL
● GR
○ Standard alter
○ Online DDL
○ Compatible vs incompatible
changes
■ PT-
OnlineSchemaChange
https://bugs.mysql.com/103421
44. 28
DR Claims
● Both claim they can work on WAN natively
● Both then remark you need a very good network.
○ A bit of contradiction here
● I add you need to have the DCs too close to be a real DR
○ Check out my previous presentation for Percona Live Europe about this
● Long story short: DR cannot use Synchronous replication
45. 29
DR Case
● The problem:
○ Given Sync replication is not recommended, how we can keep the DR site up to date safely with
Asynchronous replication?
46. 30
DR Solutions
● PXC
○ Basic Asynchronous replication
○ Async using Automatic failover is possible, but has few
problems
■ No primary identification
■ No automatic fancing (like Read Only)
○ Only decent manager is PXC Replication Manager from
Yves Trudeau
■ Deal with failover on Source and Replica
■ Allow to set order with weight
■ Allow multiple DCs
47. 30
DR Solutions
● PXC
○ Basic Asynchronous replication
○ Async using Automatic failover is possible, but has few
problems
■ No primary identification
■ No automatic fancing (like Read Only)
○ Only decent manager is PXC Replication Manager from
Yves Trudeau
■ Deal with failover on Source and Replica
■ Allow to set order with weight
■ Allow multiple DCs
48. 30
DR Solutions
● PXC
○ Basic Asynchronous replication
○ Async using Automatic failover is possible, but has few
problems
■ No primary identification
■ No automatic fancing (like Read Only)
○ Only decent manager is PXC Replication Manager from
Yves Trudeau
■ Deal with failover on Source and Replica
■ Allow to set order with weight
■ Allow multiple DCs
49. 30
DR Solutions
● PXC
○ Basic Asynchronous replication
○ Async using Automatic failover is possible, but has few
problems
■ No primary identification
■ No automatic fancing (like Read Only)
○ Only decent manager is PXC Replication Manager from
Yves Trudeau
■ Deal with failover on Source and Replica
■ Allow to set order with weight
■ Allow multiple DCs
50. 31
DR Solutions
● GR
○ Async using Automatic failover
■ Primary identification by GR
■ All replicas are fenced (Read
Only)
■ Add light weight tools as
grFailOver for full coverage
51. 31
DR Solutions
● GR
○ Async using Automatic failover
■ Primary identification by GR
■ All replicas are fenced (Read
Only)
■ Add light weight tools as
grFailOver for full coverage
52. 31
DR Solutions
● GR
○ Async using Automatic failover
■ Primary identification by GR
■ All replicas are fenced (Read
Only)
■ Add light weight tools as
grFailOver for full coverage
53. 31
DR Solutions
● GR
○ Async using Automatic failover
■ Primary identification by GR
■ All replicas are fenced (Read
Only)
■ Add light weight tools as
grFailOver for full coverage
54. 31
DR Solutions
● GR
○ Async using Automatic failover
■ Primary identification by GR
■ All replicas are fenced (Read
Only)
■ Add light weight tools as
grFailOver for full coverage
55. 32
Adoption
PXC
● is around ~13 years now
○ Pros
■ Widely used as HA solution
■ Significant history of debugging issues
■ Very strong and consolidated knowledge
○ Cons
■ Galera (Codership) development moving to be more bound to MariaDB
● IE: MariaDB GTID ; NBO/Black Box Enterprise only feature
■ Code is shared as tar
■ No visibility on the git repo
● More difficult for others to interact and optimize the code
56. 33
Adoption
GR
● Pros
○ Core function for MySQL/Oracle
○ Use well known elements like GTID and binlog
○ Knowledge is ramping up quickly (Percona training)
○ Code is available in github
● Cons
○ Relatively new
■ “Hello word” in 2014
■ First version really production ready was 8.0.20)
○ Limited adoption (well also PXC was not used until we start to…)
○ We all require more large scale deployments to be able to catch/fix deviations
57. 34
Monitoring - PMM
● PXC
○ Extensive dashboards covering many different aspects of the cluster
● GR
○ New dashboard with a lot of initial information
○ Working on extending it with more advanced insights
58. 35
Conclusions
● In Percona we support both PXC and PS with Group Replication
● As architecture components the two solutions are very similar
● GR is more articulated in DDL execution and Flow Control
● Consistency like avoid stale read has less impact in PXC
● The set of tooling that comes with MySQL Shell is not available with PXC
● In my opinion, in the future we will see the use of GR growing a lot, but we need to
work on packaging it better, especially on automating it and more in-depth monitoring
● The more adoption we will see for GR, the better the product will become due the
feedback
● PXC is still a strong HA solution, and it is still playing a key role in design strong High
Available architectures