]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephadm: add container envs methods to ceph and ceph exporter classes
authorJohn Mulligan <jmulligan@redhat.com>
Sat, 21 Oct 2023 00:18:36 +0000 (20:18 -0400)
committerJohn Mulligan <jmulligan@redhat.com>
Tue, 14 Nov 2023 21:05:48 +0000 (16:05 -0500)
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>
src/cephadm/cephadm.py

index 3ea41e47c9d7b8e6d056f9e2579ad1d1e829ffd6..9d27cbaa990151a635d1bbb7735b29bc5586b8a6 100755 (executable)
@@ -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