Bug 1400262

Summary: Cache size configured for memcached is 95% of total RAM
Product: Red Hat OpenStack Reporter: Vagner Farias <vfarias>
Component: openstack-tripleo-heat-templatesAssignee: Alex Schultz <aschultz>
Status: CLOSED ERRATA QA Contact: Gurenko Alex <agurenko>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.0 (Mitaka)CC: aschultz, dmacpher, mburns, rhel-osp-director-maint
Target Milestone: rcKeywords: Triaged
Target Release: 11.0 (Ocata)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openstack-tripleo-heat-templates-6.0.0-0.20170225002532.0rc1.el7ost Doc Type: Bug Fix
Doc Text:
The default memory configuration for Memcached was 95 per cent of total available RAM, which could lead to resource contention. This fix lowers the default value to 50 per cent of total available RAM. You also can now configure this value using the 'MemcachedMaxMemory' setting. This helps reduce possible resource conflicts.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-05-17 19:49:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vagner Farias 2016-11-30 18:25:46 UTC
Description of problem:
Currently OSP-d is configuring cache size for memcached to be 95% of total RAM as this is the default for openstack-puppet-modules. Although I'm unsure this could cause trouble as memcached is usually running together with other services (at least up to RHOSP 9), I'm raising this so it can be evaluated.

A similar bug was opened against Fuel at https://bugs.launchpad.net/fuel/+bug/1439882 

If this is not the right component for opening this bz, please change to the right one.

[root@dc01-controller-0 sysconfig]# facter memorysize
5.67 GB
[root@dc01-controller-0 sysconfig]# grep CACHESIZE /etc/sysconfig/memcached 
CACHESIZE="5515"

Version-Release number of selected component (if applicable):
openstack-tripleo-heat-templates-2.0.0-33.el7ost.noarch

How reproducible:
Always

Comment 1 Red Hat Bugzilla Rules Engine 2017-02-08 16:49:40 UTC
This bugzilla has been removed from the release and needs to be reviewed and Triaged for another Target Release.

Comment 4 Gurenko Alex 2017-03-28 08:29:19 UTC
Tested on puddle 2017-03-24.2

[stack@undercloud-0 ~]$ ssh heat-admin.24.17 "hostname; facter memorysize; grep CACHESIZE /etc/sysconfig/memcached"
controller-0.localdomain
7.64 GB
CACHESIZE="3911"

Comment 6 errata-xmlrpc 2017-05-17 19:49:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHEA-2017:1245