Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
postgresql_server.max_connections won't be used in ng
Browse files Browse the repository at this point in the history
Change-Id: I53e5b3c6349311993b41e66bf58b912633a71816
  • Loading branch information
Frank Lu committed Nov 13, 2012
1 parent 032f508 commit 257ddc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
8 changes: 2 additions & 6 deletions jobs/postgresql_node_ng/templates/postgresql_ctl.erb
Expand Up @@ -84,12 +84,8 @@ case "$1" in

# set adjustable configurations per plan
<%
default_max_connections = 500
if properties.postgresql_server && properties.postgresql_server.max_connections
default_max_connections = properties.postgresql_server.max_connections
end
adjustable_configs = {
:max_connections => [default_max_connections, nil],
adjustable_configs = {
:max_connections => [500, nil],
:shared_buffers => [128, 'MB'],
:effective_cache_size => [128, 'MB'],
:work_mem => [1, 'MB'],
Expand Down
7 changes: 1 addition & 6 deletions jobs/postgresql_node_ng/templates/warden_service_ctl
Expand Up @@ -67,13 +67,8 @@ case $1 in

# set adjustable configurations per plan
<%
default_max_connections = 500
if properties.postgresql_server && properties.postgresql_server.max_connections
default_max_connections = properties.postgresql_server.max_connections
end

adjustable_configs = {
:max_connections => [default_max_connections, nil],
:max_connections => [500, nil],
:shared_buffers => [128, 'MB'],
:effective_cache_size => [128, 'MB'],
:work_mem => [1, 'MB'],
Expand Down

0 comments on commit 257ddc6

Please sign in to comment.