You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by su...@apache.org on 2023/07/14 15:24:18 UTC

[shardingsphere] branch master updated: Update management document (#27202)

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

sunnianjun 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 e43d3677f6a Update management document (#27202)
e43d3677f6a is described below

commit e43d3677f6a5cfd6210c04d2059a6596af33bd9e
Author: zhaojinchao <zh...@apache.org>
AuthorDate: Fri Jul 14 23:24:08 2023 +0800

    Update management document (#27202)
    
    * Update management document
    
    * update
---
 .../content/reference/management/_index.cn.md      | 43 ++++++++++++++++++----
 .../content/reference/management/_index.en.md      | 43 ++++++++++++++++++----
 2 files changed, 71 insertions(+), 15 deletions(-)

diff --git a/docs/document/content/reference/management/_index.cn.md b/docs/document/content/reference/management/_index.cn.md
index 0ed136cbbf0..682acfb14bc 100644
--- a/docs/document/content/reference/management/_index.cn.md
+++ b/docs/document/content/reference/management/_index.cn.md
@@ -23,13 +23,20 @@ namespace
    ├     ├     ├──0                  
    ├──metadata                                           # Metadata 配置
    ├     ├──${databaseName} 
-   ├     ├     ├──data_sources                           # 存储单元结构配置
-   ├     ├     ├     ├──${dataSourceName}                        
-   ├     ├     ├     ├     ├──active_verison             # 激活版本                                 
-   ├     ├     ├     ├     ├──versions                   # 版本号
-   ├     ├     ├     ├     ├     ├──0
-   ├     ├     ├     ├──...                                
-   ├     ├     ├──schemas                                # Schema 列表   
+   ├     ├     ├──data_sources                          
+   ├     ├     ├     ├──units 							 # 存储单元结构配置
+   ├     ├     ├     ├    ├──${dataSourceName}                        
+   ├     ├     ├     ├    ├     ├──active_verison             # 激活版本                                 
+   ├     ├     ├     ├    ├     ├──versions                   # 版本号
+   ├     ├     ├     ├    ├     ├     ├──0
+   ├     ├     ├     ├    ├──...   
+   ├     ├     ├     ├──nodes 							 # 存储节点结构配置
+   ├     ├     ├     ├    ├──${dataSourceName}                        
+   ├     ├     ├     ├    ├     ├──active_verison             # 激活版本                                
+   ├     ├     ├     ├    ├     ├──versions                   # 版本号
+   ├     ├     ├     ├    ├     ├     ├──0
+   ├     ├     ├     ├    ├──...                             
+   ├     ├     ├──schemas                                   # Schema 列表   
    ├     ├     ├     ├──${schemaName}                    
    ├     ├     ├     ├     ├──tables                     # 表结构配置
    ├     ├     ├     ├     ├     ├──${tableName}         
@@ -116,7 +123,27 @@ kernel-executor-size: 20
 sql-show: true
 ```
 
-### /metadata/${databaseName}/data_sources/ds_0/versions/0
+### /metadata/${databaseName}/data_sources/units/ds_0/versions/0
+
+数据库连接池的,不同数据库连接池属性自适配(例如:DBCP,C3P0,Druid,HikariCP)。
+
+```yaml
+ds_0:
+  initializationFailTimeout: 1
+  validationTimeout: 5000
+  maxLifetime: 1800000
+  leakDetectionThreshold: 0
+  minimumIdle: 1
+  password: root
+  idleTimeout: 60000
+  jdbcUrl: jdbc:mysql://127.0.0.1:3306/ds_0?serverTimezone=UTC&useSSL=false
+  dataSourceClassName: com.zaxxer.hikari.HikariDataSource
+  maximumPoolSize: 50
+  connectionTimeout: 30000
+  username: root
+  poolName: HikariPool-1
+```
+### /metadata/${databaseName}/data_sources/nodes/ds_0/versions/0
 
 数据库连接池的,不同数据库连接池属性自适配(例如:DBCP,C3P0,Druid,HikariCP)。
 
diff --git a/docs/document/content/reference/management/_index.en.md b/docs/document/content/reference/management/_index.en.md
index 4051a7c6457..f8076c5da9f 100644
--- a/docs/document/content/reference/management/_index.en.md
+++ b/docs/document/content/reference/management/_index.en.md
@@ -23,12 +23,19 @@ namespace
    ├     ├     ├──0                  
    ├──metadata                                           # Metadata configuration
    ├     ├──${databaseName} 
-   ├     ├     ├──data_sources                           # Storage unit configuration
-   ├     ├     ├     ├──${dataSourceName}                        
-   ├     ├     ├     ├     ├──active_verison             # Active version                                 
-   ├     ├     ├     ├     ├──versions                   # version list
-   ├     ├     ├     ├     ├     ├──0
-   ├     ├     ├     ├──...                                
+   ├     ├     ├──data_sources                          
+   ├     ├     ├     ├──units 							 # Storage unit configuration
+   ├     ├     ├     ├    ├──${dataSourceName}                        
+   ├     ├     ├     ├    ├     ├──active_verison             # Active version                                 
+   ├     ├     ├     ├    ├     ├──versions                   # version list
+   ├     ├     ├     ├    ├     ├     ├──0
+   ├     ├     ├     ├    ├──...   
+   ├     ├     ├     ├──nodes 							 # Storage node configuration
+   ├     ├     ├     ├    ├──${dataSourceName}                        
+   ├     ├     ├     ├    ├     ├──active_verison             # Active version                                 
+   ├     ├     ├     ├    ├     ├──versions                   # version list
+   ├     ├     ├     ├    ├     ├     ├──0
+   ├     ├     ├     ├    ├──...                             
    ├     ├     ├──schemas                                # Schema list
    ├     ├     ├     ├──${schemaName}                    
    ├     ├     ├     ├     ├──tables                     # Table configuration
@@ -116,7 +123,7 @@ kernel-executor-size: 20
 sql-show: true
 ```
 
-### /metadata/${databaseName}/data_sources/ds_0/versions/0
+### /metadata/${databaseName}/data_sources/units/ds_0/versions/0
 
 Database connection pools, whose properties (e.g. DBCP, C3P0, Druid and HikariCP) are to be configured by the user.
 
@@ -137,6 +144,28 @@ ds_0:
   poolName: HikariPool-1
 ```
 
+### /metadata/${databaseName}/data_sources/nodes/ds_0/versions/0
+
+Database connection pools, whose properties (e.g. DBCP, C3P0, Druid and HikariCP) are to be configured by the user.
+
+```yaml
+ds_0:
+  initializationFailTimeout: 1
+  validationTimeout: 5000
+  maxLifetime: 1800000
+  leakDetectionThreshold: 0
+  minimumIdle: 1
+  password: root
+  idleTimeout: 60000
+  jdbcUrl: jdbc:mysql://127.0.0.1:3306/ds_0?serverTimezone=UTC&useSSL=false
+  dataSourceClassName: com.zaxxer.hikari.HikariDataSource
+  maximumPoolSize: 50
+  connectionTimeout: 30000
+  username: root
+  poolName: HikariPool-1
+```
+
+
 ### /metadata/${databaseName}/rules/sharding/tables/t_order/versions/0
 
 Sharding configuration。