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

Commit

Permalink
Read connection_pool_size for each plan
Browse files Browse the repository at this point in the history
Bump src/services pointer: git shortlog a6e8494..59850a1
Eagle Chen (2):
  Correct usage of mysql connection pool
  Merge "Correct usage of mysql connection pool"

stefan.schneider (1):
  fix recovery for rabbitmq. added a dummy restore
  method.

Change-Id: Ia403d43e46d8a6a5c7d7474a374fb5c2217b09ae
  • Loading branch information
EagleChen committed Nov 3, 2012
1 parent 3c935b3 commit c21d5f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion jobs/mysql_node_ng/templates/mysql_node.yml.erb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ service = "mysql"
plan_enabled = properties.service_plans && properties.service_plans.send(service.to_sym)
plan = properties.plan || "free"
plan_conf = plan_enabled && properties.service_plans.send(service.to_sym).send(plan.to_sym).configuration
connection_pool_size = plan_enabled && plan_conf.connection_pool_size
node = properties.mysql_node
supported_versions = node.supported_versions
default_version = node.default_version
Expand Down Expand Up @@ -58,7 +59,9 @@ mysql:
mysqldump_bin: <%= "#{version_configs[version]['binary_dir']}/mysqldump" %>
mysql_bin: <%= "#{version_configs[version]['binary_dir']}/mysql" %>
<% end %>
connection_pool_size: <%= node.connection_pool_size || 5 %>
connection_pool_size:
min: <%= connection_pool_size && connection_pool_size.min || 5 %>
max: <%= connection_pool_size && connection_pool_size.max || 10 %>
migration_nfs: <%= properties.service_migration && properties.service_migration.mount_point ? properties.service_migration.mount_point : "/var/vcap/services_migration" %>
gzip_bin: /bin/gzip
<% if node.ip_route %>
Expand Down
2 changes: 1 addition & 1 deletion src/services

0 comments on commit c21d5f7

Please sign in to comment.