{"id":41365,"date":"2023-08-06T23:20:22","date_gmt":"2023-09-21T10:39:01","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/"},"modified":"2024-04-30T17:19:21","modified_gmt":"2024-04-30T09:19:21","slug":"%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/","title":{"rendered":"\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6"},"content":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u662fElastic Stack (Elasticsearch) Advent Calendar 2020 12\u670815\u65e5\u7684\u6587\u7ae0\u3002<\/p>\n<h2>\u60f3\u505a\u7684\u4e8b\u60c5 zu\u00f2 de<\/h2>\n<p>\u60a8\u597d\uff0c\u6211\u662fSupership\u682a\u5f0f\u4f1a\u793e\u7684\u4e2d\u91ce\u3002\u5728\u5de5\u4f5c\u4e2d\uff0c\u6211\u4eec\u6784\u5efa\u548c\u8fd0\u8425\u6570\u636e\u96c6\u8ba1\u548c\u5206\u6790\u57fa\u7840\u8bbe\u65bd\u4ee5\u53ca\u5168\u6587\u641c\u7d22\u7cfb\u7edf\u3002<br \/>\n\u5982\u679c\u8981\u5728\u5206\u6790\u76ee\u7684\u4e2d\u4f7f\u7528Elasticsearch\uff0c\u5c3d\u7ba1\u53ef\u4ee5\u5728\u5c11\u6570\u8282\u70b9\u4e0a\u5feb\u901f\u8fc7\u6ee4\u548c\u805a\u5408\u5927\u91cf\u6570\u636e\uff0c\u4f46\u7531\u4e8e\u7d22\u5f15\u8d1f\u8f7d\u8f83\u91cd\uff0c\u5bfc\u81f4\u6570\u636e\u6295\u5165\u65f6\u95f4\u8f83\u957f\u3002<br \/>\n\u5982\u679c\u4f7f\u7528\u8f83\u5c11\u8282\u70b9\u6765\u9002\u5e94\u805a\u5408\u8d1f\u8f7d\uff0c\u7d22\u5f15\u901f\u5ea6\u4f1a\u53d8\u6162\u3002\u7136\u800c\uff0c\u4fdd\u6301\u5927\u91cf\u8282\u70b9\u6765\u9002\u5e94\u7d22\u5f15\u8d1f\u8f7d\u5219\u4f1a\u589e\u52a0\u6210\u672c\u3002\u56e0\u6b64\uff0c\u6211\u8ba4\u4e3a\u6211\u4eec\u53ef\u4ee5\u5728\u7d22\u5f15\u65f6\u589e\u52a0\u8282\u70b9\u6570\u91cf\u4ee5\u5728\u77ed\u65f6\u95f4\u5185\u5b8c\u6210\u5904\u7406\uff0c\u800c\u5728\u96c6\u8ba1\u65f6\u5219\u4f7f\u7528\u8f83\u5c11\u7684\u8282\u70b9\u6765\u8fd0\u8425Elasticsearch\u4ee5\u63a7\u5236\u6210\u672c\u3002<\/p>\n<h2>\u505a\u8fc7\u7684\u4e8b\u6982\u8ff0<\/h2>\n<p>\u6211\u4f7f\u7528\u4e09\u79cd\u65b9\u6cd5\u8ba1\u91cf\u4e86\u5c06650GB\u300120.3\u4ebf\u4e2a\u6570\u636e\u5bfc\u5165\u5230m6gd.4xlarge 1node\u4e0a\u7684Elasticsearch\uff0c\u5e76\u4f7f\u5176\u53ef\u7528\u6240\u9700\u7684\u65f6\u95f4\u3002<\/p>\n<div>\n<div class=\"post-table\">indexing\u65b9\u6cd5\u6240\u8981\u6642\u95931node\u306e\u307e\u307e\u76f4\u63a5indexing237\u52062\u79d25node\u306b\u5897\u5f37\u3057\u3066indexing\u3057\u30011node\u306bshard\u3092\u8ee2\u9001\u3057\u3066\u7e2e\u900066\u520652\u79d2 (indexing 54\u520655\u79d2 + shard\u8ee2\u9001 11\u520657\u79d2)5node\u306e\u4e00\u6642\u30af\u30e9\u30b9\u30bf\u3067indexing\u3057\u3001S3 snapshot &amp; restore\u3067\u96c6\u8a08\u7528\u30af\u30e9\u30b9\u30bf\u306b\u8ee2\u900184\u520637\u79d2 (indexing 54\u520655\u79d2 + S3 snapshot 4\u520651\u79d2 + restore 24\u520651\u79d2)<\/div>\n<\/div>\n<p>\u901a\u8fc7\u6682\u65f6\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u6211\u4eec\u786e\u8ba4\u53ef\u4ee5\u5728\u77ed\u65f6\u95f4\u5185\u5b8c\u6210\u7d22\u5f15\u3002\u8ba9\u6211\u4eec\u4ed4\u7ec6\u770b\u4e00\u4e0b\u3002<\/p>\n<h2>\u8be6\u7ec6\u8d44\u6599 x\u00ec z\u012b<\/h2>\n<h3>\u5171\u540c\u70b9<\/h3>\n<p>\u5728\u672c\u6b21\u9a8c\u8bc1\u4e2d\uff0c\u6211\u4eec\u5df2\u7ecf\u6839\u636e\u4ee5\u4e0b\u5185\u5bb9\u7edf\u4e00\u4e86\u6570\u636e\u670d\u52a1\u5668\u7684\u8bbe\u7f6e\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30c7\u30fc\u30bf<\/ul>\n<\/li>\n<\/ul>\n<p>\u975e\u5727\u7e2e\u72b6\u614b\u306ejsonl\u30d5\u30a1\u30a4\u30eb\u3067650GB<br \/>\n20.3\u5104\u4ef6<\/p>\n<p>Elasticsearch 7.10<br \/>\n\u30b5\u30fc\u30d0\u306fAWS EC2 m6gd.4xlarge<\/p>\n<p>\u4eca\u56de\u306e\u3088\u3046\u306bCPU\u306e\u8907\u6570\u30b3\u30a2\u3092\u5168\u958b\u3067\u56de\u3059\u7528\u9014\u3067\u306f\u3001Graviton2\u30d7\u30ed\u30bb\u30c3\u30b5\u306e\u30b3\u30b9\u30d1\u304c\u5727\u5012\u7684<\/p>\n<p>\u30c7\u30a3\u30b9\u30afIO\u304c\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306b\u306a\u308b\u306e\u3092\u907f\u3051\u308b\u305f\u3081\u3001Elasticsearch\u306e\u30c7\u30fc\u30bf\u3068\u30ed\u30b0\u306f\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u30b9\u30c8\u30ec\u30fc\u30b8\u306b\u7f6e\u304f<br \/>\n\u672c\u756a\u3068\u540c\u7b49\u306e\u30c7\u30fc\u30bf\u91cf\u3092\u60f3\u5b9a\u3057\u305f\u30ce\u30fc\u30c9\u30b5\u30a4\u30ba<br \/>\nm6gd\u306f\u65e5\u672c\u3067\u306f\u672a\u63d0\u4f9b\u306a\u306e\u3067us-east-1\u3067\u691c\u8a3c<\/p>\n<p>indexing\u901f\u5ea6\u6700\u512a\u5148\u306e\u8a2d\u5b9a<\/p>\n<p>shard\u6570 = Elasticsearch\u30af\u30e9\u30b9\u30bf\u5168\u4f53\u306b\u5272\u308a\u5f53\u3066\u305fvCPU\u6570 \u3068\u3059\u308b<\/p>\n<p>\u691c\u7d22\u30fb\u96c6\u8a08\u306e\u70b9\u304b\u3089\u306fshard\u904e\u591a\u3002\u5bfe\u51e6\u306f\u5f8c\u65e5\u6539\u3081\u3066\u8003\u3048\u308b<\/p>\n<p>data post \u4e26\u5217\u6570 = Elasticsearch\u30af\u30e9\u30b9\u30bf\u5168\u4f53\u306b\u5272\u308a\u5f53\u3066\u305fvCPU\u6570 \u3068\u3059\u308b<br \/>\nrefresh_interval\u306f0\u3001\u5168\u30c7\u30fc\u30bfPOST\u5f8c\u306b\u81ea\u5206\u3067_refresh\u3092\u547c\u3076<\/p>\n<h3>\u76f4\u63a5\u7d22\u5f151node\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d465b37434c4406ca4e03\/12-0.jpeg\" alt=\"direct-indexing.jpg\" \/><\/div>\n<h3>\u5c065\u4e2a\u8282\u70b9\u8fdb\u884c\u589e\u5f3a\u5e76\u8fdb\u884c\u7d22\u5f15\uff0c\u5c06\u5206\u7247\u8f6c\u79fb\u52301\u4e2a\u8282\u70b9\u4ee5\u8fdb\u884c\u6536\u7f29\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d465b37434c4406ca4e03\/14-0.jpeg\" alt=\"scale-indexing.jpg\" \/><\/div>\n<h4>\u6784\u5efa\u548c\u5b9e\u65bd\u7684\u8981\u70b9<\/h4>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">indexing\u4e2d\u3060\u3051\u7a3c\u50cd\u3055\u305b\u308b\u30ce\u30fc\u30c9\u306f\u3001elasticsearch.yml\u306bnode.roles: [data]\u3092\u8a2d\u5b9a\u3057\u3001\u30c7\u30fc\u30bf\u5c02\u696d\u30ce\u30fc\u30c9\u3068\u3057\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Elasticsearch\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u306f\u3001shard\u306e\u8ee2\u9001\u304c\u8ca0\u8377\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u5236\u9650\u304c\u304b\u304b\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f\u8ca0\u8377\u4f4e\u6e1b\u3088\u308a\u3082\u901f\u5ea6\u3092\u512a\u5148\u3057\u305f\u3044\u306e\u3067\u3001\u4e0b\u8a18\u306e\u64cd\u4f5c\u3092\u884c\u3063\u3066\u5236\u9650\u3092\u7de9\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>PUT \/_cluster\/settings\r\n{\r\n  \"persistent\" : {\r\n    \"indices.recovery.max_bytes_per_sec\" : \"100gb\",\r\n    \"indices.recovery.max_concurrent_file_chunks\": 4,\r\n    \"indices.recovery.max_concurrent_operations\": 4,\r\n    \"cluster.routing.allocation.node_concurrent_recoveries\": 16\r\n  }\r\n}\r\n<\/code><\/pre>\n<ul class=\"post-ul\">indexing, refresh\u304c\u5b8c\u4e86\u3057\u305f\u5f8c\u3001\u4e0b\u8a18\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3053\u3068\u3067shard\u306e\u8ee2\u9001\u304c\u59cb\u307e\u308a\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>PUT \/_cluster\/settings\r\n{\r\n  \"transient\": {\r\n    \"cluster.routing.allocation.exclude._ip\": \"\u9000\u5f79\u3055\u305b\u308b\u30ce\u30fc\u30c9\u306eIP\u30a2\u30c9\u30ec\u30b9\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\"\r\n  }\r\n}\r\n<\/code><\/pre>\n<ul class=\"post-ul\">shard\u306e\u8ee2\u9001\u304c\u5b8c\u4e86\u3057\u3066indexing\u306b\u4f7f\u3063\u305f\u30ce\u30fc\u30c9\u3092\u7d42\u4e86\u3055\u305b\u305f\u3089\u3001\u6b21\u306b\u540c\u3058IP\u30a2\u30c9\u30ec\u30b9\u304c\u4f7f\u308f\u308c\u305f\u3068\u304d\u306b\u8aa4\u52d5\u4f5c\u3057\u306a\u3044\u3088\u3046allocation\u306e\u9664\u5916\u8a2d\u5b9a\u3092\u5916\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>PUT \/_cluster\/settings\r\n{\r\n  \"transient\": {\r\n    \"cluster.routing.allocation.exclude._ip\": \"\"\r\n  }\r\n}\r\n<\/code><\/pre>\n<h3>\u57285\u8282\u70b9\u7684\u4e34\u65f6\u96c6\u7fa4\u4e0a\u8fdb\u884c\u7d22\u5f15\uff0c\u5e76\u901a\u8fc7S3\u5feb\u7167\u548c\u6062\u590d\u5c06\u5176\u4f20\u8f93\u5230\u7528\u4e8e\u805a\u5408\u7684\u96c6\u7fa4\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d465b37434c4406ca4e03\/23-0.jpeg\" alt=\"dedicated-cluster.jpg\" \/><\/div>\n<h4>\u6784\u5efa\u548c\u5b9e\u65bd\u7684\u91cd\u70b9<\/h4>\n<ul class=\"post-ul\">indexing\u7528\u4e00\u6642\u30af\u30e9\u30b9\u30bf\u3001\u96c6\u8a08\u7528\u30af\u30e9\u30b9\u30bf\u306e\u4e21\u65b9\u3067repository S3 plugin\u304c\u5fc5\u8981\u3067\u3059\u3002aarch64\u7528\u306eElasticsearch\u306felasticsearch-plugin install\u30b3\u30de\u30f3\u30c9\u304c\u30cf\u30f3\u30b0\u30a2\u30c3\u30d7\u3057\u3066\u6b63\u5e38\u7d42\u4e86\u3057\u306a\u3044\u305f\u3081\u3001zip\u30d5\u30a1\u30a4\u30eb\u3092\u7279\u5b9a\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5c55\u958b\u3059\u308b\u3053\u3068\u3067\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3092\u884c\u3044\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code><span class=\"nv\">$ <\/span>curl <span class=\"nt\">-XGET<\/span> <span class=\"s1\">'https:\/\/artifacts.elastic.co\/downloads\/elasticsearch-plugins\/repository-s3\/repository-s3-7.10.0.zip'<\/span> <span class=\"o\">&gt;<\/span> repository-s3-7.10.0.zip\r\n<span class=\"nv\">$ <\/span><span class=\"nb\">sudo <\/span>unzip <span class=\"nt\">-d<\/span> \/usr\/share\/elasticsearch\/plugins\/repository-s3 repository-s3-7.10.0.zip\r\n<\/code><\/pre>\n<ul class=\"post-ul\">S3 snapshot\u3092\u5229\u7528\u3059\u308b\u306b\u306f\u3001indexing\u7528\u4e00\u6642\u30af\u30e9\u30b9\u30bf\u3001\u96c6\u8a08\u7528\u30af\u30e9\u30b9\u30bf\u306e\u4e21\u65b9\u3067snapshot\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u5b9a\u7fa9\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>PUT \/_snapshot\/&lt;snapshot\u30ea\u30dd\u30b8\u30c8\u30ea\u540d&gt;\r\n{\r\n  \"type\": \"s3\",\r\n  \"settings\": {\r\n    \"bucket\": \"S3\u30d0\u30b1\u30c3\u30c8\u540d\",\r\n    \"base_path\": \"path\/to\/snapshot\/location\",\r\n    \"max_snapshot_bytes_per_sec\": \"100gb\"\r\n  }\r\n}\r\n<\/code><\/pre>\n<ul class=\"post-ul\">indexing, refresh\u304c\u5b8c\u4e86\u3057\u305f\u5f8c\u3001indexing\u7528\u4e00\u6642\u30af\u30e9\u30b9\u30bf\u3067\u4e0b\u8a18\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3053\u3068\u3067\u3001S3\u306bindex snapshot\u304c\u4f5c\u3089\u308c\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>PUT \/_snapshot\/&lt;snapshot\u30ea\u30dd\u30b8\u30c8\u30ea\u540d&gt;\/&lt;snapshot\u540d&gt;?wait_for_completion=true\r\n{\r\n  \"indices\": \"snapshot\u3059\u308bindex\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\",\r\n  \"include_global_state\": false,\r\n  \"metadata\": {\r\n    \"taken_by\": \"me\",\r\n    \"comment\": \"test\"\r\n  }\r\n}\r\n<\/code><\/pre>\n<ul class=\"post-ul\">Elasticsearch\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u8a2d\u5b9a\u3067\u306f\u3001\u30ea\u30ab\u30d0\u30ea\u304c\u8ca0\u8377\u306b\u306a\u3089\u306a\u3044\u3088\u3046\u5236\u9650\u304c\u304b\u304b\u3063\u3066\u3044\u307e\u3059\u3002\u4eca\u56de\u306f\u8ca0\u8377\u4f4e\u6e1b\u3088\u308a\u3082\u901f\u5ea6\u3092\u512a\u5148\u3057\u305f\u3044\u306e\u3067\u3001\u96c6\u8a08\u7528ES\u30af\u30e9\u30b9\u30bf\u3067\u4e0b\u8a18\u306e\u64cd\u4f5c\u3092\u884c\u3063\u3066\u5236\u9650\u3092\u7de9\u3081\u3066\u304a\u304d\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>PUT \/_cluster\/settings\r\n{\r\n  \"persistent\" : {\r\n    \"indices.recovery.max_bytes_per_sec\" : \"100gb\",\r\n    \"indices.recovery.max_concurrent_file_chunks\": 4,\r\n    \"indices.recovery.max_concurrent_operations\": 4,\r\n    \"cluster.routing.allocation.node_concurrent_recoveries\": 16\r\n  }\r\n}\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\u96c6\u8a08\u7528\u30af\u30e9\u30b9\u30bf\u3067\u4e0b\u8a18\u306e\u64cd\u4f5c\u3092\u884c\u3046\u3053\u3068\u3067\u3001S3\u4e0a\u306esnapshot\u304b\u3089index\u3092restore\u3057\u307e\u3059\u3002<\/ul>\n<pre class=\"post-pre\"><code>POST \/_snapshot\/&lt;snapshot\u30ea\u30dd\u30b8\u30c8\u30ea\u540d&gt;\/&lt;snapshot\u540d&gt;\/_restore?wait_for_completion=true\r\n{               \r\n  \"indices\": \"restore\u3059\u308bindex\u540d\u3092\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\",\r\n  \"include_global_state\": false\r\n}\r\n<\/code><\/pre>\n<h2>\u5907\u8003<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d465b37434c4406ca4e03\/36-1.png\" alt=\"spot.png\" \/><\/div>\n<h2>\u9a8c\u8bc1\u5b8c\u6210<\/h2>\n<p>\u53ea\u5728\u7d22\u5f15\u65f6\u589e\u52a0\u8282\u70b9\u6570\u91cf\u4ee5\u5728\u77ed\u65f6\u95f4\u5185\u5b8c\u6210\u5904\u7406\uff0c\u5e76\u4e14\u5728\u805a\u5408\u65f6\u53ea\u4f7f\u7528\u5c11\u91cf\u8282\u70b9\u6765\u8fd0\u8425Elasticsearch\uff0c\u4ee5\u964d\u4f4e\u6210\u672c\u7684\u65b9\u6cd5\u4f3c\u4e4e\u53d8\u5f97\u53ef\u884c\u3002\u76ee\u524d\uff0c\u6211\u8ba4\u4e3a\u4f7f\u7528\u4e13\u7528\u4e8e\u7d22\u5f15\u7684\u4e34\u65f6\u96c6\u7fa4+ S3\u5feb\u7167\u548c\u6062\u590d\u7684\u65b9\u6cd5\u5bf9\u73b0\u6709\u7684\u805a\u5408\u7528ES\u96c6\u7fa4\u5f71\u54cd\u8f83\u5c0f\uff0c\u5e76\u4e14\u53ef\u4ee5\u540c\u65f6\u8fdb\u884c\u7d22\u5f15\u7684\u5907\u4efd\u662f\u4e0d\u9519\u7684\u9009\u62e9\u3002\u6211\u4eec\u5c06\u7ee7\u7eed\u8fdb\u884c\u9a8c\u8bc1\u4ee5\u51c6\u5907\u6295\u5165\u751f\u4ea7\u73af\u5883\u3002<\/p>\n<p>\u6700\u540e\u662f\u5ba3\u4f20\u3002\u4eca\u5e74\uff0c\u6211\u4e5f\u53c2\u52a0\u4e86Supership\u96c6\u56e2\u548c\u5728\u771f\u5b9e\u73af\u5883\u4e2d\u72af\u9519\u7684\u4eba\u7684\u5723\u8bde\u65e5\u5386\u3002\u4e5f\u8bf7\u52a1\u5fc5\u67e5\u770b\u8fd9\u4e2a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0\u662fElastic Stack (Elasticsearch) Advent Calendar 2020 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-41365","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>\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6 - 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\/\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411elasticsearch\u6295\u5165\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u7bc7\u6587\u7ae0\u662fElastic Stack (Elasticsearch) Advent Calendar 2020 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411elasticsearch\u6295\u5165\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-09-21T10:39:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T09:19:21+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d465b37434c4406ca4e03\/12-0.jpeg\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \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%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/\",\"name\":\"\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-09-21T10:39:01+00:00\",\"dateModified\":\"2024-04-30T09:19:21+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6\"}]},{\"@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\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6 - 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\/\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411elasticsearch\u6295\u5165\/","og_locale":"zh_CN","og_type":"article","og_title":"\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6","og_description":"\u8fd9\u7bc7\u6587\u7ae0\u662fElastic Stack (Elasticsearch) Advent Calendar 2020 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411elasticsearch\u6295\u5165\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-09-21T10:39:01+00:00","article_modified_time":"2024-04-30T09:19:21+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d465b37434c4406ca4e03\/12-0.jpeg"}],"author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/","name":"\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-09-21T10:39:01+00:00","dateModified":"2024-04-30T09:19:21+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u53ea\u6709\u5728\u7d22\u5f15\u65f6\u624d\u589e\u52a0\u8282\u70b9\u6570\u91cf\uff0c\u4ee5\u52a0\u5feb\u5411Elasticsearch\u6295\u5165\u6570\u636e\u7684\u901f\u5ea6"}]},{"@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\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%8f%aa%e6%9c%89%e5%9c%a8%e7%b4%a2%e5%bc%95%e6%97%b6%e6%89%8d%e5%a2%9e%e5%8a%a0%e8%8a%82%e7%82%b9%e6%95%b0%e9%87%8f%ef%bc%8c%e4%bb%a5%e5%8a%a0%e5%bf%ab%e5%90%91elasticsearch%e6%8a%95%e5%85%a5\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41365","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=41365"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41365\/revisions"}],"predecessor-version":[{"id":93237,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/41365\/revisions\/93237"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=41365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=41365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=41365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}