{"id":33745,"date":"2023-09-29T10:36:44","date_gmt":"2023-09-13T14:43:09","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/"},"modified":"2024-05-04T02:02:32","modified_gmt":"2024-05-03T18:02:32","slug":"%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/","title":{"rendered":"\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316"},"content":{"rendered":"<p>Redis Sentinel\u662fRedis\u7684\u9ad8\u53ef\u7528\u6027\u89e3\u51b3\u65b9\u6848\u3002\u4e3a\u4e86\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u9ad8\u53ef\u7528\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528\u5197\u4f59\u5316\u7684HAProxy\u6a21\u5f0f\u3002\u5728Akamai\u7684\u4e91\u7aef\uff0c\u63d0\u4f9b\u4e86IP\u5171\u4eab\u529f\u80fd\uff0c\u53ef\u4ee5\u4f7f\u7528\u79c1\u6709IP\u6765\u5197\u4f59\u5316HAProxy\u3002\u4ee5\u4e0b\u6587\u7ae0\u63d0\u4f9b\u4e86\u6709\u5173\u6b65\u9aa4\u7684\u53c2\u8003\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u4e3a\u4e86\u5c06Redis Sentinel\u73af\u5883\u5b8c\u5168\u95ed\u5408\u5728\u79c1\u6709\u7f51\u7edc\u4e2d\u8fdb\u884c\u6784\u5efa\uff0c\u6211\u4eec\u8fd8\u4ecb\u7ecd\u4e86\u652f\u6301VLAN\u7684\u76f8\u5173\u6587\u7ae0\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u672c\u6587\u5c06\u8bf4\u660e\u5c06HAProxy\u7684\u5197\u4f59\u548c\u5b89\u5168\u6027\u4e24\u4e2a\u8981\u7d20\u7ed3\u5408\u8d77\u6765\u7684\u65b9\u6cd5\u3002\u4e3b\u8981\u7684\u786e\u8ba4\u4e8b\u9879\u662f\u5728VLAN\u4e0a\u5b9e\u73b0HAProxy\u7684\u5197\u4f59\uff0c\u4f7f\u7528keepalived\u3002\u6700\u7ec8\u7684\u8bbe\u5907\u7ed3\u6784\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/5-0.jpeg\" alt=\"Redis-VLAN-HAProxy.jpg\" \/><\/div>\n<div>\u4e0d\u50cf\u516c\u6709IP\u548c\u79c1\u6709IP\u90a3\u6837\uff0cVLAN\u662f\u5c01\u95ed\u5728\u5185\u90e8\u7f51\u7edc\u4e2d\u7684\uff0c\u56e0\u6b64\u4e0d\u9700\u8981\u4f7f\u7528\u7c7b\u4f3c\u4e8elelastic\u7684\u5de5\u5177\u3002<\/div>\n<div>\u5728VLAN\u4e2d\uff0c\u53ef\u4ee5\u81ea\u7531\u4f7f\u7528IP\uff0c\u56e0\u6b64\u4e0d\u9700\u8981IP\u5171\u4eab\u3002<\/div>\n<h1>\u51c6\u5907 Redis Sentinel \u5728 VLAN \u73af\u5883\u4e2d\u3002<\/h1>\n<p>\u53c2\u8003\u8fd9\u7bc7\u6587\u7ae0\u6765\u8bbe\u7f6eVLAN\u73af\u5883\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/11-0.jpeg\" alt=\"redis-vlan-1.jpg\" \/><\/div>\n<h1>\/\u7b49\u7b49\/\u5bbf\u4e3b\u673a\u6587\u4ef6<\/h1>\n<p>\u8bf7\u6309\u7167\u4ee5\u4e0b\u65b9\u5f0f\u8bbe\u7f6e VLAN \u7684 IP\u3002<\/p>\n<pre class=\"post-pre\"><code># VLAN\r\n10.0.0.11 redis-1v # Redis Server 1\r\n10.0.0.12 redis-2v # Redis Server 2\r\n10.0.0.13 redis-3v # Redis Server 3\r\n10.0.0.1 vlan-router # Act as a Router\r\n10.0.0.21 vlan-haproxy1 # HAProxy 1\r\n10.0.0.22 vlan-redisclient $ Application\r\n10.0.0.23 vlan-haproxy2 # HAProxy 2\r\n10.0.0.31 vlan-haproxy  # HAProxy (VIP)\r\n<\/code><\/pre>\n<h2>\u65b0\u589eHAProxy<\/h2>\n<p>\u63a5\u4e0b\u6765\uff0c\u6839\u636e\u4ee5\u4e0b\u6587\u7ae0\u7684\u53c2\u8003\uff0c\u6211\u4eec\u51c6\u5907haproxy2\u3002<\/p>\n<p>&nbsp;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/18-0.jpeg\" alt=\"redis-vlan-haproxy2.jpg\" \/><\/div>\n<p>\u4f7f\u7528Linode\u7684\u514b\u9686\u529f\u80fd\uff0c\u7b80\u5316\u5de5\u4f5c\u6d41\u7a0b\u3002<\/p>\n<h3>\u514b\u9686<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/21-0.jpeg\" alt=\"clone.jpg\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/22-6.jpeg\" alt=\"haproxy2-poweron.jpg\" \/><\/div>\n<p>\u542f\u52a8\u540e\uff0c\u8bf7\u91cd\u65b0\u786e\u8ba4\u5b89\u5168\u8bbe\u7f6e\uff0c\u5e76\u5728\u5176\u4e2d\u6309\u4ee5\u4e0b\u65b9\u5f0f\u66f4\u6539\u4e3b\u673a\u540d\u3002<\/p>\n<pre class=\"post-pre\"><code>hostnamectl set-hostname hproxy2\r\n<\/code><\/pre>\n<h2>\u5728haproxy2\u4e0a\u7684haproxy.cfg\u6587\u4ef6<\/h2>\n<p>\u5c06\u7ed1\u5b9a\u8bbe\u7f6e\u5982\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code>frontend ft_redis\r\n    bind *:6379 name redis\r\n    default_backend bk_redis\r\n<\/code><\/pre>\n<p>\u6211\u5c06\u5728haproxy1\u4e0a\u8fdb\u884c\u76f8\u540c\u7684\u914d\u7f6e\u3002\u5982\u679c\u8fdb\u884c\u4e86\u914d\u7f6e\u66f4\u6539\uff0c\u5c06\u91cd\u65b0\u542f\u52a8haproxy\u3002<\/p>\n<pre class=\"post-pre\"><code>systemctl restart haproxy\r\n<\/code><\/pre>\n<h2>\u5728Redis1\/2\/3\u4e0a\u542f\u7528\u9632\u706b\u5899\u3002<\/h2>\n<p>\u5728\u6bcf\u4e2aRedis\u670d\u52a1\u5668\u4e0a\uff0c\u5c06firewalld\u7684\u8bbe\u7f6e\u66f4\u6539\uff0c\u4ee5\u4fbf\u53ef\u4ee5\u4ece\u65b0\u7684haproxy2\u548cVIP\u8bbf\u95ee\u300210.0.0.31\u662f\u7528\u4e8e\u8bbe\u7f6e\u865a\u62dfIP\u7684\u8bbe\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>  &lt;source address=\"10.0.0.23\"\/&gt;\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>  &lt;source address=\"10.0.0.31\"\/&gt;\r\n<\/code><\/pre>\n<p>\u5728\u66f4\u6539\u8bbe\u7f6e\u540e\uff0c\u5c06\u91cd\u65b0\u542f\u52a8firewalld\u3002<\/p>\n<pre class=\"post-pre\"><code>firewall-cmd --reload\r\n<\/code><\/pre>\n<h2>haproxy2 \u53d1\u9001\u7684\u786e\u8ba4\u8bf7\u6c42<\/h2>\n<p>\u786e\u8ba4\u80fd\u591f\u8fde\u63a5\u5230\u6240\u6709\u7684 Redis \u670d\u52a1\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code>haproxy2:~# redis-cli -h redis-1v --tls --cacert ca.crt info replication | grep role\r\nrole:slave\r\nhaproxy2:~# redis-cli -h redis-2v --tls --cacert ca.crt info replication | grep role\r\nrole:master\r\nhaproxy2:~# redis-cli -h redis-3v --tls --cacert ca.crt info replication | grep role\r\nrole:slave\r\n<\/code><\/pre>\n<h2>haproxy1 \u53d1\u9001\u7684\u786e\u8ba4\u4fe1\u606f<\/h2>\n<p>\u786e\u8ba4\u4e0ehaproxy1\u7684\u8fde\u63a5\u3002<\/p>\n<pre class=\"post-pre\"><code>haproxy1:~# redis-cli -h vlan-haproxy2 --tls --cacert ca.crt info replication | grep role\r\nrole:master\r\nhaproxy1:~# redis-cli -h vlan-haproxy1 --tls --cacert ca.crt info replication | grep role\r\nrole:master\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/42-0.jpeg\" alt=\"haproxy2-setup-complete.jpg\" \/><\/div>\n<h1>\u4fdd\u6301keepalived\u8bbe\u7f6e<\/h1>\n<p>\u5b89\u88c5keepalived\u5230HAProxy 1\/2\uff0c\u5e76\u5c0610.0.0.31\u8bbe\u7f6e\u4e3a\u865a\u62dfIP\uff08VIP\uff09\u4ee5\u4f7f\u5176\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/45-0.jpeg\" alt=\"haproxy-keepalived.jpg\" \/><\/div>\n<h2>\u5b89\u88c5 keepalived<\/h2>\n<p>\u5c06keepalived\u5b89\u88c5\u5728haproxy1\u548chaproxy2\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>apt install keepalived\r\n<\/code><\/pre>\n<h2>\u4fdd\u6301\u6d3b\u52a8.conf\u7684\u914d\u7f6e<\/h2>\n<p>haproxy1 \u3068 happroxy2 \u3067 keepalived.conf \u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u8a2d\u5b9a\u5185\u5bb9\u306f\u305d\u308c\u305e\u308c\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>vi \/etc\/keepalived\/keepalived.conf\r\n<\/code><\/pre>\n<h3>haproxy1 \u7684\u914d\u7f6e<\/h3>\n<pre class=\"post-pre\"><code>vrrp_instance Instance1 {\r\n    state MASTER\r\n    interface eth0\r\n    virtual_router_id 10\r\n    priority 100\r\n    advert_int 1\r\n    authentication {\r\n        auth_type PASS\r\n        auth_pass passWord\r\n    }\r\n    unicast_src_ip 10.0.0.21\r\n    unicast_peer {\r\n       10.0.0.23\r\n    }\r\n    virtual_ipaddress {\r\n        10.0.0.31\r\n    }\r\n}\r\n<\/code><\/pre>\n<h3>haproxy2\u7684\u914d\u7f6e<\/h3>\n<p>haproxy1 \u3068\u306e\u9055\u3044\u3067\u3059\u3002<br \/>\n1.state \u304c MASTER \u3067\u306f\u306a\u304f BACKUP \u3068\u3059\u308b<br \/>\n2. priority \u3092 100 \u3067\u306f\u306a\u304f 99 \u3068\u3059\u308b<br \/>\n3. Unicast_src_ip \u3092\u81ea\u5206\u81ea\u8eab\u306e IP \u3068\u3059\u308b<br \/>\n4. unicast_peer \u3092\u76f8\u624b\u306e IP \u3068\u3059\u308b<\/p>\n<pre class=\"post-pre\"><code>vrrp_instance Instance1 {\r\n    state BACKUP\r\n    interface eth0\r\n    virtual_router_id 10\r\n    priority 99\r\n    advert_int 1\r\n    authentication {\r\n        auth_type PASS\r\n        auth_pass passWord\r\n    }\r\n    unicast_src_ip 10.0.0.23\r\n    unicast_peer {\r\n       10.0.0.21\r\n    }\r\n    virtual_ipaddress {\r\n        10.0.0.31\r\n    }\r\n}\r\n<\/code><\/pre>\n<h2>keepalived \u306e\u8d77\u52d5<\/h2>\n<p>\u6211\u4eec\u5c06\u5728haproxy1\/2\u4e0a\u8fd0\u884ckeepalived\u3002<\/p>\n<pre class=\"post-pre\"><code>sudo systemctl enable keepalived\r\nsudo systemctl start keepalived\r\n<\/code><\/pre>\n<h2>\u786e\u8ba4 haproxy1 \u7684 IP<\/h2>\n<p>eth0\u8bbe\u5907\u88ab\u5206\u914d\u4e8610.0.0.31\u7684IP\u5730\u5740\u3002<\/p>\n<pre class=\"post-pre\"><code>haproxy1:\/etc\/keepalived# ip -4 a show dev eth0\r\n3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000\r\n    inet 10.0.0.21\/24 brd 10.0.0.255 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n    inet 10.0.0.31\/32 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n<\/code><\/pre>\n<h2>\u8bf7\u786e\u8ba4 HAProxy2 \u7684 IP \u5730\u5740\u3002<\/h2>\n<p>eth0\u8bbe\u5907\u672a\u5206\u914d10.0.0.31\u7684\u5730\u5740\u3002<\/p>\n<pre class=\"post-pre\"><code>haproxy2:\/etc\/keepalived# ip -4 a show dev eth0\r\n3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000\r\n    inet 10.0.0.23\/24 brd 10.0.0.255 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n<\/code><\/pre>\n<h1>\u4fdd\u6301\u6d3b\u8dc3\u7684\u64cd\u4f5c\u9a8c\u8bc1<\/h1>\n<p>\u5728Redis\u5ba2\u6237\u7aef\uff0810.0.0.22\uff09\u4e0a\u542f\u52a8\u4e09\u4e2a\u7ec8\u7aef\uff0c\u5e76\u6267\u884c\u4ee5\u4e0b\u4e09\u4e2a\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>ping 10.0.0.31\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>ping 10.0.0.21\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>redis-cli -h vlan-haproxy --tls --cacert redis-nj_ca.crt\r\n<\/code><\/pre>\n<p>\u6211\u5c06\u5bf9haproxy1\u8fdb\u884c\u91cd\u65b0\u542f\u52a8\u3002<\/p>\n<pre class=\"post-pre\"><code>reboot\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/73-0.jpeg\" alt=\"redis-keepalived-haproxy.jpg\" \/><\/div>\n<h2>\u5411 haproxy1 \u53d1\u51fa ping \u8bf7\u6c42\u7684\u7ed3\u679c<\/h2>\n<p>\u5f53haproxy1\u8fdb\u884c\u91cd\u65b0\u542f\u52a8\u540e\uff0c\u6765\u81eaRedis\u5ba2\u6237\u7aef\uff0810.0.0.22\uff09\u7684ping\u8bf7\u6c42\u5c06\u5728\u4e00\u534a\u4e4b\u540e\u505c\u6b62\u54cd\u5e94\u3002<\/p>\n<pre class=\"post-pre\"><code>64 bytes from 10.0.0.21: icmp_seq=42 ttl=64 time=0.767 ms\r\n64 bytes from 10.0.0.21: icmp_seq=43 ttl=64 time=2.02 ms\r\n64 bytes from 10.0.0.21: icmp_seq=44 ttl=64 time=3.16 ms\r\n64 bytes from 10.0.0.21: icmp_seq=45 ttl=64 time=1.37 ms\r\n64 bytes from 10.0.0.21: icmp_seq=46 ttl=64 time=0.628 ms\r\n\r\n\r\n\r\n<\/code><\/pre>\n<h2>\u5c0d\u65bc VIP \u7684 ping \u6e2c\u8a66\u7d50\u679c<\/h2>\n<p>\u6211\u4eec\u5c06\u786e\u8ba4 haproxy1 \u4e0a\u7684 10.0.0.31 \u662f\u5426\u5df2\u88ab haproxy2 \u63a5\u7ba1\u3002\u5728\u5148\u524d\u65e0\u6cd5\u8bbf\u95ee\u5230 10.0.0.21 \u7684\u65f6\u95f4\u70b9\uff0c\u6211\u4eec\u5df2\u7ecf\u6210\u529f\u8bbf\u95ee\u5230\u4e86 10.0.0.31\u3002<\/p>\n<pre class=\"post-pre\"><code>64 bytes from 10.0.0.31: icmp_seq=42 ttl=64 time=0.467 ms\r\n64 bytes from 10.0.0.31: icmp_seq=43 ttl=64 time=0.446 ms\r\n64 bytes from 10.0.0.31: icmp_seq=44 ttl=64 time=0.355 ms\r\n64 bytes from 10.0.0.31: icmp_seq=45 ttl=64 time=0.447 ms\r\n64 bytes from 10.0.0.31: icmp_seq=46 ttl=64 time=0.365 ms\r\n64 bytes from 10.0.0.31: icmp_seq=47 ttl=64 time=0.435 ms\r\n64 bytes from 10.0.0.31: icmp_seq=48 ttl=64 time=0.372 ms\r\n64 bytes from 10.0.0.31: icmp_seq=49 ttl=64 time=0.369 ms\r\n64 bytes from 10.0.0.31: icmp_seq=50 ttl=64 time=0.357 ms\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u65f6\u5019\uff0chaproxy2\u7684IP\u5df2\u7ecf\u88ab\u6539\u53d8\u4e86\u3002keepalived\u6b63\u5728\u8fd0\u884c\uff0c\u5e76\u4e14haproxy2\u62e5\u670910.0.0.31\u7684IP\u5730\u5740\u3002<\/p>\n<pre class=\"post-pre\"><code>3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000\r\n    inet 10.0.0.23\/24 brd 10.0.0.255 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n    inet 10.0.0.31\/32 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n<\/code><\/pre>\n<h2>\u901a\u8fc7 HAProxy \u4ece Redis Client \u8fde\u63a5\u5230 Redis Server<\/h2>\n<p>\u5373\u4f7f\u5173\u95ed\u4e86haproxy1\uff0c\u4ecd\u7136\u53ef\u4ee5\u7ee7\u7eed\u8fde\u63a5\u5230Redis\u670d\u52a1\u5668\u3002<\/p>\n<pre class=\"post-pre\"><code>redisclient:~# redis-cli -h vlan-haproxy --tls --cacert redis-nj_ca.crt\r\nvlan-haproxy:6379&gt; role\r\n1) \"master\"\r\n2) (integer) 407029129\r\n3) 1) 1) \"10.0.0.13\"\r\n      2) \"6379\"\r\n      3) \"407029129\"\r\n   2) 1) \"10.0.0.11\"\r\n      2) \"6379\"\r\n      3) \"407029129\"\r\nvlan-haproxy:6379&gt; &lt;- \u3053\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067 haproxy1 \u3092 shutdown\r\nvlan-haproxy:6379&gt; get scott\u3000\r\n\"tiger\"\r\nvlan-haproxy:6379&gt; role\r\n1) \"master\"\r\n2) (integer) 407050682\r\n3) 1) 1) \"10.0.0.13\"\r\n      2) \"6379\"\r\n      3) \"407050416\"\r\n   2) 1) \"10.0.0.11\"\r\n      2) \"6379\"\r\n      3) \"407050416\"\r\n<\/code><\/pre>\n<h2>\u91cd\u65b0\u555f\u52d5\u4e4b\u5f8c<\/h2>\n<p>\u7531\u4e8ehaproxy1\u7684\u542f\u52a8\uff0c\u5bfc\u81f4\u65e0\u6cd5\u4ecehaproxy2\u7684IP\u770b\u523010.0.0.31\u3002<\/p>\n<pre class=\"post-pre\"><code>@haproxy2:\/etc\/keepalived# ip -4 a show dev eth0\r\n3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000\r\n    inet 10.0.0.23\/24 brd 10.0.0.255 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n<\/code><\/pre>\n<p>\u901a\u8fc7haproxy2\u7684keepalived.conf\u4e2d\u7684\u4ee5\u4e0b\u884c\u914d\u7f6e\u5224\u65ad\uff0chaproxy1\u7684\u914d\u7f6e\u503c\u4f18\u5148\u7ea7\u8f83\u4f4e\uff0c\u5e76\u5c06IP\u6743\u9650\u6388\u4e88haproxy1\u3002<\/p>\n<pre class=\"post-pre\"><code>    priority 99\r\n<\/code><\/pre>\n<p>\u767b\u5f55\u5230haproxy1\u5e76\u786e\u8ba4IP\u5730\u5740\u3002<\/p>\n<pre class=\"post-pre\"><code>@haproxy1:~# ip -4 a show dev eth0\r\n3: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc mq state UP group default qlen 1000\r\n    inet 10.0.0.21\/24 brd 10.0.0.255 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n    inet 10.0.0.31\/32 scope global eth0\r\n       valid_lft forever preferred_lft forever\r\n<\/code><\/pre>\n<h2>\/var\/log\/syslog \u53ef\u4ee5\u88ab\u8868\u8fbe\u4e3a &#8220;\u7cfb\u7edf\u65e5\u5fd7&#8221; \u6216\u8005 &#8220;\u7cfb\u7edf\u65e5\u5fd7\u6587\u4ef6&#8221;\u3002<\/h2>\n<p>keepalived \u7684\u65e5\u5fd7\u4f1a\u88ab\u8bb0\u5f55\u5728 \/var\/log\/syslog \u4e2d\u3002\u5f53\u67e5\u770b haproxy1\/2 \u7684\u65e5\u5fd7\u65f6\uff0c\u5206\u522b\u53ef\u4ee5\u770b\u5230 Master \u548c BACKUP \u7684\u72b6\u6001\u5207\u6362\u3002<\/p>\n<h3>HAProxy2\u5c31\u597d\u4e86\u3002<\/h3>\n<pre class=\"post-pre\"><code>Jul 19 16:21:00 haproxy2 Keepalived_vrrp[44007]: (Instance1) Entering MASTER STATE\r\nJul 19 16:23:55 haproxy2 Keepalived_vrrp[44007]: (Instance1) Master received advert from 10.0.0.21 with higher priority 100, ours 99\r\nJul 19 16:23:55 haproxy2 Keepalived_vrrp[44007]: (Instance1) Entering BACKUP STATE\r\nJul 19 16:39:16 haproxy2 Keepalived_vrrp[44007]: (Instance1) Entering MASTER STATE\r\nJul 19 16:41:59 haproxy2 Keepalived_vrrp[44007]: (Instance1) Master received advert from 10.0.0.21 with higher priority 100, ours 99\r\nJul 19 16:41:59 haproxy2 Keepalived_vrrp[44007]: (Instance1) Entering BACKUP STATE\r\n<\/code><\/pre>\n<h3>haproxy1 \u53f0\u670d\u52a1\u5668<\/h3>\n<pre class=\"post-pre\"><code>Jul 19 16:20:59 haproxy1 Keepalived[528]: Stopping\r\nJul 19 16:20:59 haproxy1 systemd[1]: Stopping Keepalive Daemon (LVS and VRRP)...\r\nJul 19 16:23:50 haproxy1 systemd[1]: Starting Keepalive Daemon (LVS and VRRP)...\r\nJul 19 16:23:51 haproxy1 Keepalived[541]: Starting Keepalived v2.2.4 (08\/21,2021)\r\nJul 19 16:23:51 haproxy1 Keepalived[541]: Running on Linux 6.2.9-x86_64-linode160 #1 SMP PREEMPT_DYNAMIC Wed Apr  5 15:30:32 EDT 2023 (built for Linux 5.15.27)\r\nJul 19 16:23:51 haproxy1 Keepalived[541]: Command line: '\/usr\/sbin\/keepalived' '--dont-fork'\r\nJul 19 16:23:51 haproxy1 Keepalived[541]: Configuration file \/etc\/keepalived\/keepalived.conf\r\nJul 19 16:23:51 haproxy1 Keepalived[541]: NOTICE: setting config option max_auto_priority should result in better keepalived performance\r\nJul 19 16:23:51 haproxy1 Keepalived[541]: Starting VRRP child process, pid=550\r\nJul 19 16:23:51 haproxy1 Keepalived[541]: Startup complete\r\nJul 19 16:23:51 haproxy1 systemd[1]: Started Keepalive Daemon (LVS and VRRP).\r\nJul 19 16:23:51 haproxy1 Keepalived_vrrp[550]: (Instance1) Entering BACKUP STATE (init)\r\nJul 19 16:23:52 haproxy1 Keepalived_vrrp[550]: (Instance1) received lower priority (99) advert from 10.0.0.23 - discarding\r\nJul 19 16:23:53 haproxy1 Keepalived_vrrp[550]: (Instance1) received lower priority (99) advert from 10.0.0.23 - discarding\r\nJul 19 16:23:54 haproxy1 Keepalived_vrrp[550]: (Instance1) received lower priority (99) advert from 10.0.0.23 - discarding\r\nJul 19 16:23:55 haproxy1 Keepalived_vrrp[550]: (Instance1) Entering MASTER STATE\r\nJul 19 16:39:16 haproxy1 Keepalived[541]: Stopping\r\nJul 19 16:39:16 haproxy1 systemd[1]: Stopping Keepalive Daemon (LVS and VRRP)...\r\nJul 19 16:41:55 haproxy1 systemd[1]: Starting Keepalive Daemon (LVS and VRRP)...\r\nJul 19 16:41:55 haproxy1 Keepalived[537]: Starting Keepalived v2.2.4 (08\/21,2021)\r\nJul 19 16:41:55 haproxy1 Keepalived[537]: Running on Linux 6.2.9-x86_64-linode160 #1 SMP PREEMPT_DYNAMIC Wed Apr  5 15:30:32 EDT 2023 (built for Linux 5.15.27)\r\nJul 19 16:41:55 haproxy1 Keepalived[537]: Command line: '\/usr\/sbin\/keepalived' '--dont-fork'\r\nJul 19 16:41:55 haproxy1 Keepalived[537]: Configuration file \/etc\/keepalived\/keepalived.conf\r\nJul 19 16:41:55 haproxy1 Keepalived[537]: NOTICE: setting config option max_auto_priority should result in better keepalived performance\r\nJul 19 16:41:55 haproxy1 Keepalived[537]: Starting VRRP child process, pid=547\r\nJul 19 16:41:56 haproxy1 Keepalived[537]: Startup complete\r\nJul 19 16:41:56 haproxy1 systemd[1]: Started Keepalive Daemon (LVS and VRRP).\r\nJul 19 16:41:56 haproxy1 Keepalived_vrrp[547]: (Instance1) Entering BACKUP STATE (init)\r\nJul 19 16:41:56 haproxy1 Keepalived_vrrp[547]: (Instance1) received lower priority (99) advert from 10.0.0.23 - discarding\r\nJul 19 16:41:57 haproxy1 Keepalived_vrrp[547]: (Instance1) received lower priority (99) advert from 10.0.0.23 - discarding\r\nJul 19 16:41:58 haproxy1 Keepalived_vrrp[547]: (Instance1) received lower priority (99) advert from 10.0.0.23 - discarding\r\nJul 19 16:41:59 haproxy1 Keepalived_vrrp[547]: (Instance1) Entering MASTER STATE\r\n<\/code><\/pre>\n<p>\u6700\u540e\u6700\u7ec8\u4f1a\u56de\u5230\u539f\u672c\u7684\u72b6\u6001\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/99-0.jpeg\" alt=\"redis-after-haproxy1-reboot.jpg\" \/><\/div>\n<h1>\u603b\u7ed3<\/h1>\n<p>Redis Sentinel \u662f Redis \u7684\u9ad8\u53ef\u7528\u6027\u89e3\u51b3\u65b9\u6848\u3002\u901a\u8fc7\u4f7f\u7528 VLAN\uff0c\u53ef\u4ee5\u6784\u5efa\u5b89\u5168\u7684\u7f51\u7edc\u3002\u7136\u540e\uff0c\u901a\u8fc7\u4f7f\u7528 Keepalived\uff0c\u5728\u63d0\u9ad8\u6574\u4f53\u4fbf\u5229\u6027\u7684\u540c\u65f6\uff0c\u53ef\u4ee5\u6784\u5efa HAProxy \u7684\u9ad8\u53ef\u7528\u6027\u73af\u5883\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Redis Sentinel\u662fRedis\u7684\u9ad8\u53ef\u7528\u6027\u89e3\u51b3\u65b9\u6848\u3002\u4e3a\u4e86\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u9ad8\u53ef\u7528\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528\u5197\u4f59\u5316\u7684HAP [&hellip;]<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33745","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728akamai\u4e2d\uff0c\u901a\u8fc7vlan\u548ckeepalived\u6765\u5b9e\u73b0redis-sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316\" \/>\n<meta property=\"og:description\" content=\"Redis Sentinel\u662fRedis\u7684\u9ad8\u53ef\u7528\u6027\u89e3\u51b3\u65b9\u6848\u3002\u4e3a\u4e86\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u9ad8\u53ef\u7528\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528\u5197\u4f59\u5316\u7684HAP [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5728akamai\u4e2d\uff0c\u901a\u8fc7vlan\u548ckeepalived\u6765\u5b9e\u73b0redis-sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-13T14:43:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T18:02:32+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/5-0.jpeg\" \/>\n<meta name=\"author\" content=\"\u6e05, \u5b87\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u5b87\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/\",\"name\":\"\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-09-13T14:43:09+00:00\",\"dateModified\":\"2024-05-03T18:02:32+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e\",\"name\":\"\u6e05, \u5b87\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u5b87\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728akamai\u4e2d\uff0c\u901a\u8fc7vlan\u548ckeepalived\u6765\u5b9e\u73b0redis-sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316","og_description":"Redis Sentinel\u662fRedis\u7684\u9ad8\u53ef\u7528\u6027\u89e3\u51b3\u65b9\u6848\u3002\u4e3a\u4e86\u786e\u4fdd\u5e94\u7528\u7a0b\u5e8f\u7684\u9ad8\u53ef\u7528\u6027\uff0c\u53ef\u4ee5\u4f7f\u7528\u5197\u4f59\u5316\u7684HAP [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5728akamai\u4e2d\uff0c\u901a\u8fc7vlan\u548ckeepalived\u6765\u5b9e\u73b0redis-sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-13T14:43:09+00:00","article_modified_time":"2024-05-03T18:02:32+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d196c37434c4406c092e9\/5-0.jpeg"}],"author":"\u6e05, \u5b87","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u5b87","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/","name":"\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-09-13T14:43:09+00:00","dateModified":"2024-05-03T18:02:32+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5728Akamai\u4e2d\uff0c\u901a\u8fc7VLAN\u548ckeepalived\u6765\u5b9e\u73b0Redis Sentinel\u7684\u5b89\u5168\u548c\u5197\u4f59\u5316"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/1a6ecd3d914d22a5ac32791ffc1fbd8e","name":"\u6e05, \u5b87","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b2016c18459a605fc469c7566608f5686491baa112d0871ee613f61b7210565?s=96&d=mm&r=g","caption":"\u6e05, \u5b87"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%9c%a8akamai%e4%b8%ad%ef%bc%8c%e9%80%9a%e8%bf%87vlan%e5%92%8ckeepalived%e6%9d%a5%e5%ae%9e%e7%8e%b0redis-sentinel%e7%9a%84%e5%ae%89%e5%85%a8%e5%92%8c%e5%86%97%e4%bd%99%e5%8c%96%e3%80%82\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=33745"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33745\/revisions"}],"predecessor-version":[{"id":95443,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33745\/revisions\/95443"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=33745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=33745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=33745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}