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 2019/07/29 04:23:05 UTC
[GitHub] [incubator-shardingsphere] xiaolong7713 commented on issue #2778:
Druid can't monitor when using Sharding-Jdbc
xiaolong7713 commented on issue #2778: Druid can't monitor when using Sharding-Jdbc
URL: https://github.com/apache/incubator-shardingsphere/issues/2778#issuecomment-515839127
Thanks.
It works normal when I modified sharding-jdbc config:
```yaml
shardingsphere:
datasource:
names: ds
ds:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.jdbc.Driver
url: jdbc:mysql://172.31.53.4:3306/phonerobot-outbound?useSSL=false&useUnicode=true&characterEncoding=UTF-8
username: root
password: iflytek
filters: stat,wall,slf4j
druid:
initialSize: 5
minIdle: 5
maxActive: 50
maxWait: 60000
timeBetweenEvictionRunsMillis: 60000
minEvictableIdleTimeMillis: 30000
validationQuery: SELECT 'x' FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
poolPreparedStatements: true
maxPoolPreparedStatementPerConnectionSize: 20
#filters: stat,wall,slf4j
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
```
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services