Commit Graph

4 Commits

Author SHA1 Message Date
Kevin Carter eac3740711 Convert role to use a common systemd service role
This removes the systemd service templates and tasks from this role and
leverages a common systemd service role instead. This change removes a
lot of code duplication across all roles all without sacrificing features
or functionality. The intention of this change is to ensure uniformity and
reduce the maintenance burden on the community when sweeping changes are
needed.

Change-Id: Id817631699d711993bbdad08660d8067550430e6
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2018-07-30 23:12:38 +00:00
Jesse Pretorius 2666780aa3 Reduce init restart/kill times
The systemd unit 'TimeoutSec' value which controls the time
between sending a SIGTERM signal and a SIGKILL signal when
stopping or restarting the service has been reduced from 300
seconds to 120 seconds. This provides 2 minutes for long-lived
sessions to drain while preventing new ones from starting
before a restart or a stop.

The 'RestartSec' value which controls the time between the
service stop and start when restarting has been reduced from
150 seconds to 2 seconds to make the restart happen faster.

These values can be adjusted by using the *_init_config_overrides
variables which use the config_template task to change template
defaults.

Change-Id: I9cbf75b0e219f92f41014b19931206c19cb8a0fe
2017-05-16 11:26:53 +00:00
Kevin Carter f0c650717e [Trivial] Fix init unit file comment
Change-Id: Ibc27cfd876a94f8f7171f7f38890c36ad8d81f85
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-03-30 15:25:59 +00:00
Kevin Carter 170944e154
Ensure the components are isolated from the system
This creates a specific slice which all OpenStack services will operate
from. By creating an independent slice these components will be governed
away from the system slice allowing us to better optimise resource
consumption.

See the following for more information on slices:

* https://www.freedesktop.org/software/systemd/man/systemd.slice.html

See for following for more information on resource controls:

* https://www.freedesktop.org/software/systemd/man/systemd.resource-control.html

Tools like ``systemd-cgtop`` and ``systemd-cgls`` will now give us
insight into specific processes, process groups, and resouce consumption
in ways that we've not had access to before. To enable some of this reporting
the accounting options have been added to the [Service] section of the unit
file.

Change-Id: I022ecb7c291287116d184bcedecaf1d39530dd72
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-03-28 19:25:20 -05:00