docker builds redis cluster
1. Download the redis image
docker pull redis
2. Prepare the configuration fileRedis.conf
wget https://raw.githubusercontent.com/antirez/redis/3.0/redis.conf -O /home/docker/redis/redis.conf
sed -i 's/# slaveof <masterip> <masterport>/slaveof red ...
Added by lc on Mon, 13 Jul 2020 17:48:21 +0300
This article introduces the Redis Cluster cluster, and briefly introduces the implementation of the cluster. It is mainly a specific practical part: cluster startup, failover, adding nodes, removing nodes
Basic concepts of Redis cluster
Redis's cluster mode provides data fragmentation and ensures the availability of each partition. Each node of ...
Added by jdorsch on Thu, 25 Jun 2020 14:10:22 +0300
This project is a Spring boot project
Redis Cutting Programming
Target: Add a comment to the method to cache when querying
Method: Custom Note+AOP Section Programming
Say nothing but go directly to the code demonstration
Added by Bad HAL 9000 on Tue, 23 Jun 2020 05:27:47 +0300
Dockerfile introduces and commonly used instructions, including FROM, RUN, COPY, ADD, EXPOSE, WORKDIR, etc. in fact, dockerfile has powerful functions and provides more than ten instructions.
Dockerfile is a text file used to build an image. The text content contains instructions and instructions required to build an image. ...
Added by programguru on Sun, 21 Jun 2020 11:49:45 +0300
Java back end interface and Vue front end
1. See the effect first
publish an article
Java back end interface development:
Using springboot+mybaitsPlus+shiro+jwt+lombok+redis; database mysql5.7+
Here, we use IDEA to develop the background interface. It's easy to create a ...
Added by sergio-pro on Sat, 20 Jun 2020 10:11:20 +0300
Various key operations
rpush rpop lpop lpush
lindex lrange ltrim llen
Added by ralba1998 on Thu, 18 Jun 2020 06:11:24 +0300
What is a distributed lock?
In a JVM, where multiple threads are concurrent, we can use synchronous or Lock locks to ensure that only one thread can modify shared variables or execute code blocks at a time.However, our services are deployed on a distributed cluster basis, and for some shared resources, the use of Java locks in a distributed en ...
Added by gersh on Wed, 17 Jun 2020 19:51:19 +0300
Use Redis command action
Working with Java code
The Principle and Feature of HyperLog Implementation
Implement HyperLog using Java
Web site UV refers to the amount of Unique Visitor visited by independent users of a Web site, that ...
Added by BlueSkyIS on Tue, 16 Jun 2020 03:56:18 +0300
1. Distributed Lock Implementation
2. Distributed Lock Using redis
Problems in the redis cluster state:
Solving distributed locks using redisson
1. Import dependent service-util
2. Configure redisson
Added by dev99 on Wed, 10 Jun 2020 19:17:31 +0300
In general, in order to solve a single point of failure, web applications in the production environment will be deployed on multiple platforms, so there will be a problem. When we log in, we will store the login information in the session. If we rely on the session in the native web con ...
Added by mouloud2001 on Tue, 09 Jun 2020 05:20:25 +0300