[Redis Foundation] Startup Process
1. Initialize server state structure
The initial server variable is completed by the redis.c/initServerConfig function with the following source code
void initServerConfig() {
int j;
// Server status
// Setting the running ID of the server
getRandomHexChars(server.runid,REDIS_RUN_ID_SIZE);
// Setting default profile pat ...
Posted by Ang3l0fDeath on Mon, 10 Jun 2019 11:47:33 -0700
11 redis cluster cluster deployment
Last article A Brief Talk on redis cluster Cluster The advantages of redis cluster architecture, the comparison between redis cluster and redis replication + sentinal, and the data fragmentation algorithm of redis cluster are mainly explained. The original hash algorithm and consistency hash algorithm + virtual nodes are also briefly introduc ...
Posted by reneeshtk on Fri, 07 Jun 2019 13:33:01 -0700
Spring Boot Data Cache
We know that the bottleneck of a program is the database. We also know that the speed of memory is much faster than that of hard disk. When we need to retrieve the same data repeatedly, we request database or remote service again and again, which leads to a large amount of time spent on database query or remote method invocation, resulting in d ...
Posted by $SuperString on Wed, 05 Jun 2019 15:41:48 -0700
Process monitoring supervisor
Supervisor, a process control system, is a C/S mode system that allows users to monitor and control the number of processes in the UNIX-LIKE operating system.Supervisor is the main process and some subprocesses are managed under Supervisor. When a subprocess exits abnormally, Supervisor handles it immediately, usually by daemon, restarting the ...
Posted by foobar on Mon, 27 May 2019 10:07:04 -0700
Redis Cluster Simple Setup and Use
Environment: A Linux Virtual Machine
Redis version: redis-4.0.1
1. Download and decompress
cd /opt/redis
wget http:http://download.redis.io/releases/redis-4.0.1.tar.gz
tar -zxvf redis-4.0.1.tar.gz
2. Compile and Install
Be sure to enter the decompression directory and use the command make, or you will report an error: make:* No targets ...
Posted by salathe on Fri, 24 May 2019 12:08:46 -0700
Server Development Series 2
title: Server Development Series 2
date: 2017-9-13 11:27:46
After three weeks of crazy overtime, the pace of server development can finally be put on hold, and there is time to take a good look at the project from an "external" perspective.
Write tcp server naked using swoole
In the absence of the Swiss Army Knife (familiar framework) ...
Posted by FireDrake on Thu, 23 May 2019 16:57:22 -0700
Simple redis cache operations (get, put)
Simple redis cache operations (get, put)
This article describes simple redis caching operations, including introducing the jedisjar package, configuring redis, some tools needed by RedisDao, put ting data into redis, fetching data from redis, and logic for accessing redis.
1. Introducing the jedis jar package
<!-- java Visit redis Of jar pa ...
Posted by im8kers on Thu, 23 May 2019 10:33:25 -0700
redis series (2) - syntax and commands
redis series articles:redis series (1) - installation and startupredis series (2) - syntax and commands
1. Brief description
The key value types supported by Redis are String character type, map hash type, list list list type, set collection type, sortedset ordered collection type.This article summarizes the use of these key value types and i ...
Posted by bellaso on Tue, 21 May 2019 11:12:48 -0700
Edits Sequence Number Generator for out-of-box, no more code to write, you deserve it
First look at the overall effect
One of the goals of software development is to "fool" simple things.Look at the following picture:
On the left are three generators configured in application.yml, and on the right they can be injected directly into the code, note that you don't have to write any code.It's sour.Here's how it w ...
Posted by mryno on Sun, 19 May 2019 12:18:40 -0700
Common Questions Set for Linux Enterprise Production
1. How to set the memory size of tomcat-8.5.9 JVM
JAVA_OPTS="$JAVA_OPTS -Xmx2048m -Xms1024m -Xss512k -XX:NewRatio=4 -XX:SurvivorRatio=4"
-Xmx2048m #Maximum available memory
-Xms1024m #Minimum Available Memory (Maximum and Minimum Set to Equivalent)
-Xss512k #Stack size for each process
2. nginx proxy ba ...
Posted by lordzardeck on Sat, 18 May 2019 09:42:38 -0700