6 Commits

Author SHA1 Message Date
ZhongShengping
75ff328e89 Allow db sync timeouts to be configurable
As Openstack projects continue to have longer database migration
chains, the Puppet default timeout of 300 seconds for an execution
is becoming too short a duration on some hardware, leading to timeouts.
As projects continue to add more migration scripts without pruning
the base, timeouts will continue to become more frequent unless
this time can be expanded.

Change-Id: Ia14ad6a2ca9c200867ee5760ca4d72d747d27ad5
Closes-Bug: #1904962
2020-11-23 09:38:25 +08:00
ZhongShengping
d411323255 Add 'openstack-db' tag to db-sync Exec resource
In order to make easy orchestration on all OpenStack db-sync, add this
tag so people can use this tag in composition layer.
A use case it to set some orchestration to make sure MySQL Galera is
ready before running any Exec with this tag.

Change-Id: I8215df855b260b9421df121d136be2e77eab1346
Closes-Bug: #1755102
2018-03-12 16:33:05 +08:00
ZhongShengping
8671eaa64e Fix spec test for sync
Change-Id: I2c5da6f0a030ef17b2907f1e0990c5b4ef241e08
2016-12-01 15:42:24 +08:00
ZhongShengping
cb865e6e5b Add hooks for external install & svc management
This adds defined anchor points for external modules to hook into the
software install, config and service dependency chain.  This allows
external modules to manage software installation (virtualenv,
containers, etc) and service management (pacemaker) without needing rely
on resources that may change or be renamed.

Change-Id: Ibc184a50cf16b7048e0f7249f8894d8661bb76fe
2016-11-28 13:13:17 +08:00
Maksym Yatsenko
d3b12f6937 Change worker defaults to ::os_workers
This patch changes the default worker count from ::processorcount to the
new ::os_workers fact. ::os_workers is based on the number of processors
(currently cpu/4) but is capped at a maximum of 8 worker processors.
This is a much more reasonable default in general and prevents excessive
resource consumption on systems with a large number of CPUs.

Change-Id: Id7c5f3df32b4f350d93ed85b6293fe69e64c2cc3
2016-10-07 17:18:27 +03:00
ZhongShengping
4d6b781b7c Add spec tests for aodh::db::sync
Change-Id: I4539de5a6507faaec504eb17e36bac0d9088e5cc
2016-04-30 22:25:32 +08:00