Commit 42854ca2 authored by Aleksey Shirokih's avatar Aleksey Shirokih
Browse files

Pgbouncer max_clients propper migration

parent 72bc6789
...@@ -208,6 +208,10 @@ def migrate(migrator): ...@@ -208,6 +208,10 @@ def migrate(migrator):
conf['pg_password'] = conf.get('password', 'grafana') conf['pg_password'] = conf.get('password', 'grafana')
if "password" in conf: if "password" in conf:
del conf['password'] 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': if srv.service == 'mongod':
conf['db'] = conf['mongod_db'] conf['db'] = conf['mongod_db']
del conf['mongod_db'] del conf['mongod_db']
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment