I. test requirements
XX enterprises currently require the use of Aruba devices for stable wireless network coverage and security assurance. To ensure security, XX enterprise requires the Aruba device to establish two wireless SSID, one SSID is CA, and the user initially connects to the CA for certificate application (the user is in vlan 710 ), you are not authorized to access other networks. The other SSID
July 31 News, Aruba Networks today announced that its mobile enterprise network (move) architecture has been certified by Microsoft Lync Server Wi-Fi compatibility test project. This project is designed to ensure that the relevant products comply with Microsoft's voice and video quality of Service (QoS) delivery requirements. Certified products can provide a more stable unified communications service experience to end users, and agents will benefit fr
Docker + Redis3 Cluster Environment setup
Topology:
Lab objectives:
The client accesses the following redis clusters through 192.168.100.67
Container ID: 9cb25bcd52d1 IP Address: 172.17.0.5 port: 7005 7006
Container ID 91dac3ea23c9 IP Address: 172.17.0.4 port: 7003 7004
Container ID e2189fc1d4d9 IP Address: 172.17.0.2 port: 7001 7002
Create a basic rides image, including the basic package, ruby, and redis Interfaces
We create a basic rides image, whi
7000/7001
Test02
192.168.2.10
CentOS 6.3 (64-bit)
Instance 7002/7003
Test03
192.168.2.7
CentOS 6.3 (64-bit)
Instance 7004/7005
Deployment steps:
1. Compile and install redis.
Put the installation package in/data/and decompress it and compile it.
[root@test01 data]# tar -zxf redis-3.2.0.tar.gz
[root@test01 redis]# cd redis-3.2.0
[root@test01 redis-3.2.0]# make make install
[root@test01 redis]# ln
The principles of Redis cluster implementation refer to a minimum of 3 nodes for the Http://www.tuicool.com/articles/VvIZje cluster environment. It is recommended to use 6 node configurations, which are 3 primary nodes and 3 slave nodes. Create a new 6 folder 7000/7001/7002/7003/7004/7005 copy the redis.windows.conf and then modify the following options in the configuration file
Port 7000 (redis port number)
daemonize Yes (whether it i
the following command to resolve the environmental issue first:yum-y install ruby RubyGemsgem install Redis #安装redis API Interface>>> Check for open slots ...>>> Check Slots Coverage ...[OK] all 16384 slots covered.>>> Creating ClusterConnecting to Node 192.168.116.130:7000:okConnecting to Node 192.168.116.129:7001:okConnecting to Node 192.168.116.131:7002:okConnecting to Node 192.168.116.130:7003:okConnecting to Node 192.168.116.129:7004:okConnecting to Node 192.168.116.131:
Test the Cluster of Redis Cluster on Windows to fill in the note, redisclusterFor the principle of redis cluster implementation, see the http://www.tuicool.com/articles/VvIZje cluster environment requires at least three nodes. We recommend that you use six nodes, namely three master nodes and three slave nodes. Create 6 new folders: 7000/7001/7002/7003/7004/7005 copy redis. windows. conf and modify the following options in the configuration file.
Po
Install based on Redhat LinuxFront: Yum installed (because you need to install software like Ruby, it's easy to install using Yum Install, see http://eip.teamshub.com/t/3111540 for installing Yum)1, put "redis-3.0.5.tar.gz" into the Home/redis directory;2. DecompressionTAR-ZXVF redis-3.0.5.tar.gz3, into the directory to compileCD redis-3.0.5Make4. Create the directory required by the clusterMkdir-p/home/redis/redis-3.0.5/cluster-testCd/home/redis/redis-3.0.5/cluster-testmkdir 7000mkdir 7001mkdir
cluster functionality is first tested: Three are primary, while the remaining three are the nodes from each master node.
First, let's go into a new directory and create six subdirectories with the name of the port number, and later we'll run a Redis instance in each directory: the commands are as follows:
mkdir cluster-test
cd cluster-test
mkdir 7000 7001 7002 7003 7004 7005
In folders 7000 through 7005,
, which is an important configuration option for Redis clusters:* For most Parties, if a primary node fails to reconnect to the cluster within the time limit set by the node timeout, the cluster will consider the primary node as offline and use the slave node instead of the master node to continue working.* For a few, if a primary node fails to reconnect to the cluster within the time limit set by the node timeout, it will stop processing the write command and report an error to the client.Redis
Redis cluster useRedis Cluster scheme1, client fragmentation. such as: take surplus and so on2, Agent (proxy) fragmentation. By proxy absolute data access, such as: Twemproxy.3,redis cluster. No Center mode,4, Codis (Solution for pea pod development)Redis Cluster reference Documentation: http://redisdoc.com/topic/cluster-tutorial.htmlUsually, the Redis cluster needs at least 6 units, three main three from
[Root@yum-down opt]# mkdir ' seq 7001 7008 '[Root@yum-down opt]# ls7001 7002 7003 7004
The previous article explains the process of building the Redis cluster based on Redis cluster, and continues to explain the increase and decrease of node in the Redis cluster below. adding nodes in a cluster
Let's test again, add a new node, in 2 cases, 1 as the primary node, 2 as a node from the node. Let's try this separately: Create a new 7006 node to join as a primary node:New 7006 directory, copy configuration file, modify port, start 7006 Port Redis;
[Root@spg 7006]# Ps-ef | grep redis
ro
I. Installing the necessary packagesYum Install GCCTwo. Install under Linux#下载wget Http://download.redis.io/releases/redis-3.0.0.tar.gztar zxvf redis-3.0.0.tar.gzcd redis-3.0.0# If no parameters are added, Error make MALLOC=LIBC under LinuxAfter installation, start the file#启动redissrc/redis-server #关闭redissrc/redis-cli shutdownTest RedisTest success3.redis Cluster cluster constructionSetting up a native test environmentCreate a run Directory#建立redis运行目录mkdir-P redis-server/7000/#复制默认的配置文档cp red
Redis cluster, you need to install Redis on the machine deployed in each cluster (refer to Redis installation), and then modify the configuration to start the cluster.2.1 manually deploy the cluster 2.1.1 and set the configuration file and start the instance
Modify the configuration file redis. conf. The minimal configuration file in cluster mode is as follows:
# Optional. daemonize yesport 7000cluster-enabled yescluster-config-file nodes. confcluster-node-timeout 5000 appendonly yes
For more
other language drivers. The cluster scenario has been supported since Redis3.0.The relevant Redis Cluster principle is not introduced here, there is a lot of information on the network.
Third, Redis cluster application (a) Introduction to the environmentThis system builds Redis3.0 cluster based on the Linux CentOS. Deploy three instance to a single virtual machine and apply to the Windows platform.
Serial number
Service IP
Description
1
192.1
(To make the cluster work at least 3 primary nodes, here we will create 6 Redis nodes, of which three are the primary node, three are slave nodes, the corresponding Redis node's IP and port correspondence is as follows) 192.168.1.160:7000192.168.1.160:7001192.168.1.160:7002192.168.1.160:7003192.168.1.160:7004192.168.1.160:7005 1: Download Redis. Download 3.0.0 version, previous 2. Several versions do not support cluster mode: HTTP://DOWNLOAD.REDIS.IO/
difference is.Step One: Create 6 Redis instances with port numbers from 7001~7006The second step: Modify the Redis configuration file, back-end boot daenonize to Yes is the previous installation of a standalone version has been done.1, modify the port number, enter the VIM edit mode, non-insert mode (INSERT press ESC to exit) input/port Enter to quickly locate2. Open the comment in front of cluster-enable. : wq! Save edits3, copy redis01 to the current directory, CP is copied,-R is a joint subd
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.