blackfox1983 commented on a change in pull request #4261:
URL: https://github.com/apache/incubator-doris/pull/4261#discussion_r465683575



##########
File path: docs/zh-CN/administrator-guide/http-actions/fe/bootstrap-action.md
##########
@@ -0,0 +1,125 @@
+---
+{
+    "title": "Bootstrap Action",
+    "language": "zh-CN"
+}
+---
+
+<!-- 
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing,
+software distributed under the License is distributed on an
+"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, either express or implied.  See the License for the
+specific language governing permissions and limitations
+under the License.
+-->
+
+# Bootstrap Action
+
+## Request
+
+`GET /api/bootstrap`
+
+## Description
+
+用于判断FE是否启动完成。当不提供任何参数时,仅返回是否启动成功。如果提供了 `token` 和 `cluster_id`,则返回更多详细信息
+    
+## Path parameters
+
+无
+
+## Query parameters
+
+* `cluster_id`
+
+    集群id。可以在 `palo-meta/image/VERSION` 文件中查看。
+    
+* `token`
+
+    集群token。可以在 `palo-meta/image/VERSION` 文件中查看。
+
+## Request body
+
+无
+
+## Response
+
+* 不提供参数
+
+    ```
+    {
+       "msg": "OK",
+       "code": 0,
+       "data": null,
+       "count": 0
+    }
+    ```
+    
+    code 为 200 表示FE节点启动成功。非 200 的错误码表示其他错误。
+    
+* 提供 `token` 和 `cluster_id`
+
+    ```
+    {
+       "msg": "OK",
+       "code": 0,
+       "data": {
+               "queryPort": 9030,
+               "rpcPort": 9020,
+               "maxReplayedJournal": 17287
+       },

Review comment:
       可否提供be的信息呢?比如be hosts、port、alive……
   
   主要是 有时候想看系统状态的时候,想一键都看到。且fe是master,可以拿到总览全局的数据。




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to