“Here is Cloud Source IT, helping you learn IT easily” Hi~ How are you doing today? The process of getting better is not very comfortable. Try harder – 2023.11.03 – DDL (Data Definition Language) is a language used to describe real-world entities to be stored in a database. Previously, we introduced the related concepts and […]
Tag: master
“Understand in one article” Redis master-slave synchronization mechanism
Contents of this chapter Main functions The main functions of Redis master-slave synchronization are as follows: Data redundancy: Hot backup of data is achieved through master-slave synchronization, which is a data redundancy method in addition to persistence. Failure recovery: When a problem occurs on the master node, the slave node can continue to provide services […]
k8s builds MySQL master-slave synchronization
env k8s: v1.28.2 mysql: v8.0.34 Build nfs server 1. Execute the installation commands on 3 machines respectively yum install -y nfs-utils 2. Create 3 directories on the master node and write them to /etc/exports mkdir -p /data/nfs/{<!– –>mysql-master,mysql-slaver-01,mysql-slaver-01} cat >> /etc/exports << EOF /data/nfs/mysql-master *(rw,sync,no_root_squash) /data/nfs/mysql-slaver-01 *(rw,sync,no_root_squash) /data/nfs/mysql-slaver-02 *(rw,sync,no_root_squash) 3. Start the nfs server systemctl […]
Docker deploys mysql with one master and two slaves
Table of Contents 1. Configure docker accelerator 2. Modify the server’s dns 3. Pull docker’s official mysql image 4.MySQL master-slave configuration 4.1 Create mysql directory structure 4.2Writing configuration files 4.2.1 Main library configuration file 4.2.2 Slave library configuration file 4.2.2.1 Configuration file of MySQL3307 4.2.2.2 Configuration file of MySQL3308 4.3 MySQL initialization sql file 4.4 […]
Implementing mysql master and backup in k8s
Article directory 1. Implementation of mysql master and backup in k8s 1.1 Environmental information 1.2 Deploy nfs-provisioner 1.2.1 Install nfs 1.2.2 Deploy nfs-provisioner 1.3 Install mysql 1.4 Check whether synchronization occurs on the standby database 1. Implementation of mysql master and backup in k8s 1.1 Environmental information Machine Operating system ip mysql version k8s version […]
Quickly learn data structures | Are you stumped by using queues to implement stacks? That’s because you haven’t mastered the skills well
Ge Zhigu: Personal homepage Personal column: “Linux Advanced Learning Diary” “C++ Dry Information Base” The ideal of life is for an ideal life! Preface hello! Hello everyone, we have learned about stacks and queues, so do you know how to use queues to implement stacks? . This article will show you how to use queues […]
Mastering Python Unit Testing: The Ultimate Guide to Mastering the Unittest Module
Unit testing is an important part of software development and helps to verify the correctness, stability, and maintainability of the code. Python provides the built-in unittest module for writing and executing unit tests. This article will introduce in detail all aspects of the unittest module, including test cases, assertions, test suites, setUp and tearDown methods, […]
7 Ways to Master Array Traversal in JavaScript
As a JavaScript developer, it is very important to be familiar with array traversal and manipulation. Array traversal is one of the basic requirements for processing and manipulating array elements. This article will introduce 10 common array traversal methods in JavaScript to help you become an expert in array operations. Array traversal for loop forEach […]
Use Docker to build a “one master and two slaves” Redis cluster (super detailed steps)
Directory 1. Redis stand-alone version installation 1.1 Pull Redis 1.2 Create data volume directory 1.3 Modify redis.conf 1.4 Start the Redis container 1.5 Enter container connection Redis 2. Redis cluster construction with one master and two slaves 2.1 Copy three copies of redis.conf 2.2 Start master 2.3 Start two redis slaves 2.4 View the relationship […]
Java 8 Stream: Mastering the Essence of Streaming Programming Title
Foreword This article is from a blogger I like. Mainly used for learning and recording purposes. If you have any questions, please message me privately. Thanks! Master Stream flow Two weeks ago, a reader strongly requested me to write an article about Java Stream. I said that there are already many articles on the market. […]