Redis master-slave replication & redis sentinel mechanism & Springboot integration Sentinel
catalogue
1, Redis master-slave replication
full resync
partial resync (incremental replication)
2, Redis master-slave replication configuration
3, Sentinel mechanism principle
Tasks that each Sentinel needs to perform regularly
Automatically discover Sentinel and slave servers
Sentinel select master rule
4, Sentinel mech ...
Added by project168 on Tue, 23 Nov 2021 23:59:27 +0200
Introduction and command of Redis -- crazy God Theory
You can search Redis on bilibili to learn videos (crazy God said)
Getting started with Redis
summary Official website: https://redis.io/ Chinese website: https://www.redis.cn/ Redis (Remote Dictionary Server), i.e. remote dictionary service. It is an open source log and key value database written in ANSI C language, supporting network, memo ...
Added by xardas on Mon, 22 Nov 2021 01:42:26 +0200
ELK log analysis system
1.ELK log analysis
1.1 advantages and disadvantages of log server
advantage Improve security Centralized storage of logs shortcoming Difficult analysis of logs
2. What is elk?
The management tool for simplified log analysis is composed of Elasticsearch(ES), Logstash and Kibana. The official website is: https://www.elastic.co/products
E ...
Added by lunny on Sat, 20 Nov 2021 17:46:35 +0200
MongoDB high availability replica set schema
1, MongoDB replica set
The main significance of MongoDB replica set is to achieve high service availability, which is similar to the sentinel mode in Redis.
1. Copy set function
It mainly provides two functions:
1. When the data is written to the Primary node, copy the data to another Secondary node;
2. When the primary node fails, a ne ...
Added by alex_savin on Sat, 20 Nov 2021 04:26:34 +0200
PHP method and code example for operating hash and zset type data in Redis
1,hset
Description: set the value of the field in the hash table key to value. If the key does not exist, a new hash table is created and HSET operation is performed. If the field already exists in the hash table, the old value will be overwritten. Parameter: key field value Return value: if the field is a new field in the hash table and the v ...
Added by wvwisokee on Fri, 19 Nov 2021 19:53:01 +0200
Manually tear down the list of five basic data types of Redis (List)
1. List
Redis list is a simple string list, sorted by insertion order. You can add an element to the head (left) or tail (right) of the list
A list can contain up to 2 ^ 32 - 1 elements (4294967295, with more than 4 billion elements per list). Collection members are * * not unique, * * which means that duplicate data can appear in the collect ...
Added by crwtrue on Fri, 19 Nov 2021 09:22:12 +0200
redis6.2 deployment using TLS (three high availability modes)
Install redis6.2 and enable TLS encryption
install
# Install dependent software
sudo apt update
sudo apt install make gcc libssl-dev pkg-config
# Download redis and decompress
wget https://download.redis.io/releases/redis-6.2.6.tar.gz
tar -xvf redis-6.2.6.tar.gz
# compile
cd redis-6.2.6
make BUILD_TLS=yes
# If there is an error during c ...
Added by Wo0tHigh on Fri, 19 Nov 2021 08:37:53 +0200
Use Redis to test shopping cart, counter, good / bad rating and other functions [you can understand it at a glance]
Link to the above: (if you don't know much about Spring integration Redis, please refer to)
Spring integration Redis introduction details and basic exercises_ Yang Daxian loves basketball - CSDN blog
This article only does functional testing to show the code logic, and will be released later on how to use it in the project.
Shopping ca ...
Added by matt1 on Thu, 18 Nov 2021 07:25:13 +0200
Zero base spring boot day 8
brief introduction
Today, we mainly learn about global unified exception handling
step
try catch is often used in Web applications, which will lead to the feeling of disordered code structure and is not conducive to debugging code. It will be a good thing if all exceptions can be unified into one module. Then @ ControllerAdvice and @ Excepti ...
Added by robtbs on Wed, 17 Nov 2021 12:43:53 +0200
Teach you Dapr - 7. Actors hand in hand
introduceThe actor mode describes the actor as the lowest level "cell". In other words, you write code in a separate unit (called an actor) that receives messages and processes them one at a time without any concurrency or threads.In other words, after dividing independent computing units according to ActorId, the same ActorId re-entr ...
Added by Elhombrebala on Wed, 17 Nov 2021 09:55:45 +0200