Commit bddfbf5c0cf0e50a42de69aa60e1c2c4d7cdb15d
1 parent
fc4ba9dd
修改数据库连接池配置
Showing
1 changed file
with
72 additions
and
72 deletions
class-service.yml
| @@ -15,28 +15,28 @@ spring: | @@ -15,28 +15,28 @@ spring: | ||
| 15 | username: test | 15 | username: test |
| 16 | password: 123456 | 16 | password: 123456 |
| 17 | driver-class-name: com.mysql.jdbc.Driver | 17 | driver-class-name: com.mysql.jdbc.Driver |
| 18 | - max-idle=10 | ||
| 19 | - max-active=100 | ||
| 20 | - max-wait=60000 | ||
| 21 | - min-idle=10 | ||
| 22 | - initial-size=10 | ||
| 23 | - validation-query=SELECT 1 | ||
| 24 | - test-on-borrow=true | ||
| 25 | - test-while-idle=true | 18 | + max-idle: 10 |
| 19 | + max-active: 30 | ||
| 20 | + max-wait: 60000 | ||
| 21 | + min-idle: 10 | ||
| 22 | + initial-size: 10 | ||
| 23 | + validation-query: SELECT 1 | ||
| 24 | + test-on-borrow: true | ||
| 25 | + test-while-idle: true | ||
| 26 | read1: | 26 | read1: |
| 27 | name: gxb_core | 27 | name: gxb_core |
| 28 | url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | 28 | url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true |
| 29 | username: test | 29 | username: test |
| 30 | password: 123456 | 30 | password: 123456 |
| 31 | driver-class-name: com.mysql.jdbc.Driver | 31 | driver-class-name: com.mysql.jdbc.Driver |
| 32 | - max-idle=10 | ||
| 33 | - max-active=100 | ||
| 34 | - max-wait=60000 | ||
| 35 | - min-idle=10 | ||
| 36 | - initial-size=10 | ||
| 37 | - validation-query=SELECT 1 | ||
| 38 | - test-on-borrow=true | ||
| 39 | - test-while-idle=true | 32 | + max-idle: 10 |
| 33 | + max-active: 30 | ||
| 34 | + max-wait: 60000 | ||
| 35 | + min-idle: 10 | ||
| 36 | + initial-size: 10 | ||
| 37 | + validation-query: SELECT 1 | ||
| 38 | + test-on-borrow: true | ||
| 39 | + test-while-idle: true | ||
| 40 | 40 | ||
| 41 | secondDatasource: | 41 | secondDatasource: |
| 42 | name: gxb_core | 42 | name: gxb_core |
| @@ -44,14 +44,14 @@ spring: | @@ -44,14 +44,14 @@ spring: | ||
| 44 | username: test | 44 | username: test |
| 45 | password: 123456 | 45 | password: 123456 |
| 46 | driver-class-name: com.mysql.jdbc.Driver | 46 | driver-class-name: com.mysql.jdbc.Driver |
| 47 | - max-idle=10 | ||
| 48 | - max-active=100 | ||
| 49 | - max-wait=60000 | ||
| 50 | - min-idle=10 | ||
| 51 | - initial-size=10 | ||
| 52 | - validation-query=SELECT 1 | ||
| 53 | - test-on-borrow=true | ||
| 54 | - test-while-idle=true | 47 | + max-idle: 10 |
| 48 | + max-active: 30 | ||
| 49 | + max-wait: 60000 | ||
| 50 | + min-idle: 10 | ||
| 51 | + initial-size: 10 | ||
| 52 | + validation-query: SELECT 1 | ||
| 53 | + test-on-borrow: true | ||
| 54 | + test-while-idle: true | ||
| 55 | redis: | 55 | redis: |
| 56 | database: 0 | 56 | database: 0 |
| 57 | host: redis-server | 57 | host: redis-server |
| @@ -114,28 +114,28 @@ spring: | @@ -114,28 +114,28 @@ spring: | ||
| 114 | username: test | 114 | username: test |
| 115 | password: 123456 | 115 | password: 123456 |
| 116 | driver-class-name: com.mysql.jdbc.Driver | 116 | driver-class-name: com.mysql.jdbc.Driver |
| 117 | - max-idle=10 | ||
| 118 | - max-active=100 | ||
| 119 | - max-wait=60000 | ||
| 120 | - min-idle=10 | ||
| 121 | - initial-size=10 | ||
| 122 | - validation-query=SELECT 1 | ||
| 123 | - test-on-borrow=true | ||
| 124 | - test-while-idle=true | 117 | + max-idle: 10 |
| 118 | + max-active: 30 | ||
| 119 | + max-wait: 60000 | ||
| 120 | + min-idle: 10 | ||
| 121 | + initial-size: 10 | ||
| 122 | + validation-query: SELECT 1 | ||
| 123 | + test-on-borrow: true | ||
| 124 | + test-while-idle: true | ||
| 125 | read1: | 125 | read1: |
| 126 | name: gxb_core | 126 | name: gxb_core |
| 127 | url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | 127 | url: jdbc:mysql://testdb-master:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true |
| 128 | username: test | 128 | username: test |
| 129 | password: 123456 | 129 | password: 123456 |
| 130 | driver-class-name: com.mysql.jdbc.Driver | 130 | driver-class-name: com.mysql.jdbc.Driver |
| 131 | - max-idle=10 | ||
| 132 | - max-active=100 | ||
| 133 | - max-wait=60000 | ||
| 134 | - min-idle=10 | ||
| 135 | - initial-size=10 | ||
| 136 | - validation-query=SELECT 1 | ||
| 137 | - test-on-borrow=true | ||
| 138 | - test-while-idle=true | 131 | + max-idle: 10 |
| 132 | + max-active: 30 | ||
| 133 | + max-wait: 60000 | ||
| 134 | + min-idle: 10 | ||
| 135 | + initial-size: 10 | ||
| 136 | + validation-query: SELECT 1 | ||
| 137 | + test-on-borrow: true | ||
| 138 | + test-while-idle: true | ||
| 139 | 139 | ||
| 140 | secondDatasource: | 140 | secondDatasource: |
| 141 | name: gxb_core | 141 | name: gxb_core |
| @@ -143,14 +143,14 @@ spring: | @@ -143,14 +143,14 @@ spring: | ||
| 143 | username: test | 143 | username: test |
| 144 | password: 123456 | 144 | password: 123456 |
| 145 | driver-class-name: com.mysql.jdbc.Driver | 145 | driver-class-name: com.mysql.jdbc.Driver |
| 146 | - max-idle=10 | ||
| 147 | - max-active=100 | ||
| 148 | - max-wait=60000 | ||
| 149 | - min-idle=10 | ||
| 150 | - initial-size=10 | ||
| 151 | - validation-query=SELECT 1 | ||
| 152 | - test-on-borrow=true | ||
| 153 | - test-while-idle=true | 146 | + max-idle: 10 |
| 147 | + max-active: 30 | ||
| 148 | + max-wait: 60000 | ||
| 149 | + min-idle: 10 | ||
| 150 | + initial-size: 10 | ||
| 151 | + validation-query: SELECT 1 | ||
| 152 | + test-on-borrow: true | ||
| 153 | + test-while-idle: true | ||
| 154 | redis: | 154 | redis: |
| 155 | database: 0 | 155 | database: 0 |
| 156 | host: redis-server | 156 | host: redis-server |
| @@ -212,28 +212,28 @@ spring: | @@ -212,28 +212,28 @@ spring: | ||
| 212 | username: postgres | 212 | username: postgres |
| 213 | password: 5095e001221824498ea622e89bdd3627 | 213 | password: 5095e001221824498ea622e89bdd3627 |
| 214 | driver-class-name: com.mysql.jdbc.Driver | 214 | driver-class-name: com.mysql.jdbc.Driver |
| 215 | - max-idle=10 | ||
| 216 | - max-active=100 | ||
| 217 | - max-wait=60000 | ||
| 218 | - min-idle=10 | ||
| 219 | - initial-size=10 | ||
| 220 | - validation-query=SELECT 1 | ||
| 221 | - test-on-borrow=true | ||
| 222 | - test-while-idle=true | 215 | + max-idle: 10 |
| 216 | + max-active: 30 | ||
| 217 | + max-wait: 60000 | ||
| 218 | + min-idle: 10 | ||
| 219 | + initial-size: 10 | ||
| 220 | + validation-query: SELECT 1 | ||
| 221 | + test-on-borrow: true | ||
| 222 | + test-while-idle: true | ||
| 223 | read1: | 223 | read1: |
| 224 | name: gxb_core | 224 | name: gxb_core |
| 225 | url: jdbc:mysql://db3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | 225 | url: jdbc:mysql://db3:3306/gxb_core?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true |
| 226 | username: postgres | 226 | username: postgres |
| 227 | password: 5095e001221824498ea622e89bdd3627 | 227 | password: 5095e001221824498ea622e89bdd3627 |
| 228 | driver-class-name: com.mysql.jdbc.Driver | 228 | driver-class-name: com.mysql.jdbc.Driver |
| 229 | - max-idle=10 | ||
| 230 | - max-active=100 | ||
| 231 | - max-wait=60000 | ||
| 232 | - min-idle=10 | ||
| 233 | - initial-size=10 | ||
| 234 | - validation-query=SELECT 1 | ||
| 235 | - test-on-borrow=true | ||
| 236 | - test-while-idle=true | 229 | + max-idle: 10 |
| 230 | + max-active: 30 | ||
| 231 | + max-wait: 60000 | ||
| 232 | + min-idle: 10 | ||
| 233 | + initial-size: 10 | ||
| 234 | + validation-query: SELECT 1 | ||
| 235 | + test-on-borrow: true | ||
| 236 | + test-while-idle: true | ||
| 237 | 237 | ||
| 238 | secondDatasource: | 238 | secondDatasource: |
| 239 | name: gxb_core | 239 | name: gxb_core |
| @@ -241,14 +241,14 @@ spring: | @@ -241,14 +241,14 @@ spring: | ||
| 241 | username: postgres | 241 | username: postgres |
| 242 | password: 5095e001221824498ea622e89bdd3627 | 242 | password: 5095e001221824498ea622e89bdd3627 |
| 243 | driver-class-name: com.mysql.jdbc.Driver | 243 | driver-class-name: com.mysql.jdbc.Driver |
| 244 | - max-idle=10 | ||
| 245 | - max-active=100 | ||
| 246 | - max-wait=60000 | ||
| 247 | - min-idle=10 | ||
| 248 | - initial-size=10 | ||
| 249 | - validation-query=SELECT 1 | ||
| 250 | - test-on-borrow=true | ||
| 251 | - test-while-idle=true | 244 | + max-idle: 10 |
| 245 | + max-active: 30 | ||
| 246 | + max-wait: 60000 | ||
| 247 | + min-idle: 10 | ||
| 248 | + initial-size: 10 | ||
| 249 | + validation-query: SELECT 1 | ||
| 250 | + test-on-borrow: true | ||
| 251 | + test-while-idle: true | ||
| 252 | redis: | 252 | redis: |
| 253 | database: 0 | 253 | database: 0 |
| 254 | host: redis1 | 254 | host: redis1 |