Commit Graph

10 Commits

Author SHA1 Message Date
Dmitriy Rabotyagov 141db60ee6 Use systemd-journald instead of log files
This patch aims to migrate service from usage of regular syslog files
to journald.

Change-Id: I9ee285aeae85ccf6827a652dcd4ff06958141615
2019-07-22 16:40:36 +03:00
Mohammed Naser d784ea1846 Increase default connection count to 4096
The current default is 1024 however this is not sufficent for most
deployments and it will cause a lot of issues if it does hit the
limit as the server will stop responding.

The overhead for this is very low and other deployment tooling
usually sets this to 8192[1], so 4096 is even very conservative.

[1]: https://github.com/saz/puppet-memcached/blob/bb9d55a2/manifests/init.pp#L26

Change-Id: I604f96a9431076e1f630d2045eac4c88a92935c1
2018-06-13 15:52:12 -04:00
Andreas Jaeger 426a4f5f0d
Clean up the role and further isolate the service
This change cleans up the role a little bit making it more consistent.

A new configuration file has been added which will further isolate
our services using a named cgroup; this is similar to what we already do in
our openstack services. By further isolating the service from the system
we get quite a bit more control and accountability.

Change-Id: I02a84a2560853473c986ad0db26874341a23fc82
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2017-11-29 20:37:56 -06:00
Jimmy McCrory 114a6322ed Fix role gate tests for Ansible 2.3
Add 'become' and root 'user' options to the playbook instead of using
'ansible_become' through an inventory variable.

Change-Id: I5e703e24fe0b3aed2784fbf63d0f2e8f81d44f0b
2017-04-26 09:06:26 -07:00
Jesse Pretorius 82d81c9b02 Use centralised Ansible test scripts
This patch consumes the centralised Ansible test scripts
implemented in https://review.openstack.org/381853

Change-Id: I486582d6793f61a08e09da8fe04203fac9c214bd
2016-10-05 12:42:00 +01:00
Jesse Pretorius 3e5bde5254 Use centralised test scripts
This patch consumes the test scripts implemented by
https://review.openstack.org/375061 to ensure that
the tests and test preparation is consistent and
more maintainable.

Change-Id: Iece5efb32143979f4d4a0322e3b26aaa5f10d66a
2016-09-27 16:03:38 +00:00
Matt Thompson f0185d9d88 Updated role using the Multi-Distro framework
This commit updates the memcached_server role to work on Trusty,
Xenial, and CentOS 7.

NOTES:

1. This role no longer creates the memcache user since both Ubuntu and
   CentOS already install a suitable user
2. We have temporarily disabled testing of the log file since CentOS and
   Xenial do not log to file
3. On Ubuntu we drop ulimits into /etc/defaults/memcached, we need to
   figure out how to do the equivalent on CentOS
4. We update tasks/memcached_config.yml to use the correct memcached
   user in limits.conf, however neither these limits or the ones in
   templates/memcached.debian.j2 actually seem to be taking effect.
   More work in an additional review will need to be done to clean this
   all up.

Implements: blueprint multi-platform-host

Change-Id: I4c32f3d60939615c5d0c6fb202e96aacb35ab9b4
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2016-05-26 16:52:54 +01:00
Jean-Philippe Evrard 2d937511d6 Improved logging for memcached
- Moved to the right folder to get it accessed on bare metal
  when containerized
- Making it work for rsyslog and logrotation's existing
  roles
- Changed the gate tests to reflect path change

Closes-Bug: #1569171

Change-Id: I3a1c2f50ab63b55b39318ba40c0921f6b738cafb
2016-04-13 18:16:07 +01:00
Kevin Carter 40aa9e7df5
updated repo pathing for new org
Change-Id: I80feddde8f79f86f0cb6089becca941cdd708b89
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-10 16:51:45 -06:00
Kevin Carter b818df54e2
first commit
Signed-off-by: Kevin Carter <kevin.carter@rackspace.com>
2015-12-09 09:24:22 -06:00