redis cluster configuration under Windows

Copy 6 copies of redis and modify each configuration file (redis.windows.conf) cluster1 To configure bind 192.168.1.223 port 6111 loglevel notice logfile "D:/develop/redisClusterMS/Redis -clu -1/redis6111_log.txt" appendonly yes appendfilename "appendonly.6111.aof" cluster-enabled yes ...

Posted by ac1dsp3ctrum on Fri, 03 Jan 2020 00:09:40 -0800

springboot~hazelcast caching Middleware

Cache is coming. In the dotnet platform, there is its own cache framework. Of course, there are many integrations in java springboot, and there are many choices for cache middleware. Redis and hazelcast are distributed cache middleware. Today, we mainly talk about the implementation of the latter. Add dependency package dependencies { compi ...

Posted by Shaudh on Wed, 01 Jan 2020 11:37:00 -0800

33, Redis trib building cluster

Redis trib building cluster 1. Turn on all nodes Move redis trib to the specified directory: cp /opt/module/redis-4.0.11/src/redis-trib.rb /usr/local/bin Configure the configuration file of the 8000-8005 node as follows: #redis basic configuration port 8000 daemonize yes pidfile /var/run/redis-8000.pid dir /opt/modul ...

Posted by jonoc33 on Wed, 01 Jan 2020 04:55:30 -0800

Spring+redis sentinel master-slave switch

Spring+redis sentinel master-slave switch (failover) redis sentinel configuration reference: http://www.cnblogs.com/yjmyzz/p/redis-sentinel-sample.html Reference for the integration of redis sentinel and spring: http://www.cnblogs.com/yjmyzz/p/integrate-redis-with-spring.html For redis object caching, please refer to the abov ...

Posted by n00b Saibot on Tue, 31 Dec 2019 10:21:24 -0800

Business and data recording: implementation of ThreadPool.QueueUserWorkItem and Redis

Business description When the user completes the business operation or data operation, the business record / data tracking is inserted into Redis. ThreadPool.QueueUserWorkItem periodically checks the queue and inserts the above data into the database for persistence. Implementation process 1. Implementation of RedisHelp    /// <summary&g ...

Posted by Squirrel86 on Tue, 31 Dec 2019 00:05:53 -0800

Redis cluster deployment

Experimental environmentSimulate 6 servers with 2 servers (add network card) Primary server Redis1:ens33: 192.168.52.150ens36: 192.168.52.153ens37: 192.168.52.154From server Redis2:ens33: 192.168.52.148ens36: 192.168.52.155ens37: 192.168.52.156 Install Redis on both servers [root@localhost ~]# yum install gcc gcc-c++ make -y ##Install envir ...

Posted by nostradamus on Mon, 30 Dec 2019 06:33:27 -0800

Usage of five basic types of redis

redis storage format We all know the storage types supported by redis (String/List/Hash/Set/SortedSet), but not necessarily used in our work. I hope that through this article, we can know how to use redis in java and how to operate these data types by redis. Basic Usage Operate on redis through jedis (the Java client that ...

Posted by Rushyo on Sat, 28 Dec 2019 09:10:58 -0800

Using redis to count the hit of interface cache in Distributed Cluster

The interface uses cache to see how much cache hit rate has been improved. I'd like to make a statistical method. I'd like to use AtomicImteger on a single machine. Considering the multiple server calls in the distributed cluster, I'd like to use redis to make statistics. The original idea is very simple to use distributed lock control to opera ...

Posted by CaseyC1 on Sat, 28 Dec 2019 09:01:05 -0800

Redis disable dangerous command

1: Dangerous commands cannot be used on Redis 1:keys * Although the fuzzy matching function is very convenient and powerful to use, there is no problem in the case of small amount of data. The amount of data will cause Redis lock and CPU surge. It is recommended to disable or rename in the production environment! 2:flushd ...

Posted by TheNookie on Wed, 25 Dec 2019 12:38:55 -0800

Talk about the computeIfAbsent operation of RMap of redisson

order This paper mainly studies the computeIfAbsent operation of RMap of redisson Example @Test public void testRMapComputeIfAbsent(){ Config config = new Config(); config.useSingleServer() .setAddress("redis://192.168.99.100:6379"); RedissonClient redisson = Redisson.create(config); RMap& ...

Posted by desenhistas on Wed, 25 Dec 2019 12:16:43 -0800