Add worker-multiplier config option for reactive charms

This change add a 'worker-multiplier' option to layer-openstack-api
which is used by a concomitant commit in the charms.openstack library.

The usage is identical to non-reactive charms as described in the
charmhelpers library.

Change-Id: Id4145ffaa622727523003015d7012ece2f0eae4f
This commit is contained in:
Alex Kavanagh 2017-07-25 13:33:45 +01:00
parent 0a163030b7
commit 83f22ed3e6
1 changed files with 9 additions and 0 deletions

View File

@ -39,6 +39,15 @@ options:
default: RegionOne
type: string
description: OpenStack Region
worker-multiplier:
type: float
default:
description: |
The CPU core multiplier to use when configuring worker processes. By
default, the number of workers for each daemon is set to twice the number
of CPU cores a service unit has. When deployed in a LXD container, this
default value will be capped to 4 workers unless this configuration
option is set.
haproxy-server-timeout:
type: int
default: 30000