Redis is an open source API that is written in ANSI C, supports the web, can be persisted in memory, key-value databases, and provides multiple languages. From March 15, 2010 onwards, the development work of Redis is hosted by VMware.1. Environment#
Prepare the environment:
Because no 1000 m network machine is available, connect the two laptops with a direct connection to form a M Ethernet network. Yes, it's a straight-through line. Now, the network card can adapt to cross-line and
ArticleDirectory
1. Schema
2. capacity and bandwidth Planning
3. Performance planning (QPS)
4. scalability
Summary
1. What is redis?
2. redis cannot be faster than memcache
3. data stored in a single redis instance must
Use zookeeper to implement consistent hash.
When the redis service starts, it writes its route information to ZK through a temporary node, and the client reads available route information through ZK client.
Server
Daemon written with
1. Download and install
CD/TMPWgetHTTP://Redis.googlecode.com/files/redis-2.2.13.tar.gzTar-Zxf redis-2.2.13.Tar. Gzcd redis-2.2.13MakeSudo Make Install
In this case, the redis executable file is stored in/usr/local/bin.
2. Download the
I. Discussion and understanding of redis persistence
Currently, there are two methods for redis Persistence: RDB and Aof.
First, we should clarify the usage of persistent data. The answer is to recover data after restart.Redis is a memory database.
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
Recently, alicloud is preparing for the next interview, including redis and redis as the key content.
Redis is an open-source log-type and key-value database written in ansi c language that supports Network, memory-based persistence, and provides
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
Preface first, post a reference link: http://www.redisbook.com/en/latest/internal-datastruct/adlist.html, also really like the author of the article, a guy after 90 really good, basic skills solid, the linked list is one of the core data structures
Source code version: redis 2.4.4
Redis memory-related functions are stored in zmalloc. h zmalloc. C.Redis can use tcmalloc and jemallocMakefile:
ifeq ($(USE_TCMALLOC),yes) ALLOC_DEP= ALLOC_LINK=-ltcmalloc ALLOC_FLAGS=-DUSE_TCMALLOCendififeq
Redis is a memory database that supports persistence. That is to say, redis often needs to synchronize data in the memory to the disk to ensure persistence. Redis supports two persistence Methods: snapshotting (snapshot) and append-only file (AOF.
Readme. markdown official introduction
# Predis #
# About ##
Predis is a flexible and feature-complete PHP (> = 5.3) client library for the redis key-Value Store.
For a list of frequently asked questions about predis, see the _ FAQ _ file in the
I. redis Construction
Redis Official Website: http://redis.io/download
Download the latest version:
./Configure
Make
After compilation, A redis-server execution file is generated.
In the source code directory, you can find a template for the
Redis is a key-value-based nosql database that supports a variety of common data structures and very convenient operations, it is a server that stores various data structures. It's okay today. I used the Java Collection class to implement some basic
Reprinted from: http://www.cnblogs.com/daizhj/articles/1956681.html to some configuration options made some instructions
I have read the configuration item from top to bottom. I have a general understanding of it. For now, I still cannot use some
Redis code structure Class 3 database-list
1. redis_list (t_list.c)
Commands of this type include lpush, rpush, lpop, and rpop. Here we will only introduce the lpush command. The corresponding command callback function is void lpushcommand
Document directory
4.2 Use scp to copy files and directories
4.3 configure redis. conf for slave
5.1 start the server
5.2 Test Synchronization
1. Introduction
Redis is a key-value storage system. Similar to Memcached, Memcached supports more
Document directory
4. Redis Development Status and Prospects
5. Related News
1. What is Redis?
15 minutes to introduce the Redis Data Structure
Redis SYSTEM INTRODUCTION
A great Redis introduction PPT
Highly recommended! Unusual Redis
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
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