Skip to content

Commit 8333bc7

Browse files
committed
fix(backend): 修复连接池获取bug #12901
# Reviewed, transaction id: 57377
1 parent 396c556 commit 8333bc7

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dbm-ui/config/default.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,8 +216,8 @@
216216
"COLLATION": "utf8_general_ci",
217217
},
218218
"POOL_OPTIONS": {
219-
"POOL_SIZE": os.environ.get("DB_POOL_SIZE", 5),
220-
"MAX_OVERFLOW": os.environ.get("DB_POOL_MAX_OVERFLOW", 10),
219+
"POOL_SIZE": int(os.environ.get("DB_POOL_SIZE", 5)),
220+
"MAX_OVERFLOW": int(os.environ.get("DB_POOL_MAX_OVERFLOW", 10)),
221221
"RECYCLE": 60 * 60
222222
},
223223
},
@@ -234,8 +234,8 @@
234234
"COLLATION": "utf8_general_ci",
235235
},
236236
"POOL_OPTIONS": {
237-
"POOL_SIZE": os.environ.get("DB_POOL_SIZE", 5),
238-
"MAX_OVERFLOW": os.environ.get("DB_POOL_MAX_OVERFLOW", 10),
237+
"POOL_SIZE": int(os.environ.get("DB_POOL_SIZE", 5)),
238+
"MAX_OVERFLOW": int(os.environ.get("DB_POOL_MAX_OVERFLOW", 10)),
239239
"RECYCLE": 60 * 60
240240
},
241241
},

helm-charts/bk-dbm/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,5 +103,5 @@ dependencies:
103103
description: A Helm chart for bk-dbm
104104
name: bk-dbm
105105
type: application
106-
version: 1.5.0-alpha.68
107-
appVersion: 1.5.0-alpha.68
106+
version: 1.5.0-alpha.69
107+
appVersion: 1.5.0-alpha.69

helm-charts/bk-dbm/charts/dbm/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v2
2-
appVersion: 1.5.0-alpha.3126
2+
appVersion: 1.5.0-alpha.3127
33
description: A Helm chart for dbm
44
name: dbm
55
type: application

0 commit comments

Comments
 (0)