You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ki...@apache.org on 2020/06/18 07:46:41 UTC

[shardingsphere] branch master updated: Add cluster and metrics configurations for distribution (#6108)

This is an automated email from the ASF dual-hosted git repository.

kimmking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 0573ffc  Add cluster and metrics configurations for distribution (#6108)
0573ffc is described below

commit 0573ffce388042085d37afc51b197d7a54db2226
Author: Haoran Meng <lo...@163.com>
AuthorDate: Thu Jun 18 15:46:29 2020 +0800

    Add cluster and metrics configurations for distribution (#6108)
---
 .../src/main/resources/conf/server.yaml                  | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/shardingsphere-distribution/shardingsphere-proxy-distribution/src/main/resources/conf/server.yaml b/shardingsphere-distribution/shardingsphere-proxy-distribution/src/main/resources/conf/server.yaml
index d09f394..c856b48 100644
--- a/shardingsphere-distribution/shardingsphere-proxy-distribution/src/main/resources/conf/server.yaml
+++ b/shardingsphere-distribution/shardingsphere-proxy-distribution/src/main/resources/conf/server.yaml
@@ -42,6 +42,20 @@
 #      password: sharding 
 #      authorizedSchemas: sharding_db
 #
+#metrics:
+#  name: prometheus
+#  host:  127.0.0.1
+#  port:  9190
+#
+#cluster:
+#  heartbeat:
+#    sql: select 1
+#    threadCount: 1
+#    interval: 60
+#    retryEnable: false
+#    retryMaximum: 3
+#    retryInterval: 3
+#
 #props:
 #  max.connections.size.per.query: 1
 #  acceptor.size: 16  # The default value is available processors count * 2.
@@ -52,6 +66,8 @@
 #    # BASE: Proxy will run with B.A.S.E transaction.
 #  proxy.transaction.type: LOCAL
 #  proxy.opentracing.enabled: false
+#  proxy.metrics.enabled: false
+#  proxy.cluster.enabled: false
 #  proxy.hint.enabled: false
 #  query.with.cipher.column: true
 #  sql.show: false