Many users are familiar with redis list, hash, set, string, and other operations,
This section briefly introduces the dynamic parameter modification, master-slave switchover, persistent settings, and system information monitoring.
The redis
The recent project progress is relatively tight, and several projects have been synchronized and few summary are made. I especially like review on GitHub.CodeThe font is good and clear. This project is implementing the distributed design of redis, a
I. redis master-slave replication features:1. Master can have multiple slave (slave)2. Multiple Server Load balancer instances can be connected to the same master or other Server Load balancer instances.3. Master-slave replication does not block the
1. Storage Method
Memecache stores all data in the memory. After the power is down, the data cannot exceed the memory size.
Some redis instances are stored on the hard disk to ensure data persistence.
2. supported data types
Memcache
As a cache server, redis has very powerful functions.
Redis also provides the master-slave mechanism. The slave synchronization time is on the testing machine (unit: MS ). In the figure, the master and slave nodes are distributed in two data
The current stable version of redis (2.0.4) only supports Simple master-slave replication: one master write, multiple slave reads. Sharding can only be performed by the client through consistent hashing.
Redis cluster is the focus of
RedisIs a key-value storage system. Similar to memcached, But it solves the problem that data is completely lost after power-off, and she supports more undefined value types. Besides string, it also supports lists (linked list), sets, and zsets.
Problems with traditional MySQL + memcached Architecture
MySQL is suitable for storing massive data. Many companies have used this architecture to load hotspot data to the cache through memcached to accelerate access. However, as the business data
A single redis instance may encounter single point of failure. To solve the high availability of redis, master-slave replication should be the second step of learning. The purpose of this article is to bring one master with one slave, and the slave
Falling flowers,Quietly eclipsed.Even so, fate in the blue eyes but not a shadow, flying flowers passed over a light calm smile.The beads in the hand hit a string of Sanskrit."Are the flowers of the double-generation Bodhi trees scattered ?"
The
Http://blog.nosqlfan.com/html/1532.html.
Redis author antirez (Salvatore sanfilippo) recently published an article titled redisThe redis manifesto article lists the seven principles of redis to illustrate the ideas of redis. This site translation is
This article by larrylgq prepared, reproduced please note the Source: http://blog.csdn.net/larrylgq/article/details/7399769
Author: Lu guiqiang
Email: larry.lv.word@gmail.com
Strings type
The string type is binary secure.
Redis strings can contain
1. In the redis Hello world example, the package here is Jedis. Https://github.com/xetorthio/jedis/downloadsimport the jarpackage into the project and open the redisserver (for details on redis downloading and installation, refer to the preliminary
From: http://www.cfanz.cn /? C = article & A = read & id = 32677
Reference http://www.open-open.com/lib/view/open1351324403395.html
Spring http://www.open-open.com/lib/list/354Data redis implements a subscription/Release System
Spring
If it is a professional dBA, many parameters will be added when the instance is started to make the system run very stably, so that a parameter may be added after redis at startup, you can specify the path of the configuration file to start the
Redis has a major bottleneck when the memory size exceeds 50 GB. To solve this problem, I found some relevant information and found this open-source software. The function is very powerful, including the consistent hash algorithm of ketama of last.
Introduction
The current version of redis supports tcmalloc, jemalloc, Apple's malloc, or redis's own zmalloc. Zmalloc manages the memory allocation, which is thread-safe, and the allocated memory must be sizeof (long.Source code
Zmalloc. h
Introduction
Redis encapsulation of Linux socket, although it also contains encapsulation of UNIX socket, but generally uses TCP socket. Similar to epoll encapsulation in the previous article, epoll uses the underlying socket function to complete
Introduction
Because there is no string type in Standard C, Redis implements its own string sds.Source File
Sds. h sds. cAnalyze Data Structure
// Sds type typedef char * sds; // sdshdr structure struct sdshdr {// The length occupied by the buf
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