You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/07/28 09:04:03 UTC
[GitHub] [shardingsphere] dachuan9e edited a comment on issue #11451: Naming problem of data source in HikariCP metrics
dachuan9e edited a comment on issue #11451:
URL: https://github.com/apache/shardingsphere/issues/11451#issuecomment-888142178
Right now users can provide property named 'poolName' in configuration file. It will set the data source pool name as the property value. The following is the example:
# Example
dataSources:
ds_0:
url: jdbc:mysql://127.0.0.1:3306/demo_ds_0?serverTimezone=UTC&useSSL=false
username: root
password: 123456
connectionTimeoutMilliseconds: 30000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 50
minPoolSize: 1
poolName: sharding.ds_0
# Attention & Suggestion
- If the poolName is the same shared by different data source it will cause the metrics data errors.
- We recommended that it should keep the name provided by 'poolName' unique all the proxy.
--
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.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org