fabric-docs-i18n icon indicating copy to clipboard operation
fabric-docs-i18n copied to clipboard

[ja_JP] Operations Guides / The Operations Service

Open shimos opened this issue 2 years ago • 0 comments

Original HTML: https://hyperledger-fabric.readthedocs.io/en/release-2.5/operations_service.html Original Source: https://github.com/hyperledger/fabric/blob/e1e8e2e52aa4fc543360d245fe6554a0eaf81183/docs/source/operations_service.rst

diff --git a/docs/source/operations_service.rst b/docs/source/operations_service.rst
index 9d1314465..9279bd04d 100644
--- a/docs/source/operations_service.rst
+++ b/docs/source/operations_service.rst
@@ -126,13 +126,15 @@ When TLS is disabled, authorization is bypassed and any client that can
 connect to the operations endpoint will be able to use the API.
 
 When TLS is enabled, a valid client certificate must be provided in order to
-access all resources unless explicitly noted otherwise below.
+access the logging and metrics services. The health check and version services
+only require a valid client certificate when ``clientAuthRequired`` is enabled,
+since these services are often used by network operators and only provide read-only information.
 
-When clientAuthRequired is also enabled, the TLS layer will require
+When ``clientAuthRequired`` is enabled, the TLS layer will also require
 a valid client certificate regardless of the resource being accessed.
 
 Log Level Management
-~~~~~~~~~~~~~~~~~~~~
+--------------------
 
 The operations service provides a ``/logspec`` resource that operators can use to
 manage the active logging spec for a peer or orderer. The resource is a
@@ -161,49 +163,8 @@ and an error payload:
 
   {"error":"error message"}
 
-Health Checks
--------------
-
-The operations service provides a ``/healthz`` resource that operators can use to
-help determine the liveness and health of peers and orderers. The resource is
-a conventional REST resource that supports GET requests. The implementation is
-intended to be compatible with the liveness probe model used by Kubernetes but
-can be used in other contexts.
-
-When a ``GET /healthz`` request is received, the operations service will call all
-registered health checkers for the process. When all of the health checkers
-return successfully, the operations service will respond with a ``200 "OK"`` and a
-JSON body:
-
-.. code:: json
-
-  {
-    "status": "OK",
-    "time": "2009-11-10T23:00:00Z"
-  }
-
-If one or more of the health checkers returns an error, the operations service
-will respond with a ``503 "Service Unavailable"`` and a JSON body that includes
-information about which health checker failed:
-
-.. code:: json
-
-  {
-    "status": "Service Unavailable",
-    "time": "2009-11-10T23:00:00Z",
-    "failed_checks": [
-      {
-        "component": "docker",
-        "reason": "failed to connect to Docker daemon: invalid endpoint"
-      }
-    ]
-  }
-
-In the current version, the only health check that is registered is for Docker.
-Future versions will be enhanced to add additional health checks.
-
-When TLS is enabled, a valid client certificate is not required to use this
-service unless ``clientAuthRequired`` is set to ``true``.
+When TLS is enabled, a valid client certificate is required to use this
+service regardless of whether ``clientAuthRequired`` is set to ``true`` at the TLS level.
 
 Metrics
 -------
@@ -229,6 +190,9 @@ requesting the metrics, it is considered a pull system.
 When configured, a Fabric peer or orderer will present a ``/metrics`` resource
 on the operations service.
 
+When TLS is enabled, a valid client certificate is required to use this
+service regardless of whether ``clientAuthRequired`` is set to ``true`` at the TLS level.
+
 Peer
 ^^^^
 
@@ -305,6 +269,53 @@ metrics.
 For a look at the different metrics that are generated, check out
 :doc:`metrics_reference`.
 
+Health Checks
+-------------
+
+The operations service provides a ``/healthz`` resource that operators can use to
+help determine the liveness and health of peers and orderers. The resource is
+a conventional REST resource that supports GET requests. The implementation is
+intended to be compatible with the liveness probe model used by Kubernetes but
+can be used in other contexts.
+
+When a ``GET /healthz`` request is received, the operations service will call all
+registered health checkers for the process to ensure all registered services and
+dependencies are available. When all of the health checkers
+return successfully, the operations service will respond with a ``200 "OK"`` and a
+JSON body:
+
+.. code:: json
+
+  {
+    "status": "OK",
+    "time": "2009-11-10T23:00:00Z"
+  }
+
+If one or more of the health checkers returns an error, the operations service
+will respond with a ``503 "Service Unavailable"`` and a JSON body that includes
+information about which health checker failed:
+
+.. code:: json
+
+  {
+    "status": "Service Unavailable",
+    "time": "2009-11-10T23:00:00Z",
+    "failed_checks": [
+      {
+        "component": "docker",
+        "reason": "failed to connect to Docker daemon: invalid endpoint"
+      }
+    ]
+  }
+
+The peer has the following health checks available:
+
+- Docker daemon health check (if a Docker endpoint is configured for chaincodes)
+- CouchDB health check (if CouchDB is configured as the state database)
+
+When TLS is enabled, a valid client certificate is not required to use this
+service unless ``clientAuthRequired`` is set to ``true``.
+
 Version
 -------
 
@@ -312,5 +323,8 @@ The orderer and peer both expose a ``/version`` endpoint. This endpoint
 serves a JSON document containing the orderer or peer version and the commit
 SHA on which the release was created.
 
+When TLS is enabled, a valid client certificate is not required to use this
+service unless ``clientAuthRequired`` is set to ``true``.
+
 .. Licensed under Creative Commons Attribution 4.0 International License
    https://creativecommons.org/licenses/by/4.0/

shimos avatar Sep 28 '23 01:09 shimos