{"id":40915,"date":"2024-01-18T22:30:20","date_gmt":"2023-07-15T08:20:41","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/"},"modified":"2024-05-04T19:00:25","modified_gmt":"2024-05-04T11:00:25","slug":"%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/","title":{"rendered":"\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b"},"content":{"rendered":"<h2>\u9996\u5148<\/h2>\n<p>\u5728\u7528EC2\u6784\u5efaElasticsearch\u96c6\u7fa4\u65f6\uff0cEC2 Discovery\u63d2\u4ef6\u975e\u5e38\u65b9\u4fbf\uff01<\/p>\n<p>\u5728Elasticsearch 7\u7cfb\u4e2d\uff0c\u8282\u70b9\u53d1\u73b0\uff08Discovery\uff09\u65b9\u5f0f\u5728\u96c6\u7fa4\u914d\u7f6e\u65f6\u53d1\u751f\u4e86\u53d8\u5316\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u6211\u91cd\u65b0\u786e\u8ba4\u4e86\u5728\u4f7f\u7528EC2 Discovery\u63d2\u4ef6\u7684\u60c5\u51b5\u4e0b\uff0celasticsearch.yml\u7684\u8bbe\u7f6e\u662f\u5982\u4f55\u7684\u3002\u8fd9\u7bc7\u6587\u7ae0\u662f\u6211\u5728\u90a3\u4e2a\u65f6\u5019\u8bb0\u5f55\u4e0b\u6765\u7684\u5907\u5fd8\u5f55\u3002<\/p>\n<h2>\u5173\u4e8e7\u7cfb\u7684\u8282\u70b9\u68c0\u6d4b<\/h2>\n<p>\u57286\u7cfb\u7248\u672c\u4e4b\u524d\uff0c\u901a\u8fc7discovery.zen.minimum_master_nodes\u53c2\u6570\u6307\u5b9a\u4e86\u7ef4\u62a4\u96c6\u7fa4\u6240\u9700\u7684\u6700\u4f4e\u4e3b\u8282\u70b9\u6570\u3002<\/p>\n<p>\u57287\u7cfb\u4e2d\uff0c\u542f\u52a8\u96c6\u7fa4\u7684\u68c0\u67e5\u8fc7\u7a0b\u4e2d\uff0c\u9700\u8981\u660e\u786e\u6307\u5b9acluster.initial_master_nodes\u6240\u6307\u5b9a\u7684\u4e3b\u8282\u70b9\u7684\u4e3b\u673a\u540d\u6216IP\u5730\u5740\uff0c\u4ee5\u4fbf\u8fdb\u884c\u8bbf\u95ee\u3002\u203b\u5982\u679c\u7c7b\u4f3c\u6eda\u52a8\u66f4\u65b0\u7684\u60c5\u51b5\u4e0b\u7edd\u5bf9\u4e0d\u5173\u95ed\u96c6\u7fa4\uff0c\u5219\u5373\u4f7f\u6ca1\u6709\u8bbe\u7f6e\u4e5f\u53ef\u4ee5\u8fd0\u884c\u3002<\/p>\n<p>\u6b64\u5916\uff0cZen Discovery\u7684\u53c2\u6570\u540d\u79f0\u5df2\u66f4\u6539\u5982\u4e0b\u3002<br \/>\n\u203b \u672c\u6b21\u5c06\u4f7f\u7528discovery.seed_providers\u3002<\/p>\n<div>\n<div class=\"post-table\">6\u7cfb\u307e\u30677\u7cfb\u304b\u3089discovery.zen.ping.unicast.hostsdiscovery.seed_hostsdiscovery.zen.hosts_providerdiscovery.seed_providersdiscovery.zen.no_master_blockcluster.no_master_block<\/div>\n<\/div>\n<p>\u3010\u53c2\u8003\u3011<br \/>\n\u30fb \u4e0b\u4e00\u4ee3Elasticsearch\u96c6\u7fa4\u534f\u4f5c<br \/>\n\u30fb 7\u7cfb\u4e2d\u8282\u70b9\u53d1\u73b0\u65b9\u6cd5\u7684\u53d8\u66f4\u70b9<br \/>\n\u30fb \u5f15\u5bfc\u96c6\u7fa4<\/p>\n<h2>EC2\u53d1\u73b0\u63d2\u4ef6\u662f\u4ec0\u4e48\uff1f<\/h2>\n<p>\u5728\u4f7f\u7528\u591a\u4e2aEC2\u5b9e\u4f8b\u7ec4\u6210Elasticsearch\u96c6\u7fa4\u65f6\uff0c\u53ef\u4ee5\u901a\u8fc7\u63d2\u4ef6\u800c\u4e0d\u662f\u4f7f\u7528discovery.seed_hosts\u6765\u68c0\u6d4b\u4e3b\u8282\u70b9\u7684\u9002\u914d\u8282\u70b9\u3002<\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528\u9644\u52a0\u7ed9EC2\u7684\u6807\u7b7e\u548c\u5b89\u5168\u7ec4\u6765\u8fdb\u884c\u8282\u70b9\u68c0\u6d4b\u3002(\u6211\u4eec\u6b63\u5728\u786e\u8ba4\u4f7f\u7528\u5b89\u5168\u7ec4\u8fdb\u884c\u8bbe\u7f6e)<\/p>\n<p>\u3010\u53c2\u8003\u3011<br \/>\n\u00b7 EC2\u53d1\u73b0\u63d2\u4ef6<\/p>\n<h2>\u5145\u5206\u5229\u7528\u73af\u5883<\/h2>\n<div>\n<div class=\"post-table\">\u9805\u76ee\u5185\u5bb9Elasticsearch7.12.1OpenJDK (\u540c\u68b1)AdoptOpenJDK (build 16+36)OSAmazon Linux 2AMIami-0cf6f5c8a62fa5da6Instance Typet3.medium (2vCPU,\uff14GB)EBS20GB (gp2)Regionus-west-2<\/div>\n<\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d435f37434c4406c9bf7f\/16-0.png\" alt=\"image.png\" \/><\/div>\n<p>\u3010\u88dc\u8db3\u3011<br \/>\n&#8211; \u4e3a\u4e86\u4e0b\u8f7d\u5b89\u88c5\u6240\u9700\u7684\u8f6f\u4ef6\u5305\uff0c\u5df2\u5c06\u5176\u653e\u7f6e\u5728\u516c\u5171\u4f4d\u7f6e\u3002<br \/>\n&#8211; Elasticsearch\u7684\u4e09\u53f0\u670d\u52a1\u5668\u90fd\u626e\u6f14\u7740\u4e3b\u8282\u70b9\u548c\u6570\u636e\u8282\u70b9\u7684\u89d2\u8272\u3002<br \/>\n&#8211; Elasticsearch\u96c6\u7fa4\u95f4\u7684Discover\u901a\u4fe1\u4f7f\u75289300-9305\u7aef\u53e3\u3002\uff08\u9ed8\u8ba4\u4e3a9300\uff09<br \/>\n&#8211; EC2\u7684IP\u5730\u5740\u5df2\u7ecf\u901a\u8fc7&#8221;ip addr&#8221;\u547d\u4ee4\u4e8b\u5148\u786e\u8ba4\u8fc7\u3002<\/p>\n<h2>\u6267\u884c\u6b65\u9aa4<\/h2>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u521b\u5efaIAM\u89d2\u8272<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u521b\u5efa\u5b89\u5168\u7ec4<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5b89\u88c5Elasticsearch<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5b89\u88c5discovery-ec2\u63d2\u4ef6<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u914d\u7f6e\u96c6\u7fa4<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u8fdb\u884c\u8fd0\u884c\u9a8c\u8bc1<\/ol>\n<p>\u3010\u88dc\u5145\u3011<br \/>\n\u00b7 \u5728\u672c\u63d0\u4ea4\u4e2d\uff0c\u5047\u8bbeVPC\u3001\u5b50\u7f51\u548cEC2\u5b9e\u4f8b\u5df2\u7ecf\u9884\u5148\u521b\u5efa\u3002<br \/>\n\u00b7 \u6240\u6709EC2\u64cd\u4f5c\u90fd\u662f\u901a\u8fc7Systems Manager\u7684\u4f1a\u8bdd\u7ba1\u7406\u5668\u8fdb\u884c\u7684\u3002<\/p>\n<h3>\u521b\u5efaIAM\u89d2\u8272<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">AWS\u30de\u30cd\u30fc\u30b8\u30e1\u30f3\u30c8\u30b3\u30f3\u30bd\u30fc\u30eb\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>IAM &gt; \u30dd\u30ea\u30b7\u30fc\u3067\u30dd\u30ea\u30b7\u30fc\u306e\u4f5c\u6210\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<br \/>\nJSON\u30bf\u30d6\u3092\u958b\u304d\u3001\u4e0b\u8a18\u306e\u30dd\u30ea\u30b7\u30fc\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"p\">{<\/span>\r\n  <span class=\"nl\">\"Version\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"2012-10-17\"<\/span><span class=\"p\">,<\/span>\r\n  <span class=\"nl\">\"Statement\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">[<\/span>\r\n    <span class=\"p\">{<\/span>\r\n      <span class=\"nl\">\"Action\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">[<\/span>\r\n        <span class=\"s2\">\"ec2:DescribeInstances\"<\/span>\r\n      <span class=\"p\">],<\/span>\r\n      <span class=\"nl\">\"Effect\"<\/span><span class=\"p\">:<\/span> <span class=\"s2\">\"Allow\"<\/span><span class=\"p\">,<\/span>\r\n      <span class=\"nl\">\"Resource\"<\/span><span class=\"p\">:<\/span> <span class=\"p\">[<\/span>\r\n        <span class=\"s2\">\"*\"<\/span>\r\n      <span class=\"p\">]<\/span>\r\n    <span class=\"p\">}<\/span>\r\n  <span class=\"p\">]<\/span>\r\n<span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>\u203b Elasticsearch\u5728\u8282\u70b9\u53d1\u73b0\u65f6\u53c2\u8003EC2\u7684\u5143\u6570\u636e<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u6b21\u306b\u4f5c\u6210\u3057\u305fIAM\u30dd\u30ea\u30b7\u30fc\u3092IAM\u30ed\u30fc\u30eb\u306b\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>IAM &gt; \u30ed\u30fc\u30eb\u3067\u30ed\u30fc\u30eb\u306e\u4f5c\u6210\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u5185\u5bb9\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\u9805\u76ee\u5185\u5bb9\u4fe1\u983c\u3055\u308c\u305f\u30a8\u30f3\u30c6\u30a3\u30c6\u30a3\u306e\u7a2e\u985eAWS\u30b5\u30fc\u30d3\u30b9\u30e6\u30fc\u30b9\u30b1\u30fc\u30b9\u306e\u9078\u629eEC2Attach\u30a2\u30af\u30bb\u30b9\u6a29\u9650\u30dd\u30ea\u30b7\u30fcAmazonEC2RoleforSSM\u3001AmazonEC2RoleforES\u30ed\u30fc\u30eb\u540dAmazonEC2RoleforES<\/div>\n<\/div>\n<ul class=\"post-ul\">\u4f5c\u6210\u3057\u305fIAM\u30ed\u30fc\u30eb\u30923\u53f0\u306eEC2\u306b\u5272\u308a\u5f53\u3066\u307e\u3059\u3002<\/ul>\n<h3>\u521b\u5efa\u5b89\u5168\u7ec4<\/h3>\n<p>EC2 &gt; \u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3067\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u3092\u4f5c\u6210\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002<br \/>\n\u4e0b\u8a18\u5185\u5bb9\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\u9805\u76ee\u5185\u5bb9\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30b0\u30eb\u30fc\u30d7\u540dsg_es\u8aac\u660eSGforESVPCES_VPC\u30a4\u30f3\u30d0\u30a6\u30f3\u30c9\u30eb\u30fc\u30eb1\u30dd\u30fc\u30c8: TCP9200\u3001\u30bd\u30fc\u30b9: 10.0.0.0\/16\u30a4\u30f3\u30d0\u30a6\u30f3\u30c9\u30eb\u30fc\u30eb2\u30dd\u30fc\u30c8: TCP9300\u3001\u30bd\u30fc\u30b9: 10.0.0.0\/16<\/div>\n<\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d435f37434c4406c9bf7f\/31-0.png\" alt=\"image.png\" \/><\/div>\n<h3>3. \u5b89\u88c5Elasticsearch<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Amazon Linux2\u306f\u516c\u5f0f\u30b5\u30a4\u30c8\u306eRPM\u3067\u306e\u624b\u9806\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067PGP\u9375\u3092\u30a4\u30f3\u30dd\u30fc\u30c8\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo <\/span>rpm <span class=\"nt\">--import<\/span> https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067RPM\u30ea\u30dd\u30b8\u30c8\u30ea\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo <\/span>vi \/etc\/yum.repos.d\/elastic.repo\r\n<span class=\"go\">\r\n[elastic]\r\nname=Elasticsearch repository for 7.x packages\r\nbaseurl=https:\/\/artifacts.elastic.co\/packages\/7.x\/yum\r\ngpgcheck=1\r\ngpgkey=https:\/\/artifacts.elastic.co\/GPG-KEY-elasticsearch\r\nenabled=0\r\nautorefresh=1\r\ntype=rpm-md\r\n<\/span><\/code><\/pre>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067Elasticsearch\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo sudo <\/span>yum <span class=\"nb\">install<\/span> <span class=\"nt\">--enablerepo<\/span><span class=\"o\">=<\/span>elastic elasticsearch\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067Elasticsearch\u3068\u540c\u68b1\u3055\u308c\u3066\u3044\u308bOpneJDK\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> yum list installed | <span class=\"nb\">grep <\/span>elastic\r\n<span class=\"gp\">$<\/span> \/usr\/share\/elasticsearch\/jdk\/bin\/java <span class=\"nt\">--version<\/span>\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067Elasticsearch\u30c7\u30fc\u30e2\u30f3\u306e\u81ea\u52d5\u8d77\u52d5\u8a2d\u5b9a\u3092\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo <\/span>systemctl daemon-reload\r\n<span class=\"gp\">$<\/span> <span class=\"nb\">sudo <\/span>systemctl <span class=\"nb\">enable <\/span>elasticsearch\r\n<\/code><\/pre>\n<p>\u203b \u5728\u8fd9\u91cc\u4e0d\u4f1a\u542f\u52a8\u5b88\u62a4\u8fdb\u7a0b\u3002<br \/>\n\u203b \u6211\u4eec\u5c06\u5728\u4e09\u53f0\u8bbe\u5907\u4e0a\u6267\u884c\u76f8\u540c\u7684\u5b89\u88c5\u6b65\u9aa4\u3002<\/p>\n<h3>4. \u5b89\u88c5 discovery-ec2 \u63d2\u4ef6\u3002<\/h3>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo<\/span> \/usr\/share\/elasticsearch\/bin\/elasticsearch-plugin <span class=\"nb\">install <\/span>discovery-ec2\r\n<\/code><\/pre>\n<h3>5. \u96c6\u7fa4\u7684\u8bbe\u7f6e<\/h3>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u30af\u30e9\u30b9\u30bf\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059\u3002(3\u53f0\u3068\u3082\u540c\u3058\u8a2d\u5b9a\u3092\u884c\u3044\u307e\u3059)<\/ul>\n<pre class=\"post-pre\"><code>$ sudo vi \/etc\/elasticsearch\/elasticsearch.yml\r\n\r\n# \u30ea\u30c3\u30b9\u30f3\u3059\u308bIP\u30a2\u30c9\u30ec\u30b9\u3092\u6307\u5b9a\r\n<span class=\"gd\">- #network.host: 192.168.0.1\r\n<\/span><span class=\"gi\">+ network.host: _eth0_\r\n<\/span>\r\n# \u30ce\u30fc\u30c9\u691c\u51fa\u65b9\u6cd5\u3067EC2 Discovery\u6709\u52b9\u5316\r\n<span class=\"gd\">- discovery.seed_hosts: [\"host1\", \"host2\"]\r\n<\/span><span class=\"gi\">+ discovery.seed_providers: ec2\r\n+ discovery.ec2.groups: \"sg-01b2b630a5385f442\"\r\n+ discovery.ec2.endpoint: \"ec2.us-west-2.amazonaws.com\"\r\n+ discovery.ec2.availability_zones: [\"us-west-2a\", \"us-west-2b\", \"us-west-2c\"]\r\n<\/span>\r\n# \u30af\u30e9\u30b9\u30bf\u8d77\u52d5\u6642\u306e\u30de\u30b9\u30bf\u30fc\u53c2\u7167\u8a2d\u5b9a (bootstrapping a cluster)\r\n<span class=\"gi\">+ cluster.initial_master_nodes: [\"10.0.1.174\", \"10.0.2.92\", \"10.0.3.230\"]\r\n<\/span><\/code><\/pre>\n<p>\u8bf7\u6839\u636e\u6bcf\u4e2a\u4eba\u7684\u73af\u5883\u9002\u5f53\u8c03\u6574\u5b89\u5168\u7ec4ID\u548c\u4e3b\u5339\u914d\u8282\u70b9\u7684IP\u5730\u5740\u3002<\/p>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067Elasticsearch\u3092\u8d77\u52d5\u3057\u307e\u3059\u3002(3\u53f0\u3068\u3082)<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo <\/span>systemctl start elasticsearch\r\n<\/code><\/pre>\n<h3>6. \u9a8c\u8bc1\u52a8\u4f5c<\/h3>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30af\u30e9\u30b9\u30bf\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> curl http:\/\/&lt;Elasticsearch\u306eIP\u30a2\u30c9\u30ec\u30b9&gt;:9200\/_cluster\/health?pretty\r\n\r\n<span class=\"gp\">#<\/span> \u4e0b\u8a18\u306f\u6b63\u5e38\u6642\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\r\n<span class=\"go\">{\r\n  \"cluster_name\" : \"elasticsearch\",\r\n  \"status\" : \"green\",\r\n  \"timed_out\" : false,\r\n  \"number_of_nodes\" : 3,\r\n  \"number_of_data_nodes\" : 3,\r\n  \"active_primary_shards\" : 0,\r\n  \"active_shards\" : 0,\r\n  \"relocating_shards\" : 0,\r\n  \"initializing_shards\" : 0,\r\n  \"unassigned_shards\" : 0,\r\n  \"delayed_unassigned_shards\" : 0,\r\n  \"number_of_pending_tasks\" : 0,\r\n  \"number_of_in_flight_fetch\" : 0,\r\n  \"task_max_waiting_in_queue_millis\" : 0,\r\n  \"active_shards_percent_as_number\" : 100.0\r\n}\r\n<\/span><\/code><\/pre>\n<p>\u5982\u679c\u72b6\u6001\u662f\u7eff\u8272\u4e14\u8282\u70b9\u6570\u4e3a3\uff0c\u5219\u8868\u793a\u6b63\u5e38\u3002<br \/>\n\u7fa4\u96c6\u540d\u79f0\u9ed8\u8ba4\u4e3aelasticsearch\u3002<\/p>\n<ul class=\"post-ul\">\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u306f\u30af\u30e9\u30b9\u30bf\u5185\u306e\u30ce\u30fc\u30c9\u306e\u72b6\u614b\u306b\u306a\u308a\u307e\u3059\u3002(es02\u304c\u30de\u30b9\u30bf\u30fc\u306b\u9078\u51fa\u3055\u308c\u3066\u3044\u307e\u3059)<\/ul>\n<pre class=\"post-pre\"><code><span class=\"gp\">$<\/span> <span class=\"nb\">sudo <\/span>curl http:\/\/&lt;Elasticsearch\u306eIP\u30a2\u30c9\u30ec\u30b9&gt;:9200\/_cat\/nodes?v\r\n\r\n<span class=\"gp\">#<\/span> \u4e0b\u8a18\u306f\u6b63\u5e38\u6642\u306e\u30ec\u30b9\u30dd\u30f3\u30b9\u306b\u306a\u308a\u307e\u3059\u3002\r\n<span class=\"go\">ip         heap.percent ram.percent cpu load_1m load_5m load_15m node.role   master name\r\n10.0.2.92            33          64   4    0.02    0.15     0.11 cdfhilmrstw *      ip-10-0-2-92.us-west-2.compute.internal\r\n10.0.3.230            8          63   4    0.05    0.22     0.15 cdfhilmrstw -      ip-10-0-3-230.us-west-2.compute.internal\r\n10.0.1.174           45          63   4    0.01    0.08     0.05 cdfhilmrstw -      ip-10-0-1-174.us-west-2.compute.internal\r\n<\/span><\/code><\/pre>\n<ul class=\"post-ul\">\u4f59\u8ac7\u3067\u3059\u304c\u3001cluster.initial_master_nodes\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u3068\u4e0b\u8a18\u30a8\u30e9\u30fc\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>$ sudo tail -f \/var\/log\/elasticsearch\/elasticsearch.log\r\n2021-05-05T23:53:31,994][WARN ][o.e.c.c.ClusterFormationFailureHelper] [ip-10-0-1-174.us-west-2.compute.internal] master not discovered yet, this node has not previously joined a bootstrapped (v7+) cluster, and [cluster.initial_master_nodes] is empty on this node: have discovered [{ip-10-0-1-174.us-west-2.compute.internal}{ctcTgFMWQGiCqi0dWIr9Ow}{7yMMGhinTViqK2eoeL_wzg}{10.0.1.174}{10.0.1.174:9300}{cdfhilmrstw}{ml.machine_memory=4073328640, xpack.installed=true, transform.node=true, ml.max_open_jobs=20, ml.max_jvm_size=1073741824}, {ip-10-0-3-230.us-west-2.compute.internal}{9Xpmo5b6SqKlloXUWRzeGg}{J9Ag6Ng3QXuwqCxMZGVj6g}{10.0.3.230}{10.0.3.230:9300}{cdfhilmrstw}{ml.machine_memory=4073328640, ml.max_open_jobs=20, xpack.installed=true, ml.max_jvm_size=1073741824, transform.node=true}, {ip-10-0-2-92.us-west-2.compute.internal}{2V-zcyrySuy13tlNBtRskQ}{xqPqlOH7Sp-pMEGFTGDOSA}{10.0.2.92}{10.0.2.92:9300}{cdfhilmrstw}{ml.machine_memory=4073328640, ml.max_open_jobs=20, xpack.installed=true, ml.max_jvm_size=1073741824, transform.node=true}]; discovery will continue using [127.0.0.1:9300, 127.0.0.1:9301, 127.0.0.1:9302, 127.0.0.1:9303, 127.0.0.1:9304, 127.0.0.1:9305, [::1]:9300, [::1]:9301, [::1]:9302, [::1]:9303, [::1]:9304, [::1]:9305, 10.0.2.92:9300, 10.0.1.174:9300, 10.0.3.230:9300] from hosts providers and [{ip-10-0-1-174.us-west-2.compute.internal}{ctcTgFMWQGiCqi0dWIr9Ow}{7yMMGhinTViqK2eoeL_wzg}{10.0.1.174}{10.0.1.174:9300}{cdfhilmrstw}{ml.machine_memory=4073328640, xpack.installed=true, transform.node=true, ml.max_open_jobs=20, ml.max_jvm_size=1073741824}] from last-known cluster state; node term 0, last-accepted version 0 in term 0\r\n<\/code><\/pre>\n<p>\u679c\u7136\uff0c\u4ec5\u4ec5\u4f7f\u7528\u63d2\u4ef6\u662f\u4e0d\u884c\u7684\uff0c\u8fd8\u9700\u8981\u8bbe\u7f6ecluster.initial_master_nodes\u3002<\/p>\n<h2>\u7efc\u4e0a\u6240\u8ff0<\/h2>\n<p>\u4ee5\u4e0a\u662f\u9488\u5bf9EC2\u96c6\u7fa4\u914d\u7f6e\u7684\u6b65\u9aa4\uff0c\u8bf7\u95ee\u60a8\u5bf9\u6b64\u6709\u4f55\u770b\u6cd5\uff1f<\/p>\n<p>\u6211\u8ba4\u4e3a\u901a\u8fc7\u4f7f\u7528\u63d2\u4ef6\uff0c\u5c31\u4e0d\u9700\u8981\u5173\u6ce8\u4e3b\u9002\u914d\u8282\u70b9\u7684IP\u5730\u5740\u4e86\u3002\u4f46\u662f\u7531\u4e8e\u9700\u8981\u5728cluster.initial_master_nodes\u4e2d\u6307\u5b9a\uff0c\u6240\u4ee5\u51cf\u5c11\u4e86\u4e00\u534a\u7684\u559c\u60a6\u611f\u3002<\/p>\n<p>\u6211\u4e00\u5f00\u59cb\u4e5f\u89c9\u5f97\u4e0d\u9700\u8981\u63d2\u4ef6\uff0c\u4f46\u5e78\u597d\u5728EC2\u4e0a\u6210\u529f\u642d\u5efa\u4e867\u7cfb\u5217\u7684\u96c6\u7fa4\uff0c\u6240\u4ee5\u5c31\u6ca1\u4e8b\u4e86\uff0c\u7b97\u662f\u4e0d\u9519\u7684\u7ed3\u679c^^<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u5728\u7528EC2\u6784\u5efaElasticsearch\u96c6\u7fa4\u65f6\uff0cEC2 Discovery\u63d2\u4ef6\u975e\u5e38\u65b9\u4fbf\uff01 \u5728Elasti [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-40915","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>\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b - 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\/\u6211\u4f7f\u7528ec2-discovery-plugin\u6784\u5efa\u4e86\u4e00\u4e2aelasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b\u3002\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u5728\u7528EC2\u6784\u5efaElasticsearch\u96c6\u7fa4\u65f6\uff0cEC2 Discovery\u63d2\u4ef6\u975e\u5e38\u65b9\u4fbf\uff01 \u5728Elasti [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u4f7f\u7528ec2-discovery-plugin\u6784\u5efa\u4e86\u4e00\u4e2aelasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b\u3002\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-15T08:20:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T11:00:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d435f37434c4406c9bf7f\/16-0.png\" \/>\n<meta name=\"author\" content=\"\u9038, \u79d1\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u9038, \u79d1\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \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\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/\",\"name\":\"\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-15T08:20:41+00:00\",\"dateModified\":\"2024-05-04T11:00:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b\"}]},{\"@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\/85c1dae56e6ea1e695c73d33c684d487\",\"name\":\"\u9038, \u79d1\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g\",\"caption\":\"\u9038, \u79d1\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b - 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\/\u6211\u4f7f\u7528ec2-discovery-plugin\u6784\u5efa\u4e86\u4e00\u4e2aelasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b\u3002\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b","og_description":"\u9996\u5148 \u5728\u7528EC2\u6784\u5efaElasticsearch\u96c6\u7fa4\u65f6\uff0cEC2 Discovery\u63d2\u4ef6\u975e\u5e38\u65b9\u4fbf\uff01 \u5728Elasti [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u4f7f\u7528ec2-discovery-plugin\u6784\u5efa\u4e86\u4e00\u4e2aelasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b\u3002\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-15T08:20:41+00:00","article_modified_time":"2024-05-04T11:00:25+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d435f37434c4406c9bf7f\/16-0.png"}],"author":"\u9038, \u79d1","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u9038, \u79d1","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/","name":"\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-15T08:20:41+00:00","dateModified":"2024-05-04T11:00:25+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/85c1dae56e6ea1e695c73d33c684d487"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%e3%80%82\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u4f7f\u7528EC2 Discovery Plugin\u6784\u5efa\u4e86\u4e00\u4e2aElasticsearch7\u7684\u96c6\u7fa4\u7684\u6545\u4e8b"}]},{"@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\/85c1dae56e6ea1e695c73d33c684d487","name":"\u9038, \u79d1","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c94f6d9cbbfbca863fab309840bd690c153c95f8490c290ad2ed54dd693dad16?s=96&d=mm&r=g","caption":"\u9038, \u79d1"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keyi\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e4%bd%bf%e7%94%a8ec2-discovery-plugin%e6%9e%84%e5%bb%ba%e4%ba%86%e4%b8%80%e4%b8%aaelasticsearch7%e7%9a%84%e9%9b%86%e7%be%a4%e7%9a%84%e6%95%85%e4%ba%8b%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\/40915","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\/12"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=40915"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40915\/revisions"}],"predecessor-version":[{"id":100115,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/40915\/revisions\/100115"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=40915"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=40915"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=40915"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}