From: John Mulligan Date: Sat, 21 Oct 2023 00:18:36 +0000 (-0400) Subject: cephadm: add container envs methods to ceph and ceph exporter classes X-Git-Tag: v19.0.0~79^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a2bd2a435e858dda39e99442a1bf81e5807c4138;p=ceph.git cephadm: add container envs methods to ceph and ceph exporter classes These, currently unused, methods will be used in a subsequent change to move logic for setting up containers out of the get_containers function into the daemon type classes in a common way. Signed-off-by: John Mulligan --- diff --git a/src/cephadm/cephadm.py b/src/cephadm/cephadm.py index 3ea41e47c9d7..9d27cbaa9901 100755 --- a/src/cephadm/cephadm.py +++ b/src/cephadm/cephadm.py @@ -370,6 +370,11 @@ class Ceph(ContainerDaemonForm): args.extend(['-n', name, '-f']) args.extend(self.get_daemon_args()) + def customize_container_envs( + self, ctx: CephadmContext, envs: List[str] + ) -> None: + envs.append('TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728') + def default_entrypoint(self) -> str: ep = { 'rgw': '/usr/bin/radosgw', @@ -1598,6 +1603,11 @@ class CephExporter(ContainerDaemonForm): args.extend(['-n', name, '-f']) args.extend(self.get_daemon_args()) + def customize_container_envs( + self, ctx: CephadmContext, envs: List[str] + ) -> None: + envs.append('TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES=134217728') + def default_entrypoint(self) -> str: return self.entrypoint