little-cui commented on a change in pull request #866:
URL: 
https://github.com/apache/servicecomb-service-center/pull/866#discussion_r580799982



##########
File path: docs/user-guides/data-source.md
##########
@@ -0,0 +1,128 @@
+# Data Source
+
+## etcd
+
+Download the etcd according to your own
+environment. [Installation package 
address](https://github.com/etcd-io/etcd/releases).
+
+Configure app.yaml according to your needs.
+
+```YAML
+registry:
+  # buildin, etcd, embeded_etcd, mongo
+  kind: etcd
+  # registry cache, if this option value set 0, service center can run
+  # in lower memory but no longer push the events to client.
+  cache:
+    mode: 1
+    # the cache will be clear after X, if not set cache will be never clear
+    ttl:
+  # enabled if registry.kind equal to etcd or embeded_etcd
+  etcd:
+    # the interval of etcd health check, aggregation conflict check and sync 
loop
+    autoSyncInterval: 30s
+    compact:
+      # indicate how many revision you want to keep in etcd
+      indexDelta: 100
+      interval: 12h
+    cluster:
+      # if registry_plugin equals to 'embeded_etcd', then
+      # name: sc-0
+      # managerEndpoints: http://127.0.0.1:2380";
+      # endpoints: sc-0=http://127.0.0.1:2380
+      # if registry_plugin equals to 'etcd', then
+      # endpoints: 127.0.0.1:2379
+      endpoints: 127.0.0.1:2379
+    # the timeout for failing to establish a connection
+    connect:
+      timeout: 10s
+    # the timeout for failing to read response of registry
+    request:
+      timeout: 30s
+```
+
+|  field  | description  | required  | value |
+|  :----:  | :----:  |  :----:  | :----: |

Review comment:
       应该是左对齐




----------------------------------------------------------------
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:
[email protected]


Reply via email to