We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
version 1.3.2 nacos与influxDB在一台服务器运行时,启动时infulxDB占用磁盘、服务器资源较高的情况下,nacos derby初始化数据文件会有失败的情况。失败之后只能删除nacos\data\derby。 建议增加容错机制或者将初始化连接时间可配置。 private synchronized void initialize(String jdbcUrl) { HikariDataSource ds = new HikariDataSource(); ds.setDriverClassName(jdbcDriverName); ds.setJdbcUrl(jdbcUrl); ds.setUsername(userName); ds.setPassword(password); ds.setIdleTimeout(30_000L); ds.setMaximumPoolSize(80); ds.setConnectionTimeout(10000L); DataSourceTransactionManager tm = new DataSourceTransactionManager(); tm.setDataSource(ds); if (jdbcTemplateInit) { jt.setDataSource(ds); tjt.setTransactionManager(tm); } else { jt = new JdbcTemplate(); jt.setMaxRows(50000); jt.setQueryTimeout(5000); jt.setDataSource(ds); tjt = new TransactionTemplate(tm); tjt.setTimeout(5000); jdbcTemplateInit = true; } reload(); }
The text was updated successfully, but these errors were encountered:
For alibaba#3607, alibaba#4078, alibaba#4170, Datasource pool configu…
6573878
…ration.
For #3607, #4078, #4170, Datasource pool configuration can be configu…
6b7fb05
…red. (#4178) * For #3607, #4078, #4170, Datasource pool configuration. * Fix ci error.
No branches or pull requests
version 1.3.2
nacos与influxDB在一台服务器运行时,启动时infulxDB占用磁盘、服务器资源较高的情况下,nacos derby初始化数据文件会有失败的情况。失败之后只能删除nacos\data\derby。
建议增加容错机制或者将初始化连接时间可配置。
private synchronized void initialize(String jdbcUrl) {
HikariDataSource ds = new HikariDataSource();
ds.setDriverClassName(jdbcDriverName);
ds.setJdbcUrl(jdbcUrl);
ds.setUsername(userName);
ds.setPassword(password);
ds.setIdleTimeout(30_000L);
ds.setMaximumPoolSize(80);
ds.setConnectionTimeout(10000L);
DataSourceTransactionManager tm = new DataSourceTransactionManager();
tm.setDataSource(ds);
if (jdbcTemplateInit) {
jt.setDataSource(ds);
tjt.setTransactionManager(tm);
} else {
jt = new JdbcTemplate();
jt.setMaxRows(50000);
jt.setQueryTimeout(5000);
jt.setDataSource(ds);
tjt = new TransactionTemplate(tm);
tjt.setTimeout(5000);
jdbcTemplateInit = true;
}
reload();
}
The text was updated successfully, but these errors were encountered: