mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
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:
parent
882073bc46
commit
a2bd2a435e
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user