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
Brew info redislaunchctl unload ~ /Library/launchagents/homebrew. mxcl. redis. plistps aux | grep redis kill-9 78053./deploy/SH/redis_server.sh start
There are 5 processes in Linux: 1. running (running or waiting in the running Queue) 2.
Source: http://timyang.net/data/redis-misunderstanding/
A major system fault occurred on Weibo a few days ago, and many technical friends are concerned about it. The reason is not as high as James Hamilton's on design and deploying
The redis. conf configuration options are as follows:Whether daemonize is run by a later process. The default value is no.If pidfile is run by a later process, you must specify a PID. The default value is/var/run/redis. PID.Bind Host IP address.
This is the most common practice for everyone to learn how to use redis:
First: Download
Download redis: download the latest rediss from the official website http://redis.io /.
Http://redis.googlecode.com/files/redis-2.6.14.tar.gz
Download Jedis:
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
Note: After Reading redis source code analysis-protocol, I found that the author skipped some simple points, but these simple points are exactly what I didn't understand, so I made some supplements, take notes.
Version: 2.04.
1. Requests format
*
: Servicestack.googlecode.com/files/redis-2.0.2.zip
After the download, decompress it to your disk, my is F: \ redis-2.0.2
You also need to add the redis configuration file redis. conf in the redis root directory. the specific content of the file 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
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 learning Summary
Redis is a single-threaded event-based model that uses the event processing framework aeevent
1. Startup Process
The reids startup process is roughly as follows:
1. initialize the global struct server data structure, assign
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
This article will introduce redis Command Parsing, but to have a more intuitive understanding of redis Command Parsing, you must first understand the redis Command Protocol format.Source code
None (or in network. c)Analyze requests
*
Introduction
In the previous blog, we mentioned that the underlying Linux epoll is used in redis event processing, and other multi-channel communication layers can be used according to the implementation of redis, however, epoll is the most
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
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