Tags: imp targe apt-get font logs get data Comm Ace PreMaster-Slave concept
A master can have multiple slave, a slave? can have multiple slave, so go on, form a strong? Multi-level server cluster architecture
Master used to write data, slave used to read data, statistics: the website read and write ratio is 10:1
Read/write separation via master/slave configuration
Master-Slave configuration configuration
To view the IP a
1.sentinel
The Redis Sentinel system is used to manage multiple Redis servers, performing three main tasks:1) Monitoring: Sentinel constantly check whether the master-slave server is operating properly;2) Reminder: When a Redis server problems, you can send notifications through the API;3) Automatic failover: When a primary server fails, Sentinel starts an autom
;
Redis Pipeline, transaction implementation of the second-kill library management;
The Redis queue diverts access traffic;
Redis Sentinel (Sentinel) cluster;
Nginx load balancing, reverse proxy, etc.;
Gunicorn Web application service with high concurrenc
#./redis-cli–p 16379 Set test redis 127.0.0.1:16379> Set Hello World OK 2.2 Cluster monitoring set up 2.2.1. Machine PreparationMain master:192.168.161.233From 1slave:192.168.161.234From 2slave:192.168.161.235Monitoring Machine sentinel:192.168.161.2362.2.2 Topology diagram2.2.3 Slave configuration# CD /usr/local/
1 Let go of the redis.config cluster-enabled Yes comment
2 Copying redis.conf files
Modify Port: 6380 6381 6382
3 Starting Redis Service separately
4 using the Redis Client command: Cluster meet IP Port command to create a cluster
5 Using the
DISCARD
Cancels the transaction, discarding all commands within the transaction block.If you are using the Watch command to monitor a (or some) key, then canceling all monitoring is equivalent to executing command unwatch.Available Versions:2.0.0+complexity of Time:O (1).return Value:Always return OK.
redis> MULTI
OK
redis
The first is to install redis3.0 under LinuxBelow is the success of my installation in CentOS 6.5. The content is mainly the content of http://redisdoc.com/topic/cluster-tutorial.html and some methods of dealing with the pits. Redis Cluster Deployment documentation (CENTOS6 System) (to enable the cluster to function at
Currently, Redis does not provide the cluster function. To provide services for multiple Redis instances at the same time, you can only implement it through the client itself (Memchached is also the client for distributed implementation ).
Currently, Redis does not provide the clus
Server cluster Role:A server cluster means that many servers are clustered together for the same service, and it appears to the client that only one server cluster can use multiple computers for parallel computing to achieve high computational speed, or it can be backed up with multiple computers, so that any one machine can break the whole system or run normally
one: About Redis cluster
the present situation of 1:redis cluster
Reids-cluster plans to launch in redis3.0, can be regarded as a Antirez statement: HTTP://ANTIREZ.COM/NEWS/49 (PS: Skip the ticket for a long time, this year seems to speed up), the latest version of the cur
Analysis of Redis transaction and improvement of the transaction characteristics of RedisHow many of the data acid properties are met?To keep it simple, Redis transactions guarantee consistency and isolation;Not satisfying atomicity and permanence;Atomic NatureRedis transaction
Reference:
Http://redis.io/topics/cluster-tutorial (mainly creating a Redis cluster using the Create-cluster script part)
https://ruby.taobao.org/
Install an unfamiliar software to see the Install,readme before, this is the custom, production to establish ordinary users and adjust the appropriate parameters, the f
Redis SentinelThe module has been integrated into the redis2.4+ version, although it is not release at the moment, but it can be attempted to use and understand, in fact Sentinel is still a bit complicated.
The main function of the Sentinel is to provide the Redis m-s (master,slaves) cluster with 1 master Survival Detection 2)
Redis replication features and redis sentinel and twemproxy are introduced in single-host redis, where:
Copy: You can create copies of a specified server.Extended system's ability to process read requests;
Redis Sentinel: Based on the replication feature, you can monitor the master and slave servers and when the ma
the sort operation and return the result directly.6. This usage is of little practical use when used alone. However, by combining this usage with the GET option, you can get multiple foreign keys without sorting, which is equivalent to performing a consolidated fetch operation (similar to the JOIN keyword for SQL database).Save Sort Results10.117.146.16:8379>410.117.146.16:8379> lrange ordered_price 0-11) "1.5" 2) "8" 3) "ten" 4 " Return value: Does not use the store parameter, returns the sort
Cluster introductionCluster introduced by Redis 3.0. Cluster is a redis distributed implementation with automatic data fragmentation, fault tolerance, significant elevation for read speed, improved aof rewriting, and so on.A Redis cluste
Briefly describe the general steps for self-testing and building a simple Redis cluster: 1. first, you have 6 apsaradb for redis instances (at least 6, 3 master, and 3 slave ).
Briefly describe the general steps for self-testing and building a simple Redis cluster: 1. first,
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.