Bug 1970913

Summary: [RHCS Containers] Setting environment variable TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES for all the ceph daemons
Product: [Red Hat Storage] Red Hat Ceph Storage Reporter: Vikhyat Umrao <vumrao>
Component: Ceph-AnsibleAssignee: Dimitri Savineau <dsavinea>
Status: CLOSED ERRATA QA Contact: Ameena Suhani S H <amsyedha>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.2CC: amsyedha, aschoen, ceph-eng-bugs, gabrioux, gmeno, jdurgin, nojha, nthomas, tserlin, twilkins, vereddy, ykaul
Target Milestone: ---   
Target Release: 4.2z3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ceph-ansible-4.0.61-1.el8cp, ceph-ansible-4.0.61-1.el7cp Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-09-27 18:26:24 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 Vikhyat Umrao 2021-06-11 12:57:26 UTC
Description of problem:

[RHCS Containers] Setting environment variable TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES for all the ceph daemons

I have verified it is set properly in rpm-based installations maybe because of /etc/sysconfig/ceph has this variable set in rpm-based installation.

Coming to containers we have to set the following options:

1. for osds: In all.yml 
ceph_tcmalloc_max_total_thread_cache: 134217728

2. For mons: In mons.yml
ceph_mon_docker_extra_env: "-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{ ceph_tcmalloc_max_total_thread_cache }}"


3. For mgrs: In mgrs.yml
ceph_mgr_docker_extra_env: "-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{ ceph_tcmalloc_max_total_thread_cache }}"


4. For rgws: In rgws.yml 
ceph_rgw_docker_extra_env: "-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{ ceph_tcmalloc_max_total_thread_cache }}"

We need a fix where this is all set by default in RHCS 4.x containers clusters and we do not have to set it manually. The default value for this variable will be 134217728 (128MB).

For RHCS 5.0 we are handling this here - https://bugzilla.redhat.com/show_bug.cgi?id=1970597

Version-Release number of selected component (if applicable):
RHCS 4.2

Comment 1 Vikhyat Umrao 2021-06-11 13:57:30 UTC
(In reply to Vikhyat Umrao from comment #0)
> Description of problem:
> 
> [RHCS Containers] Setting environment variable
> TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES for all the ceph daemons
> 
> I have verified it is set properly in rpm-based installations maybe because
> of /etc/sysconfig/ceph has this variable set in rpm-based installation.
> 
> Coming to containers we have to set the following options:
> 
> 1. for osds: In all.yml 
> ceph_tcmalloc_max_total_thread_cache: 134217728
> 
> 2. For mons: In mons.yml
> ceph_mon_docker_extra_env: "-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{
> ceph_tcmalloc_max_total_thread_cache }}"
> 
> 
> 3. For mgrs: In mgrs.yml
> ceph_mgr_docker_extra_env: "-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{
> ceph_tcmalloc_max_total_thread_cache }}"
> 
> 
> 4. For rgws: In rgws.yml 
> ceph_rgw_docker_extra_env: "-e TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES={{
> ceph_tcmalloc_max_total_thread_cache }}"
> 
> We need a fix where this is all set by default in RHCS 4.x containers
> clusters and we do not have to set it manually. The default value for this
> variable will be 134217728 (128MB).
> 
> For RHCS 5.0 we are handling this here -
> https://bugzilla.redhat.com/show_bug.cgi?id=1970597
> 
> Version-Release number of selected component (if applicable):
> RHCS 4.2

I forgot to mention MDS we also need for MDS :)

Comment 13 errata-xmlrpc 2021-09-27 18:26:24 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 (Red Hat Ceph Storage 4.2 Bug Fix update), 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/RHBA-2021:3670