Linux server redis 6 X cluster environment (master-slave replication)
1. Foreword
When setting up a cluster, you need to ensure that there is no problem in setting up a stand-alone version of redis. You can refer to Linux server Redis 6.x installation and configuration
2. Benefits of master-slave replication
Read write separation, performance expansion Disaster recovery and rapid recovery
The master libra ...
Posted by phpnewbieca on Sat, 08 Jan 2022 13:48:43 +0100
Linux thread synchronization
Linux thread synchronization
1. Mutual exclusion
Ensure that only one thread accesses data at a time.
pthread_mutex_t mut;
//Two initialization methods
mut = PTHREAD_MUTEX_INITIALIZER;
pthread_mutex_init(&mut, NULL);
1. Initialization
int pthread_mutex_init (pthread_mutex_t *__mutex,
const pthread_mutexat ...
Posted by br on Sat, 08 Jan 2022 12:20:23 +0100
Linux IPC interprocess communication -- message queue
Message queue is the connection table of messages, which is stored in the kernel. This example mainly realizes inter process communication in the way of message queue. After receiving the message, the receiving end immediately forwards it to the sending end; After sending a message, the sender immediately monitors the message fed back by the re ...
Posted by zako234 on Sat, 08 Jan 2022 10:03:17 +0100
Steps and principle analysis of porting 2022 U-Boot for Exynos4412
This article mainly describes how to transplant u-boot-2022.01-rc4 to the cbt4412 core board (similar to the tiny4412 core board), and analyzes the reasons for modifying the file code. (there is a link to download the source code of GitHub at the end of the article)
To transplant U-Boot, first select the development board with the same pro ...
Posted by stallingjohn on Sat, 08 Jan 2022 09:45:51 +0100
kill Command in linux
When running the model on the server, you often encounter two problems:
The model is too large and needs a long running time, and the computer can not be kept in the boot state all the time. Even if it is kept in the boot state, it is not sure which one will turn off and cause re runningDuring continuous training on the server, you find that y ...
Posted by jowatkins on Fri, 07 Jan 2022 10:20:04 +0100
LVS load balancing + high availability
1, LVS
LVS (Linux Virtual Server), namely Linux virtual server, is a virtual server system, which realizes the load balancing Cluster function on unix/Linux platform. LVS is a Cluster technology, which adopts IP load balancing technology and content-based request distribution technology. The scheduler has good throughput, transfers ...
Posted by shoz on Fri, 07 Jan 2022 09:55:08 +0100
Linux basic operation notes
Common commands
Enter directory
cd /usr #Enter the usr directory
View catalog file
ls #View all files in the current directory
ll #View the details, permissions, size, time, etc. of all files in the current directory
#ll command = = ls -l command
ls Directory name #ls + directory name, you can view all files in the specified directory
...
Posted by Pavel_Nedved on Fri, 07 Jan 2022 09:19:56 +0100
systemd log for log management, persistence settings, journal, systemd journal, view log (journalctl)
System D uniformly manages the startup logs of all units. You can view all relevant logs (kernel log and application log) with only one command of journalctl. The configuration file for logs is / etc / Systemd / journald conf.
Persistent systemd log
CentOS 7 can use SYSTEMd journal as the log Center Library (generating log folders). Th ...
Posted by AXiSS on Fri, 07 Jan 2022 02:52:04 +0100
linux network settings
View network configuration
Maximum mtu packet transfer rate
View network interface information ifconfig
View all active network interface information
Execute ifconfig command View specified network interface information
ifconfig network interface
[root@localhost ~]# ifconfig ens33
ens33 flags=4163<UP,BROADCAST,RUNNING,MULTICAST& ...
Posted by mecha_godzilla on Fri, 07 Jan 2022 01:51:55 +0100
CentOS8 deploying MariaDB master-slave database service
catalogue
1, Installation environment
2, Initialize database
3, Configure master node masterdb
4, Configure slave node slavedb
5, Validate database master-slave service
1, Installation environment preparation
1. Node planning
Prepare two virtual hosts to act as master dB and slave DB respectively
IP addressHost namenode192.168.18.8mas ...
Posted by mATOK on Thu, 06 Jan 2022 16:45:36 +0100