mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
mgr/cephadm: do not autotune when _no_autotune_memory label is present
Signed-off-by: Sage Weil <sage@newdream.net>
This commit is contained in:
parent
85ea078787
commit
1e4d20a592
@ -140,6 +140,12 @@ The following host labels have a special meaning to cephadm. All start with ``_
|
||||
an existing host that already contains Ceph daemons, it will cause cephadm to move
|
||||
those daemons elsewhere (except OSDs, which are not removed automatically).
|
||||
|
||||
* ``_no_autotune_memory``: *Do not autotune memory on this host*.
|
||||
|
||||
This label will prevent daemon memory from being tuned even when the
|
||||
``osd_memory_target_autotune`` or similar option is enabled for one or more daemons
|
||||
on that host.
|
||||
|
||||
* ``_admin``: *Distribute client.admin and ceph.conf to this host*.
|
||||
|
||||
By default, an ``_admin`` label is applied to the first host in the cluster (where
|
||||
|
@ -280,7 +280,10 @@ class CephadmServe:
|
||||
if r:
|
||||
failures.append(r)
|
||||
|
||||
if self.mgr.cache.host_needs_autotune_memory(host):
|
||||
if (
|
||||
self.mgr.cache.host_needs_autotune_memory(host)
|
||||
and not self.mgr.inventory.has_label(host, '_no_autotune_memory')
|
||||
):
|
||||
self.log.debug(f"autotuning memory for {host}")
|
||||
self._autotune_host_memory(host)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user