Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
fumufu86
tower
Commits
42854ca2
Commit
42854ca2
authored
Mar 26, 2018
by
Aleksey Shirokih
Browse files
Pgbouncer max_clients propper migration
parent
72bc6789
Changes
1
Hide whitespace changes
Inline
Side-by-side
tower/migrations/035_remove_instances.py
View file @
42854ca2
...
...
@@ -208,6 +208,10 @@ def migrate(migrator):
conf
[
'pg_password'
]
=
conf
.
get
(
'password'
,
'grafana'
)
if
"password"
in
conf
:
del
conf
[
'password'
]
if
srv
.
service
==
'pgbouncer'
:
conf
[
'max_clients'
]
=
conf
.
get
(
'pgbouncer_max_clients'
,
'3000'
)
if
"pgbouncer_max_clients"
in
conf
:
del
conf
[
'pgbouncer_max_clients'
]
if
srv
.
service
==
'mongod'
:
conf
[
'db'
]
=
conf
[
'mongod_db'
]
del
conf
[
'mongod_db'
]
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment