Author: Chszs, reprint should be indicated. Blog home: Http://blog.csdn.net/chszs
Some time ago, I spent a lot of time looking for a way to push the newly developed code to the production system to be able to 0 downtime, and 0 impact on the use of
Configuration of Redis1. Redis is not running as a daemon by default and can be modified by this configuration item, enabling the daemon with YesDaemonize No2. When Redis is running as a daemon, Redis writes the PID to the/var/run/redis.pid file by
Pits encountered: The following Jedis version and Spring-data-redis version must be used to achieve cluster effect. Version 1.7 was previously not supported for cluster redis.clients jedis 2.8.0
The use of Redis is very extensive, its advantages are fast, support rich data types, support things operation, such as session cache, full page cache (FPC), queue, etc., greatly reduce the burden of the database.1. Install and download RedisWebsite:
1 go to redis download websitehttps://redis.io/downloadcan see how to download2 Download Reids installation packagewget http://download.redis.io/releases/redis-4.0.11.tar.gz3 Unpacking the ZIP packagetar xzf redis-4.0.11.tar.gz4 Installing GCC
There should be at least three nodes in a Redis cluster. To ensure high availability of the cluster, a backup machine is required for each node. A Redis cluster requires at least 6 servers.Build pseudo-distributed. You can run 6 Redis instances
"I am using a local virtual machine, the virtual machine is installed CentOS7"First step: Download and install Redis 1, install the compilation environment: sudo yum install gcc-c++2, create a Redis folder under the/usr/local/directory: mkdir redis3
First, we will explain that redis's virtual memory and OS's virtual memory are not the same thing, but their ideas and purposes are the same. It is to temporarily swap infrequently accessed data from the memory to the disk, so as to free up valuable
What is message-oriented middleware? The publishing and subscription of point-to-point message-oriented middleware is asynchronous communication.
Case: Use redis for publishing and subscriptionRedis publish and subscribe
Redis pub/sub is a
Nginx + Lua + redis implement gray release:
Gray release refers to a method for smooth transition between black and white
AB test is a gray release method that allows some users to continue using a and some users to use B. If the user has no
Redis supports five data types: String, hash, list, set, and zset ).
String is the most basic type of redis. A key corresponds to a value. The string type is binary secure. It means that the redis string can contain any data. For example, JPG images
Search for redis Images Using docker
docker search redisPull image to local
docker pull redisView the downloaded Image
docker imagesRun Image
docker run -p 6379:6379 -d redis
-pMap port 6379 of the container to port 6379 of the host.
-dRun the
Reference a passage in a Chinese article in Python:"Redis is a high-performance Key-value database. The emergence of redis largely compensated for the shortage of keyValue storage such as memcached,It can complement relational databases in different
RedisKey-value nosql, dedicated to thoseSmall and hotData, typical "Lori control"What is key-value? From the perspective of RDBMS, let alone one word:Key: primary key columnValue: other columnsRedis has been very popular in recent years, and it has
The redis management script is based on the Ubuntu release. For Ubuntu users, you can refer to this Article. Ubuntu installation and startup of redis are not available on centos Linux. The following script can be used for centos:
Before using this
Servicestack. redis is the C # client recommended by the redis official website (download here). There are also many users. Recently, I also used it in my project. I checked on the Internet about three methods for using this client: creating a
Keepalived: LVS + Keepalived Chinese application doc-March 16,201 0.
Keepalived implements VRRP protocol and implements VIP switching at the routing level, which completely avoids problems similar to heartbeat split-brain. You can use nice to
TCMalloc (Thread-Caching Malloc) implements the same functions as the standard glibc library's malloc, but TCMalloc is much more efficient and faster than standard malloc. TCMalloc is a gperftools tool in google-perftools. The four tools are
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service