Files
weiyu/deploy/server/docs/zh-CN/assets/js/23e02889.ee57b67d.js

1 line
15 KiB
JavaScript

"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8790],{6246:(e,n,s)=>{s.d(n,{R:()=>c,x:()=>d});var l=s(2155);const i={},r=l.createContext(i);function c(e){const n=l.useContext(r);return l.useMemo((function(){return"function"==typeof e?e(n):{...n,...e}}),[n,e])}function d(e){let n;return n=e.disableParentContext?"function"==typeof e.components?e.components(i):e.components||i:c(e.components),l.createElement(r.Provider,{value:n},e.children)}},8058:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>t,contentTitle:()=>d,default:()=>o,frontMatter:()=>c,metadata:()=>l,toc:()=>h});const l=JSON.parse('{"id":"deploy/depend/elasticsearch","title":"Elasticsearch \u5728\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528","description":"\u7b80\u4ecb","source":"@site/i18n/zh-CN/docusaurus-plugin-content-docs/current/deploy/depend/elasticsearch.md","sourceDirName":"deploy/depend","slug":"/deploy/depend/elasticsearch","permalink":"/docs/zh-CN/docs/deploy/depend/elasticsearch","draft":false,"unlisted":false,"editUrl":"https://github.com/bytedesk/bytedesk/docs/deploy/depend/elasticsearch.md","tags":[],"version":"current","sidebarPosition":4,"frontMatter":{"sidebar_label":"Elasticsearch","sidebar_position":4},"sidebar":"tutorialSidebar","previous":{"title":"Ollama","permalink":"/docs/zh-CN/docs/deploy/depend/ollama"},"next":{"title":"Nginx","permalink":"/docs/zh-CN/docs/deploy/depend/nginx"}}');var i=s(5723),r=s(6246);const c={sidebar_label:"Elasticsearch",sidebar_position:4},d="Elasticsearch \u5728\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528",t={},h=[{value:"\u7b80\u4ecb",id:"\u7b80\u4ecb",level:2},{value:"\u6838\u5fc3\u529f\u80fd",id:"\u6838\u5fc3\u529f\u80fd",level:2},{value:"\u5168\u6587\u68c0\u7d22",id:"\u5168\u6587\u68c0\u7d22",level:3},{value:"\u5411\u91cf\u5b58\u50a8\u4e0e\u68c0\u7d22",id:"\u5411\u91cf\u5b58\u50a8\u4e0e\u68c0\u7d22",level:3},{value:"Docker \u90e8\u7f72\u914d\u7f6e",id:"docker-\u90e8\u7f72\u914d\u7f6e",level:2},{value:"\u914d\u7f6e\u9879\u8bf4\u660e",id:"\u914d\u7f6e\u9879\u8bf4\u660e",level:3},{value:"\u57fa\u672c\u914d\u7f6e",id:"\u57fa\u672c\u914d\u7f6e",level:4},{value:"\u7cfb\u7edf\u4f18\u5316",id:"\u7cfb\u7edf\u4f18\u5316",level:4},{value:"\u5b89\u5168\u8bbe\u7f6e",id:"\u5b89\u5168\u8bbe\u7f6e",level:4},{value:"\u7f51\u7edc\u4e0e\u5b58\u50a8",id:"\u7f51\u7edc\u4e0e\u5b58\u50a8",level:4},{value:"\u5065\u5eb7\u68c0\u67e5",id:"\u5065\u5eb7\u68c0\u67e5",level:4},{value:"\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u96c6\u6210",id:"\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u96c6\u6210",level:2},{value:"\u96c6\u6210\u914d\u7f6e",id:"\u96c6\u6210\u914d\u7f6e",level:3},{value:"\u7d22\u5f15\u7ba1\u7406",id:"\u7d22\u5f15\u7ba1\u7406",level:3},{value:"\u5411\u91cf\u68c0\u7d22\u793a\u4f8b",id:"\u5411\u91cf\u68c0\u7d22\u793a\u4f8b",level:3},{value:"\u6027\u80fd\u4f18\u5316\u5efa\u8bae",id:"\u6027\u80fd\u4f18\u5316\u5efa\u8bae",level:2},{value:"\u5e38\u89c1\u95ee\u9898\u6392\u67e5",id:"\u5e38\u89c1\u95ee\u9898\u6392\u67e5",level:2}];function a(e){const n={a:"a",blockquote:"blockquote",code:"code",h1:"h1",h2:"h2",h3:"h3",h4:"h4",header:"header",li:"li",ol:"ol",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,r.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(n.header,{children:(0,i.jsx)(n.h1,{id:"elasticsearch-\u5728\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528",children:"Elasticsearch \u5728\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528"})}),"\n",(0,i.jsx)(n.h2,{id:"\u7b80\u4ecb",children:"\u7b80\u4ecb"}),"\n",(0,i.jsx)(n.p,{children:"Elasticsearch \u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u3001RESTful \u7684\u641c\u7d22\u548c\u5206\u6790\u5f15\u64ce\uff0c\u5728\u5fae\u8bed\u7cfb\u7edf\u4e2d\u626e\u6f14\u7740\u91cd\u8981\u89d2\u8272\u3002\u5b83\u4e3b\u8981\u7528\u4e8e\u4ee5\u4e0b\u4e24\u4e2a\u65b9\u9762\uff1a"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u5168\u6587\u68c0\u7d22"}),"\uff1a\u652f\u6301\u5bf9\u5386\u53f2\u5bf9\u8bdd\u548c\u77e5\u8bc6\u5e93\u5185\u5bb9\u8fdb\u884c\u9ad8\u6548\u68c0\u7d22"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u5411\u91cf\u5b58\u50a8\u4e0e\u68c0\u7d22"}),"\uff1a\u5b58\u50a8\u548c\u68c0\u7d22 AI \u751f\u6210\u7684\u6587\u672c\u5411\u91cf\uff0c\u652f\u6301\u8bed\u4e49\u641c\u7d22\u548c\u76f8\u5173\u6027\u5339\u914d"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u6838\u5fc3\u529f\u80fd",children:"\u6838\u5fc3\u529f\u80fd"}),"\n",(0,i.jsx)(n.h3,{id:"\u5168\u6587\u68c0\u7d22",children:"\u5168\u6587\u68c0\u7d22"}),"\n",(0,i.jsx)(n.p,{children:"Elasticsearch \u63d0\u4f9b\u5f3a\u5927\u7684\u5168\u6587\u641c\u7d22\u80fd\u529b\uff0c\u5728\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7528\u4e8e\uff1a"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"\u5bf9\u8bdd\u5386\u53f2\u5feb\u901f\u68c0\u7d22"}),"\n",(0,i.jsx)(n.li,{children:"\u77e5\u8bc6\u5e93\u6587\u6863\u641c\u7d22"}),"\n",(0,i.jsx)(n.li,{children:"\u591a\u7ef4\u5ea6\u8fc7\u6ee4\uff08\u65f6\u95f4\u3001\u4f1a\u8bdd\u3001\u5173\u952e\u8bcd\u7b49\uff09"}),"\n",(0,i.jsx)(n.li,{children:"\u9ad8\u4eae\u5339\u914d\u7ed3\u679c"}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"\u5411\u91cf\u5b58\u50a8\u4e0e\u68c0\u7d22",children:"\u5411\u91cf\u5b58\u50a8\u4e0e\u68c0\u7d22"}),"\n",(0,i.jsx)(n.p,{children:"\u4f5c\u4e3a\u5411\u91cf\u6570\u636e\u5e93\u4f7f\u7528\uff0cElasticsearch \u652f\u6301\uff1a"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsx)(n.li,{children:"\u5b58\u50a8\u5927\u8bed\u8a00\u6a21\u578b\u751f\u6210\u7684\u6587\u672c\u5d4c\u5165\u5411\u91cf"}),"\n",(0,i.jsx)(n.li,{children:"\u8bed\u4e49\u76f8\u4f3c\u6027\u641c\u7d22"}),"\n",(0,i.jsx)(n.li,{children:"KNN\uff08K\u8fd1\u90bb\uff09\u68c0\u7d22"}),"\n",(0,i.jsx)(n.li,{children:"\u9ad8\u7ef4\u5411\u91cf\u7d22\u5f15\u4f18\u5316"}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"docker-\u90e8\u7f72\u914d\u7f6e",children:"Docker \u90e8\u7f72\u914d\u7f6e"}),"\n",(0,i.jsxs)(n.p,{children:["\u5fae\u8bed\u7cfb\u7edf\u63a8\u8350\u4f7f\u7528 Docker \u5bb9\u5668\u5316\u6280\u672f\u90e8\u7f72 Elasticsearch\u3002",(0,i.jsxs)(n.a,{href:"https://gitee.com/270580156/weiyu/blob/main/deploy/docker/docker-compose-ollama.yaml",children:[(0,i.jsx)(n.code,{children:"docker-compose.yml"}),"\u6587\u4ef6"]}),"\uff0c\u4ee5\u4e0b\u662f\u8be6\u7ec6\u7684 Docker \u914d\u7f6e\u8bf4\u660e\uff1a"]}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-yaml",children:'# ElasticSearch \u5411\u91cf\u6570\u636e\u5e93\nbytedesk-elasticsearch:\n image: docker.elastic.co/elasticsearch/elasticsearch:8.18.0\n container_name: elasticsearch-bytedesk\n environment:\n - node.name=bytedesk-es01 # \u8282\u70b9\u540d\u79f0\n - cluster.name=bytedesk-es-cluster # \u96c6\u7fa4\u540d\u79f0\n - discovery.type=single-node # \u5355\u8282\u70b9\u6a21\u5f0f\n - bootstrap.memory_lock=true # \u5185\u5b58\u9501\u5b9a\uff0c\u907f\u514d\u5185\u5b58\u4ea4\u6362\u5230\u78c1\u76d8\n - "ES_JAVA_OPTS=-Xms512m -Xmx512m" # JVM \u5185\u5b58\u8bbe\u7f6e\n - xpack.security.enabled=true # \u542f\u7528\u5b89\u5168\u8ba4\u8bc1\n - ELASTIC_PASSWORD=bytedesk123 # \u8bbe\u7f6e elastic \u7528\u6237\u5bc6\u7801\n ulimits:\n memlock:\n soft: -1\n hard: -1 # \u53d6\u6d88\u5185\u5b58\u9501\u5b9a\u9650\u5236\n volumes:\n - elasticsearch_data:/usr/share/elasticsearch/data # \u6570\u636e\u6301\u4e45\u5316\n ports:\n - "19200:9200" # REST API \u7aef\u53e3\u6620\u5c04\n - "19300:9300" # \u8282\u70b9\u901a\u4fe1\u7aef\u53e3\u6620\u5c04\n networks:\n - bytedesk-network # \u4f7f\u7528\u81ea\u5b9a\u4e49\u7f51\u7edc\n healthcheck:\n test: ["CMD-SHELL", "curl -s -f http://localhost:9200/_cluster/health?wait_for_status=yellow || exit 1"]\n interval: 30s\n timeout: 10s\n retries: 5 # \u5065\u5eb7\u68c0\u67e5\u914d\u7f6e\n'})}),"\n",(0,i.jsx)(n.h3,{id:"\u914d\u7f6e\u9879\u8bf4\u660e",children:"\u914d\u7f6e\u9879\u8bf4\u660e"}),"\n",(0,i.jsx)(n.h4,{id:"\u57fa\u672c\u914d\u7f6e",children:"\u57fa\u672c\u914d\u7f6e"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"image"}),": \u4f7f\u7528\u5b98\u65b9 Elasticsearch 8.18.0 \u7248\u672c\u955c\u50cf"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"container_name"}),": \u5bb9\u5668\u540d\u79f0\uff0c\u65b9\u4fbf\u8bc6\u522b\u548c\u7ba1\u7406"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"node.name & cluster.name"}),": \u5b9a\u4e49\u8282\u70b9\u548c\u96c6\u7fa4\u540d\u79f0\uff0c\u5373\u4f7f\u662f\u5355\u8282\u70b9\u4e5f\u9700\u8981\u8bbe\u7f6e"]}),"\n"]}),"\n",(0,i.jsx)(n.h4,{id:"\u7cfb\u7edf\u4f18\u5316",children:"\u7cfb\u7edf\u4f18\u5316"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"discovery.type=single-node"}),": \u8bbe\u7f6e\u4e3a\u5355\u8282\u70b9\u6a21\u5f0f\uff0c\u9002\u5408\u5f00\u53d1\u548c\u5c0f\u578b\u90e8\u7f72"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"bootstrap.memory_lock=true"}),": \u9501\u5b9a\u5185\u5b58\uff0c\u9632\u6b62\u7cfb\u7edf\u5c06\u5185\u5b58\u4ea4\u6362\u5230\u78c1\u76d8\uff0c\u63d0\u9ad8\u6027\u80fd"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"ES_JAVA_OPTS"}),": \u914d\u7f6e JVM \u5806\u5185\u5b58\u5927\u5c0f\uff0c\u6839\u636e\u5b9e\u9645\u670d\u52a1\u5668\u8d44\u6e90\u8c03\u6574"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"ulimits.memlock"}),": \u79fb\u9664\u7cfb\u7edf\u5bf9\u5185\u5b58\u9501\u5b9a\u7684\u9650\u5236"]}),"\n"]}),"\n",(0,i.jsx)(n.h4,{id:"\u5b89\u5168\u8bbe\u7f6e",children:"\u5b89\u5168\u8bbe\u7f6e"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"xpack.security.enabled=true"}),": \u542f\u7528 X-Pack \u5b89\u5168\u529f\u80fd\uff0c\u63d0\u4f9b\u8ba4\u8bc1\u548c\u6388\u6743"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"ELASTIC_PASSWORD"}),": \u8bbe\u7f6e\u5185\u7f6e\u8d85\u7ea7\u7528\u6237 elastic \u7684\u5bc6\u7801"]}),"\n"]}),"\n",(0,i.jsx)(n.h4,{id:"\u7f51\u7edc\u4e0e\u5b58\u50a8",children:"\u7f51\u7edc\u4e0e\u5b58\u50a8"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"ports"}),": \u5c06 Elasticsearch \u7684 REST API \u548c\u8282\u70b9\u901a\u4fe1\u7aef\u53e3\u6620\u5c04\u5230\u5bbf\u4e3b\u673a"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"volumes"}),": \u6570\u636e\u6301\u4e45\u5316\u5b58\u50a8\uff0c\u907f\u514d\u5bb9\u5668\u91cd\u542f\u6570\u636e\u4e22\u5931"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"networks"}),": \u4f7f\u7528\u81ea\u5b9a\u4e49\u7f51\u7edc\uff0c\u4fbf\u4e8e\u4e0e\u5fae\u8bed\u7cfb\u7edf\u5176\u4ed6\u670d\u52a1\u901a\u4fe1"]}),"\n"]}),"\n",(0,i.jsx)(n.h4,{id:"\u5065\u5eb7\u68c0\u67e5",children:"\u5065\u5eb7\u68c0\u67e5"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"healthcheck"}),": \u5b9a\u671f\u68c0\u67e5 Elasticsearch \u670d\u52a1\u5065\u5eb7\u72b6\u6001\uff0c\u786e\u4fdd\u670d\u52a1\u53ef\u7528\u6027"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u96c6\u6210",children:"\u5fae\u8bed\u7cfb\u7edf\u4e2d\u7684\u5e94\u7528\u96c6\u6210"}),"\n",(0,i.jsx)(n.h3,{id:"\u96c6\u6210\u914d\u7f6e",children:"\u96c6\u6210\u914d\u7f6e"}),"\n",(0,i.jsx)(n.p,{children:"\u5728\u5fae\u8bed\u7cfb\u7edf\u4e2d\u96c6\u6210 Elasticsearch \u9700\u8981\u4ee5\u4e0b\u914d\u7f6e\uff1a"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-properties",children:"# Elasticsearch \u914d\u7f6e\nspring.elasticsearch.uris=http://elasticsearch-bytedesk:9200\nspring.elasticsearch.username=elastic\nspring.elasticsearch.password=bytedesk123\n"})}),"\n",(0,i.jsx)(n.h3,{id:"\u7d22\u5f15\u7ba1\u7406",children:"\u7d22\u5f15\u7ba1\u7406"}),"\n",(0,i.jsx)(n.p,{children:"\u5fae\u8bed\u7cfb\u7edf\u4f1a\u81ea\u52a8\u521b\u5efa\u548c\u7ba1\u7406\u4ee5\u4e0b\u7d22\u5f15\uff1a"}),"\n",(0,i.jsxs)(n.ul,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"bytedesk-messages"}),": \u5b58\u50a8\u6d88\u606f\u6570\u636e\u548c\u5411\u91cf"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"bytedesk-knowledge"}),": \u5b58\u50a8\u77e5\u8bc6\u5e93\u6587\u6863\u548c\u5411\u91cf"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"bytedesk-logs"}),": \u5b58\u50a8\u7cfb\u7edf\u64cd\u4f5c\u65e5\u5fd7"]}),"\n"]}),"\n",(0,i.jsx)(n.h3,{id:"\u5411\u91cf\u68c0\u7d22\u793a\u4f8b",children:"\u5411\u91cf\u68c0\u7d22\u793a\u4f8b"}),"\n",(0,i.jsx)(n.pre,{children:(0,i.jsx)(n.code,{className:"language-java",children:'// \u793a\u4f8b\uff1a\u4f7f\u7528\u5411\u91cf\u68c0\u7d22\u76f8\u4f3c\u6587\u6863\nSearchResponse<KnowledgeDocument> response = elasticsearchClient.search(s -> s\n .index("bytedesk-knowledge")\n .knn(k -> k\n .field("embedding")\n .queryVector(queryEmbedding)\n .k(5)\n .numCandidates(100)\n ),\n KnowledgeDocument.class\n);\n'})}),"\n",(0,i.jsx)(n.h2,{id:"\u6027\u80fd\u4f18\u5316\u5efa\u8bae",children:"\u6027\u80fd\u4f18\u5316\u5efa\u8bae"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u786c\u4ef6\u8d44\u6e90"}),"\uff1a\u751f\u4ea7\u73af\u5883\u5efa\u8bae\u81f3\u5c11 4GB \u5185\u5b58\uff0c8GB \u6216\u66f4\u9ad8\u66f4\u4f73"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u7d22\u5f15\u8bbe\u7f6e"}),"\uff1a\u6839\u636e\u6570\u636e\u7279\u70b9\u8c03\u6574\u5206\u7247\u6570\u548c\u526f\u672c\u6570"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u6279\u91cf\u64cd\u4f5c"}),"\uff1a\u4f7f\u7528\u6279\u91cfAPI\u8fdb\u884c\u6570\u636e\u5199\u5165\uff0c\u51cf\u5c11\u8bf7\u6c42\u6b21\u6570"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u67e5\u8be2\u4f18\u5316"}),"\uff1a\u4f7f\u7528\u8fc7\u6ee4\u5668\u548c\u805a\u5408\u4f18\u5316\u67e5\u8be2\u6027\u80fd"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u5b9a\u671f\u7ef4\u62a4"}),"\uff1a\u8bbe\u7f6e\u7d22\u5f15\u751f\u547d\u5468\u671f\u7ba1\u7406\u7b56\u7565"]}),"\n"]}),"\n",(0,i.jsx)(n.h2,{id:"\u5e38\u89c1\u95ee\u9898\u6392\u67e5",children:"\u5e38\u89c1\u95ee\u9898\u6392\u67e5"}),"\n",(0,i.jsxs)(n.ol,{children:["\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u5185\u5b58\u4e0d\u8db3"}),"\uff1a\u8c03\u6574 ES_JAVA_OPTS \u589e\u52a0 JVM \u5806\u5185\u5b58"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u8fde\u63a5\u8d85\u65f6"}),"\uff1a\u68c0\u67e5\u7f51\u7edc\u914d\u7f6e\u548c\u9632\u706b\u5899\u8bbe\u7f6e"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u96c6\u7fa4\u72b6\u6001\u5f02\u5e38"}),"\uff1a\u4f7f\u7528 ",(0,i.jsx)(n.code,{children:"GET /_cluster/health"})," API \u68c0\u67e5\u96c6\u7fa4\u72b6\u6001"]}),"\n",(0,i.jsxs)(n.li,{children:[(0,i.jsx)(n.strong,{children:"\u7d22\u5f15\u9519\u8bef"}),"\uff1a\u68c0\u67e5\u7d22\u5f15\u6620\u5c04\u914d\u7f6e\u548c\u6570\u636e\u7c7b\u578b"]}),"\n"]}),"\n",(0,i.jsxs)(n.blockquote,{children:["\n",(0,i.jsxs)(n.p,{children:[(0,i.jsx)(n.strong,{children:"\u6ce8\u610f"}),"\uff1a\u751f\u4ea7\u73af\u5883\u90e8\u7f72\u65f6\uff0c\u5efa\u8bae\u8fdb\u4e00\u6b65\u52a0\u5f3a\u5b89\u5168\u63aa\u65bd\uff0c\u5305\u62ec\u8bbe\u7f6eHTTPS\u3001IP\u9650\u5236\u548c\u89d2\u8272\u6743\u9650\u7ba1\u7406\u3002"]}),"\n"]})]})}function o(e={}){const{wrapper:n}={...(0,r.R)(),...e.components};return n?(0,i.jsx)(n,{...e,children:(0,i.jsx)(a,{...e})}):a(e)}}}]);