You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "vincent50411 (via GitHub)" <gi...@apache.org> on 2024/06/05 03:28:16 UTC
[I] druid连接池配置参数放开test-on-borrow [incubator-seata]
vincent50411 opened a new issue, #6600:
URL: https://github.com/apache/incubator-seata/issues/6600
<!-- Please do not use this issue template to report security vulnerabilities but refer to our [security policy](https://github.com/seata/seata/security/policy). -->
## Why you need it?
私有云环境网络波动不可控,druid连接池异常连接别应用拿到后不做检查(空闲检测时间无法修改,且连接不可替换),导致异常连接一直存在,进而导致应用异常,必须手动重启seata服务。
## How it could be?
建议将这4个字段作为配置参数放开,让应用放灵活配置。
ds.setTimeBetweenEvictionRunsMillis(120000);
ds.setMinEvictableIdleTimeMillis(300000);
ds.setTestWhileIdle(true);
ds.setTestOnBorrow(false);
--
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@seata.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] druid连接池配置参数放开test-on-borrow [incubator-seata]
Posted by "zrlw (via GitHub)" <gi...@apache.org>.
zrlw commented on issue #6600:
URL: https://github.com/apache/incubator-seata/issues/6600#issuecomment-2160031162
```
ds.setTestWhileIdle(true);
```
druid空闲保活还需要设置keepAlive为true,否则无效
--
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@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] druid连接池配置参数放开test-on-borrow [incubator-seata]
Posted by "xingfudeshi (via GitHub)" <gi...@apache.org>.
xingfudeshi closed issue #6600: druid连接池配置参数放开test-on-borrow
URL: https://github.com/apache/incubator-seata/issues/6600
--
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@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] druid连接池配置参数放开test-on-borrow [incubator-seata]
Posted by "xingfudeshi (via GitHub)" <gi...@apache.org>.
xingfudeshi commented on issue #6600:
URL: https://github.com/apache/incubator-seata/issues/6600#issuecomment-2149101731
Hi,Druid related configurations can be configured on your application side, independent of Seata. You may refer to this https://github.com/alibaba/druid/tree/master/druid-spring-boot-starter
--
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@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] druid连接池配置参数放开test-on-borrow [incubator-seata]
Posted by "xingfudeshi (via GitHub)" <gi...@apache.org>.
xingfudeshi commented on issue #6600:
URL: https://github.com/apache/incubator-seata/issues/6600#issuecomment-2609097966
@vincent50411 Hello, please take a look at this PR and see if it meets your needs?
--
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@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org
Re: [I] druid连接池配置参数放开test-on-borrow [incubator-seata]
Posted by "xingfudeshi (via GitHub)" <gi...@apache.org>.
xingfudeshi closed issue #6600: druid连接池配置参数放开test-on-borrow
URL: https://github.com/apache/incubator-seata/issues/6600
--
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@seata.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org