Comments (3)
dataSources:
ds1:
dataSourceClassName: com.zaxxer.hikari.HikariDataSource
driverClassName: oracle.jdbc.OracleDriver
jdbcUrl : jdbc:**********
username: user
password: 123456
connectionTimeoutMilliseconds: 28000
idleTimeoutMilliseconds: 60000
maxLifetimeMilliseconds: 1800000
maxPoolSize: 500
minPoolSize: 100
rules:
-
!SHARDING
tables:
T_ORDER:
actualDataNodes: ds1.T_ORDER_$->{0..2}
tableStrategy:
standard:
shardingColumn: ORDER_ID
shardingAlgorithmName: t_order_inline
keyGenerateStrategy:
column: ORDER_ID
keyGeneratorName: snowflake
auditStrategy:
auditorNames:
- sharding_key_required_auditor
allowHintDisable: trueshardingAlgorithms:
t_order_inline:
type: INLINE
props:
algorithm-expression: T_ORDER_${ORDER_ID% 3}
keyGenerators:
snowflake:
type: SNOWFLAKE
auditors:
sharding_key_required_auditor:
type: DML_SHARDING_CONDITIONS
props:
sql-show: true
from shardingsphere.
@xu-huadong I think this is not an issue with ShardingSpehere. When you start springboot, HikariCP completes the initialization work of related thread pools, including but not limited to starting several internal thread pools according to the configuration, creating initial connections according to the configuration, and validating connections based on initSql in the configuration. These are necessary processes during startup. After initializing the connection pool, you can then obtain corresponding connections from the connection pool to execute SQL statements.
from shardingsphere.
thank you !
from shardingsphere.
Related Issues (20)
- Refactor the acquisition of ContextManager in JDBC metrics
- Can not get 36 connections one time, partition succeed connection(10) have released HOT 2
- java.sql.SQLFeatureNotSupportedException: can't get index from columnLabel[field_2] HOT 2
- EXECUTE ENGINE question
- when i use shardingjdbc 5.3.2 i got a problem, org.hibernate.engine.jdbc.createBlob is not support? HOT 2
- Table or view `t_ent_order` does not exist HOT 5
- sharding table column field lose HOT 2
- Improve pointcut configuration for agent
- ShardingSphere and PostgreSQL rollback only issue
- Got a error: UnknownColumnException: Unknown column. Maybe a bug ? HOT 7
- NPE : Cannot invoke "javax.sql.DataSource.getConnection()" because "this.dataSource" is null when unregister storage unit
- [code conduct] There are a lot of indents in the g4 files that shouldn't be there HOT 4
- Support federated query mysql length function
- Support federated query mysql bit_length function
- Support federated query mysql LOCATE function
- change authority config and restart shardingsphere-proxy, not work HOT 2
- 自带的SnowflakeKeyGenerateAlgorithm id雪花生成器,批量多次调用 第一个一次调用永远是偶数的问题 HOT 1
- Improve the federated query MySQL function HOT 1
- Seems can't support order by after merge from multi tables HOT 2
- ERROR o.s.j.d.DataSourceTransactionManager-Commit exception overridden by rollback exception HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shardingsphere.