{"id":33715,"date":"2024-01-10T14:20:00","date_gmt":"2023-07-17T16:34:00","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/"},"modified":"2024-05-04T17:42:44","modified_gmt":"2024-05-04T09:42:44","slug":"%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/","title":{"rendered":"\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4"},"content":{"rendered":"<h1>\u7ffb\u8bd1:<br \/>\n\u4e3a\u4e86\u4ec0\u4e48<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">redis\u306f3\u53f0\u4ee5\u4e0a\u3042\u308c\u3070redis\u3060\u3051\u3067\u5197\u9577\u5316\u69cb\u6210\u304c\u7d44\u3081\u307e\u3059\u304c\u8af8\u4e8b\u60c5\u306b\u3088\u308a2\u30ce\u30fc\u30c9\u3067\u69cb\u6210\u3057\u305f\u3044\u5834\u5408\u306e\u53c2\u8003\u306b\u306a\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">pacemaker\u306e2\u7cfb\u306e\u8a18\u4e8b\u304c\u5c11\u306a\u3044\u306a\u3042\u3068\u601d\u3063\u3066\u66f8\u304d\u307e\u3057\u305f\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u7d76\u8cdb\u672c\u756a\u904b\u7528\u4e2d\u306e\u69cb\u6210\u3067\u3059\u3002<\/ul>\n<h1>\u5f62\u6210<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">2\u30ce\u30fc\u30c9\u3067\u66f8\u304d\u8fbc\u307f\u7528\u306e\u30ce\u30fc\u30c9(Master)\u3068\u53c2\u7167\u7528\u306e\u30ce\u30fc\u30c9(Slave)\u3092\u6e96\u5099\u3059\u308b\u3002\u30ec\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3055\u305b\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u66f8\u304d\u8fbc\u307f\u7528\u306e\u4eee\u60f3IP\u3092\u8a2d\u3051\u3066\u969c\u5bb3\u691c\u77e5\u6642\u306b\u30ce\u30fc\u30c9\u306e\u5f79\u5272\u3092\u4ea4\u4ee3\u3055\u305b\u3064\u3064\u3001\u4eee\u60f3IP\u3092\u79fb\u52d5\u3055\u305b\u308b\u3002\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304b\u3089\u898b\u305f\u3089\u5e38\u306b\u4eee\u60f3IP\u3060\u3051\u898b\u3066\u3044\u308c\u3070\u826f\u3044\u72b6\u614b\u306b\u3059\u308b\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u3068\u3066\u3082\u30b7\u30f3\u30d7\u30eb\u306a\u56f3\u3067\u3059\u304c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u69cb\u6210\u3092\u60f3\u5b9a\u3002<\/ul>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d18ee37434c4406c07c99\/4-0.png\" alt=\"Redis-Pacemaker.drawio (1).png\" \/><\/div>\n<h1>\u8d77\u640f\u5668\u7684\u51c6\u5907\u3002<\/h1>\n<ul class=\"post-ul\">\u307e\u305a\u306fpacemaker\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u6e96\u5099\u3067\u3059\u3002<\/ul>\n<h2>\u5b89\u88c5<\/h2>\n<p>pcs,pacemaker,fence-agents-all\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3002<br \/>\npcs\u306fpacemaker\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3002<\/p>\n<pre class=\"post-pre\"><code>## \u591a\u5206HighAvailability\u3067\u30a4\u30b1\u308b\u3068\u601d\u3046\u3002\r\ndnf install pcs pacemaker fence-agents-all --enablerepo=HighAvailability\r\n\r\n## \u30ea\u30dd\u30b8\u30c8\u30ea\u304cha\u3067\u5b9a\u7fa9\u3055\u308c\u3066\u308b\u5834\u5408\u3082\u3042\u308b\u3002\r\ndnf install pcs pacemaker fence-agents-all --enablerepo=ha\r\n<\/code><\/pre>\n<h2>\u8bbe\u5b9a<\/h2>\n<ul class=\"post-ul\">\u4e8b\u524d\u30c1\u30a7\u30c3\u30af\u3067firewalld\u304c\u7a3c\u50cd\u3057\u3066\u308b\u304b\u30c1\u30a7\u30c3\u30af\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\">## \u4e8b\u524d\u306e\u78ba\u8a8d<\/span>\r\n<span class=\"o\">[<\/span>root@redis1 ~]# systemctl status firewalld\r\n\r\n\u25cf firewalld.service - firewalld - dynamic firewall daemon\r\n   Loaded: loaded <span class=\"o\">(<\/span>\/usr\/lib\/systemd\/system\/firewalld.service<span class=\"p\">;<\/span> disabled<span class=\"p\">;<\/span> vendor <span class=\"o\">&gt;<\/span>\r\n   Active: inactive <span class=\"o\">(<\/span>dead<span class=\"o\">)<\/span>\r\n     Docs: man:firewalld<span class=\"o\">(<\/span>1<span class=\"o\">)<\/span>\r\n\r\n<span class=\"c\">## firewalld\u8d77\u52d5<\/span>\r\n<span class=\"o\">[<\/span>root@redis1 ~]# systemctl start firewalld.service\r\n\r\n<span class=\"c\">## \u81ea\u52d5\u8d77\u52d5\u306e\u8a2d\u5b9a<\/span>\r\n<span class=\"o\">[<\/span>root@redis1 ~]# systemctl <span class=\"nb\">enable <\/span>firewalld\r\n\r\nCreated symlink \/etc\/systemd\/system\/dbus-org.fedoraproject.FirewallD1.service \u2192 \/usr\/lib\/systemd\/system\/firewalld.service.\r\nCreated symlink \/etc\/systemd\/system\/multi-user.target.wants\/firewalld.service \u2192 \/usr\/lib\/systemd\/system\/firewalld.service.\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u5bfe\u8c61\u30de\u30b7\u30f3\u305d\u308c\u305e\u308c\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3002<\/ul>\n<pre class=\"post-pre\"><code>firewall-cmd <span class=\"nt\">--permanent<\/span> <span class=\"nt\">--add-service<\/span><span class=\"o\">=<\/span>high-availability\r\nfirewall-cmd <span class=\"nt\">--add-service<\/span><span class=\"o\">=<\/span>high-availability\r\n<\/code><\/pre>\n<p>\u5982\u679c\u663e\u793a\u51fa &#8220;FirewallD is not running&#8221;\uff0c\u8bf7\u542f\u52a8 firewalld\u3002<\/p>\n<p>\u53c2\u8003\u7684\u552f\u4e00\u9009\u9879<\/p>\n<h2>\u6267\u884cpcsd\u670d\u52a1\u7684\u542f\u52a8\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">pacemaker\u306edeamon\u3067\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30ce\u30fc\u30c9\u305d\u308c\u305e\u308c\u3067\u5b9f\u884c\u3059\u308b\u3053\u3068\u3002<\/ul>\n<pre class=\"post-pre\"><code>systemctl start pcsd.service\r\nsystemctl enable pcsd.service\r\n<\/code><\/pre>\n<h2>\u8bbe\u5b9apacemaker\u6267\u884c\u7528\u6237\u7684\u5bc6\u7801\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">pacemaker\u306e\u5b9f\u884c\u30e6\u30fc\u30b6\u30fc\u3068\u306a\u308bhacluster\u30e6\u30fc\u30b6\u30fc\u306e\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>dnf(yum)\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5834\u5408\u306b\u306f\u81ea\u52d5\u3067\u30e6\u30fc\u30b6\u30fc\u4f5c\u6210\u3055\u308c\u3066\u3044\u308b\u306e\u3067cat \/etc\/passwd\u7b49\u3067\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3002<\/p>\n<pre class=\"post-pre\"><code>passwd hacluster\r\n<\/code><\/pre>\n<h2>\u5728\u96c6\u7fa4\u4e2d\u8fdb\u884c\u8eab\u4efd\u9a8c\u8bc1<\/h2>\n<ul class=\"post-ul\">\u8a2d\u5b9a\u3057\u305fhacluster\u30e6\u30fc\u30b6\u30fc\u3092\u8a8d\u8a3c\u3057\u3066\u76f8\u4e92\u306b\u901a\u4fe1\u53ef\u80fd\u306b\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\">## \u30af\u30e9\u30b9\u30bf\u30b5\u30fc\u30d0\u306e\u8a8d\u8a3c\u8a2d\u5b9a [\u7247\u7cfb(reids1)\u3067\u5b9f\u65bd]<\/span>\r\n\r\n<span class=\"o\">[<\/span>root@redis1 ~]# pcs host auth reids_test1 <span class=\"nv\">addr<\/span><span class=\"o\">=<\/span>192.168.111.45 redis_test2 <span class=\"nv\">addr<\/span><span class=\"o\">=<\/span>192.168.111.46\r\nUsername: hacluster\r\nPassword:\r\nreids_test1: Authorized\r\nreids_test2: Authorized\r\n<\/code><\/pre>\n<h2>\u521b\u5efa\u96c6\u7fa4<\/h2>\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\u30fc\u306b\u30ce\u30fc\u30c9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30ce\u30fc\u30c9\u8ffd\u52a0\u6642\u306bIP\u30a2\u30c9\u30ec\u30b9\u304c\u5fc5\u8981\u306b\u306a\u308b\u306e\u3067IP\u30a2\u30c9\u30ec\u30b9\u3092\u78ba\u8a8d\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/ul>\n<pre class=\"post-pre\"><code>[root@redis1 ~]# pcs cluster setup redis-cluster redis1 addr=192.168.111.45 redis2 addr=192.168.111.46\r\n\r\nDestroying cluster on hosts: 'redis1', 'redis2'...\r\nredis1: Successfully destroyed cluster\r\nredis2: Successfully destroyed cluster\r\nRequesting remove 'pcsd settings' from 'redis1', 'redis2'\r\nredis1: successful removal of the file 'pcsd settings'\r\nmp-cache02: successful removal of the file 'pcsd settings'\r\nSending 'corosync authkey', 'pacemaker authkey' to 'redis1', 'redis2'\r\nredis1: successful distribution of the file 'corosync authkey'\r\nredis1: successful distribution of the file 'pacemaker authkey'\r\nredis2: successful distribution of the file 'corosync authkey'\r\nredis2: successful distribution of the file 'pacemaker authkey'\r\nSending 'corosync.conf' to 'redis1', 'redis2'\r\nredis1: successful distribution of the file 'corosync.conf'\r\nredis2: successful distribution of the file 'corosync.conf'\r\nCluster has been successfully set up.\r\n<\/code><\/pre>\n<h2>\u542f\u52a8\u96c6\u7fa4<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\u30fc\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30af\u30e9\u30b9\u30bf\u30fc\u5168\u4f53\u3092\u8d77\u52d5\u3059\u308b\u5834\u5408\u306b\u306f&#8211;all\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4ed8\u3051\u308b\u3068\u5168\u30ce\u30fc\u30c9\u3067\u30af\u30e9\u30b9\u30bf\u30fc\u8d77\u52d5\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>[root@redis1 ~]# pcs cluster start\r\nStarting Cluster...\r\n<\/code><\/pre>\n<p>pcs config\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u3059\u308b\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u51fa\u529b\u304c\u5f97\u3089\u308c\u308b\uff08\u4ee5\u4e0b2\u30ce\u30fc\u30c9\u306e\u5834\u5408\uff09<\/p>\n<pre class=\"post-pre\"><code><span class=\"o\">[<\/span>root@redis1 ~]# pcs config\r\nCluster Name: redis_cluster\r\nCorosync Nodes:\r\n reids1 redis2\r\nPacemaker Nodes:\r\n redis1 reids2\r\n\r\nResources:\r\n\r\nStonith Devices:\r\nFencing Levels:\r\n\r\nLocation Constraints:\r\nOrdering Constraints:\r\nColocation Constraints:\r\nTicket Constraints:\r\n\r\nAlerts:\r\n No alerts defined\r\n\r\nResources Defaults:\r\n  No defaults <span class=\"nb\">set\r\n<\/span>Operations Defaults:\r\n  No defaults <span class=\"nb\">set\r\n\r\n<\/span>Cluster Properties:\r\n cluster-infrastructure: corosync\r\n cluster-name: redis_test_cluster\r\n dc-version: 2.1.0-8.el8-7c3f660707\r\n have-watchdog: <span class=\"nb\">false\r\n\r\n<\/span>Tags:\r\n No tags defined\r\n\r\nQuorum:\r\n  Options:\r\n<\/code><\/pre>\n<h2>STONITH\u53ef\u4ee5\u7ffb\u8bd1\u4e3a\u201c\u65ad\u7f51\u98ce\u9669\u63a2\u6d4b\u548c\u9694\u79bb\u201d\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30ce\u30fc\u30c9\u9593\u3067\u758e\u901a\u53d6\u308c\u306a\u304b\u3063\u305f\u6642\u306e\u6319\u52d5\u306a\u3069\u3092\u6c7a\u3081\u308b\u306e\u306b\u4f7f\u3044\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Master\u304c\u6b63\u5e38\u3060\u3063\u305f\u3089\u3001\u30d5\u30a7\u30a4\u30eb\u30aa\u30fc\u30d0\u30fc\u6642\u306b\u30af\u30e9\u30b9\u30bf\u30fc\u304b\u3089\u5916\u308c\u305f\u30ce\u30fc\u30c9\u306f\u624b\u52d5\u3067\u306e\u8abf\u67fb\u3068\u5fa9\u65e7\u3092\u884c\u3046\u60f3\u5b9a\u306a\u306e\u3067\u4eca\u56de\u306fstonith\u3092\u7121\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/ul>\n<h3>\u628a\u5b83\u65e0\u6548\u5316<\/h3>\n<pre class=\"post-pre\"><code>pcs property set stonith-enabled=false\r\n<\/code><\/pre>\n<h2>\u6838\u5b9ecorosync\u7684\u8bbe\u7f6e<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4e00\u5fdc\u898b\u3066\u304a\u304d\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>\/etc\/corosync\/corosync.conf\u3092\u78ba\u8a8d<\/p>\n<pre class=\"post-pre\"><code><span class=\"o\">[<\/span>root@redis1 ~]# <span class=\"nb\">cat<\/span> \/etc\/corosync\/corosync.conf\r\ntotem <span class=\"o\">{<\/span>\r\n    version: 2\r\n    cluster_name: redis_test_cluster\r\n    transport: knet\r\n    crypto_cipher: aes256\r\n    crypto_hash: sha256\r\n<span class=\"o\">}<\/span>\r\n\r\nnodelist <span class=\"o\">{<\/span>\r\n    node <span class=\"o\">{<\/span>\r\n        ring0_addr: 192.168.111.45\r\n        name: redis1\r\n        nodeid: 1\r\n    <span class=\"o\">}<\/span>\r\n\r\n    node <span class=\"o\">{<\/span>\r\n        ring0_addr: 192.168.111.46\r\n        name: redis2\r\n        nodeid: 2\r\n    <span class=\"o\">}<\/span>\r\n<span class=\"o\">}<\/span>\r\n\r\nquorum <span class=\"o\">{<\/span>\r\n    provider: corosync_votequorum\r\n    two_node: 1\r\n<span class=\"o\">}<\/span>\r\n\r\nlogging <span class=\"o\">{<\/span>\r\n    to_logfile: <span class=\"nb\">yes\r\n    <\/span>logfile: \/var\/log\/cluster\/corosync.log\r\n    to_syslog: <span class=\"nb\">yes\r\n    <\/span>timestamp: on\r\n<span class=\"o\">}<\/span>\r\n<\/code><\/pre>\n<h1>\u5411\u8d77\u640f\u5668\u6dfb\u52a0\u8d44\u6e90<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">pacemaker\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u30ce\u30fc\u30c9\u3067pacemaker\u304c\u5236\u5fa1\u3059\u308b\u5358\u4f4d\u3092\u30ea\u30bd\u30fc\u30b9\u3068\u547c\u3073\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">pacemaker\u306b\u4f55\u3092\u3069\u3046\u3044\u3046\u624b\u9806\u3067\u7ba1\u7406\u3055\u305b\u308b\u306e\u304b\u3092\u6559\u3048\u308b\u4f5c\u696d\u3067\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u4eee\u60f3IP\u3068redis\u306e\u30ea\u30bd\u30fc\u30b9\u3092\u8ffd\u52a0\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/ul>\n<h2>\u6dfb\u52a0\u865a\u62dfIP<\/h2>\n<h3>\u4e8b\u524d\u51c6\u5907<\/h3>\n<ul class=\"post-ul\">nic\u306e\u78ba\u8a8d\u3092ip a\u3067\u78ba\u8a8d\u3057\u3066\u304a\u304f\u3002<\/ul>\n<pre class=\"post-pre\"><code>[n-kashimoto@redis1 ~]$ sudo ip a\r\n1: lo: &lt;LOOPBACK,UP,LOWER_UP&gt; mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000\r\n    link\/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00\r\n    inet 127.0.0.1\/8 scope host lo\r\n       valid_lft forever preferred_lft forever\r\n    inet6 ::1\/128 scope host\r\n       valid_lft forever preferred_lft forever\r\n2: eno8303: &lt;BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP&gt; mtu 1500 qdisc mq master nm-bond state UP group default qlen 1000\r\n    link\/ether d0:8e:79:ca:60:99 brd ff:ff:ff:ff:ff:ff permaddr d0:8e:79:ca:60:98\r\n3: eno8403: &lt;BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP&gt; mtu 1500 qdisc mq master nm-bond state UP group default qlen 1000\r\n    link\/ether d0:8e:79:ca:60:99 brd ff:ff:ff:ff:ff:ff\r\n4: nm-bond: &lt;BROADCAST,MULTICAST,MASTER,UP,LOWER_UP&gt; mtu 1500 qdisc noqueue state UP group default qlen 1000\r\n    link\/ether d0:8e:79:ca:60:99 brd ff:ff:ff:ff:ff:ff\r\n    inet 192.168.111.45\/24 brd 192.168.111.255 scope global noprefixroute nm-bond\r\n       valid_lft forever preferred_lft forever\r\n<\/code><\/pre>\n<h3>\u8bbe\u5b9a<\/h3>\n<ul class=\"post-ul\">nic\u306b\u5bfe\u3057\u3066\u4eee\u60f3IP\u3092\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>[root@redis1 ~]# pcs resource create VirtualIP ocf:heartbeat:IPaddr2 ip=192.168.111.44 cidr_netmask=24 nic=nm-bond op monitor interval=10s\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u78ba\u8a8d<\/ul>\n<p>\u6211\u4f1a\u5728PCS\u8d44\u6e90\u914d\u7f6e\u4e2d\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<pre class=\"post-pre\"><code>[root@redis1 ~]# pcs resource config\r\n Resource: VirtualIP (class=ocf provider=heartbeat type=IPaddr2)\r\n  Attributes: cidr_netmask=24 ip=192.168.111.44 nic=m-bond\r\n  Operations: monitor interval=10s (VirtualIP-monitor-interval-10s)\r\n              start interval=0s timeout=20s (VirtualIP-start-interval-0s)\r\n              stop interval=0s timeout=20s (VirtualIP-stop-interval-0s)\r\n<\/code><\/pre>\n<h2>\u6dfb\u52a0Redis\u8d44\u6e90<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">redis\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u8d77\u52d5\u30fb\u7d42\u4e86\u306fpacemaker\u304c\u5236\u5fa1\u3059\u308b\u306e\u3067systemd\u3067disable\u306b\u3057\u3066\u304a\u304f\u3053\u3068<\/ul>\n<h3>\u8bbe\u5b9a<\/h3>\n<ul class=\"post-ul\">\u30ea\u30bd\u30fc\u30b9\u30a8\u30fc\u30b8\u30a7\u30f3\u30c8\u306focf:heartbeat:redis\u3092\u4f7f\u3044\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>pcs resource create redis-clone ocf:heartbeat:redis op start timeout=300s op monitor interval=5s op monitor role=Master interval=3s op monitor role=Slave interval=15s promotable\r\n<\/code><\/pre>\n<h2>\u52a0\u4ee5\u9650\u5236\u3002<\/h2>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4eee\u60f3IP\u306e\u30ea\u30bd\u30fc\u30b9\u304c\u7570\u306a\u308b\u30ea\u30bd\u30fc\u30b9\u306eredis-clone\u3068\u9023\u52d5\u3057\u3066\u52d5\u304f\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3002\u4eee\u60f3IP\u304credis\u306emaster\u306e\u30ce\u30fc\u30c9\u306b\u3044\u306a\u3044\u3068readonly\u306eslave\u306b\u3064\u306a\u304c\u3063\u3066\u3057\u307e\u3046\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">redis-clone\u306e\u6607\u683c\u304c\u7d42\u308f\u308b\u524d\u306b\u4eee\u60f3IP\u304c\u52d5\u304f\u3068\u610f\u56f3\u3057\u306a\u3044\u30c8\u30e9\u30f3\u30b6\u30af\u30b7\u30e7\u30f3\u304c\u6d41\u308c\u308b\u306e\u3067\u56f0\u308b\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"c\"># \u5ff5\u306e\u70ba\u306a\u3093\u304b\u3042\u3063\u305f\u3089\u524a\u9664\u3057\u3066\u304a\u304f<\/span>\r\n<span class=\"o\">[<\/span>root@redis1 ~]# pcs constraint colocation remove VirtualIP redis-clone\r\n<span class=\"c\"># \u3053\u3053\u304b\u3089\u8ffd\u52a0<\/span>\r\n<span class=\"o\">[<\/span>root@redis1 ~]# pcs constraint colocation add redis-clone with VirtualIP INFINITY\r\n<span class=\"c\"># \u78ba\u8a8d<\/span>\r\n<span class=\"o\">[<\/span>root@redis1 ~]# pcs constraint\r\nLocation Constraints:\r\nOrdering Constraints:\r\n  start VirtualIP <span class=\"k\">then <\/span>start redis-clone <span class=\"o\">(<\/span>kind:Mandatory<span class=\"o\">)<\/span>\r\nColocation Constraints:\r\n  redis-clone with VirtualIP <span class=\"o\">(<\/span>score:INFINITY<span class=\"o\">)<\/span>\r\nTicket Constraints:\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u3061\u3083\u3093\u3068Master\u3068\u540c\u3058\u30ce\u30fc\u30c9\u306b\u79fb\u52d5\u3059\u308b\u3088\u3046\u306b\u5909\u66f4\u3059\u308b\u3002<\/ul>\n<pre class=\"post-pre\"><code>pcs constraint colocation add VirtualIP with master redis-clone INFINITY\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u78ba\u8a8d\u3059\u308b\u3068with-rsc-role:Master\u3068\u51fa\u529b\u3055\u308c\u3066\u3044\u308b\u306e\u304c\u5206\u304b\u308a\u307e\u3059\u306d\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"o\">[<\/span>root@redis1 ~]# pcs constraint\r\nLocation Constraints:\r\nOrdering Constraints:\r\nColocation Constraints:\r\n  VirtualIP with redis-clone <span class=\"o\">(<\/span>score:INFINITY<span class=\"o\">)<\/span> <span class=\"o\">(<\/span>rsc-role:Started<span class=\"o\">)<\/span> <span class=\"o\">(<\/span>with-rsc-role:Master<span class=\"o\">)<\/span>\r\nTicket Constraints:\r\n<\/code><\/pre>\n<h1>\u91cd\u65b0\u542f\u52a8<\/h1>\n<ul class=\"post-ul\">\u6ec5\u591a\u306b&#8211;all\u306f\u4f7f\u308f\u306a\u3044\u306e\u3067\u30af\u30e9\u30b9\u30bf\u30fc\u5168\u4f53\u3092\u518d\u8d77\u52d5\u3059\u308b\u6642\u3050\u3089\u3044\u4f7f\u3046<\/ul>\n<pre class=\"post-pre\"><code>pcs cluster stop <span class=\"nt\">--all<\/span>\r\npcs cluster start <span class=\"nt\">--all<\/span>\r\n<\/code><\/pre>\n<p>\u8bf7\u4f7f\u7528redis-benchmark\u6216redis-cli\u7b49\u5de5\u5177\u5bf9VirtualIP\u8fdb\u884c\u6d4b\u8bd5\u5e76\u786e\u8ba4\u5176\u884c\u4e3a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7ffb\u8bd1: \u4e3a\u4e86\u4ec0\u4e48 redis\u306f3\u53f0\u4ee5\u4e0a\u3042\u308c\u3070redis\u3060\u3051\u3067\u5197\u9577\u5316\u69cb\u6210\u304c\u7d44\u3081\u307e\u3059\u304c\u8af8\u4e8b\u60c5\u306b\u3088\u308a2\u30ce\u30fc\u30c9\u3067\u69cb\u6210\u3057 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-33715","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>\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4 - 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\/\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaredis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4\" \/>\n<meta property=\"og:description\" content=\"\u7ffb\u8bd1: \u4e3a\u4e86\u4ec0\u4e48 redis\u306f3\u53f0\u4ee5\u4e0a\u3042\u308c\u3070redis\u3060\u3051\u3067\u5197\u9577\u5316\u69cb\u6210\u304c\u7d44\u3081\u307e\u3059\u304c\u8af8\u4e8b\u60c5\u306b\u3088\u308a2\u30ce\u30fc\u30c9\u3067\u69cb\u6210\u3057 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaredis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-17T16:34:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T09:42:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d18ee37434c4406c07c99\/4-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \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\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/\",\"name\":\"\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-17T16:34:00+00:00\",\"dateModified\":\"2024-05-04T09:42:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4 - 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\/\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaredis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4","og_description":"\u7ffb\u8bd1: \u4e3a\u4e86\u4ec0\u4e48 redis\u306f3\u53f0\u4ee5\u4e0a\u3042\u308c\u3070redis\u3060\u3051\u3067\u5197\u9577\u5316\u69cb\u6210\u304c\u7d44\u3081\u307e\u3059\u304c\u8af8\u4e8b\u60c5\u306b\u3088\u308a2\u30ce\u30fc\u30c9\u3067\u69cb\u6210\u3057 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaredis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-17T16:34:00+00:00","article_modified_time":"2024-05-04T09:42:44+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d18ee37434c4406c07c99\/4-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/","name":"\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-17T16:34:00+00:00","dateModified":"2024-05-04T09:42:44+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4f7f\u7528\u8d77\u640f\u5668\u6765\u6784\u5efaRedis\u7684\u4e24\u4e2a\u8282\u70b9\u96c6\u7fa4"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bd%bf%e7%94%a8%e8%b5%b7%e6%90%8f%e5%99%a8%e6%9d%a5%e6%9e%84%e5%bb%baredis%e7%9a%84%e4%b8%a4%e4%b8%aa%e8%8a%82%e7%82%b9%e9%9b%86%e7%be%a4%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\/33715","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=33715"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33715\/revisions"}],"predecessor-version":[{"id":99754,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/33715\/revisions\/99754"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=33715"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=33715"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=33715"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}