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 <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2023-10-20 20:18:36 -04:00
parent 882073bc46
commit a2bd2a435e

View File

@ -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