From: Alwin Antreich <a.antreich@proxmox.com>
To: pve-devel@lists.proxmox.com
Subject: [pve-devel] [PATCH manager 2/2] ceph: add option pg_autoscale_mode on pool create
Date: Wed, 14 Oct 2020 16:03:52 +0200 [thread overview]
Message-ID: <20201014140352.2136911-2-a.antreich@proxmox.com> (raw)
In-Reply-To: <20201014140352.2136911-1-a.antreich@proxmox.com>
Different defaults for nautilus (warn) and octopus (on), more
conservative setting used.
Signed-off-by: Alwin Antreich <a.antreich@proxmox.com>
---
PVE/API2/Ceph.pm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/PVE/API2/Ceph.pm b/PVE/API2/Ceph.pm
index 48d0484f..f8b1b22f 100644
--- a/PVE/API2/Ceph.pm
+++ b/PVE/API2/Ceph.pm
@@ -732,6 +732,13 @@ __PACKAGE__->register_method ({
type => 'boolean',
optional => 1,
},
+ pg_autoscale_mode => {
+ description => "The automatic PG scaling mode of the pool.",
+ type => 'string',
+ enum => ['on', 'off', 'warn'],
+ default => 'warn',
+ optional => 1,
+ },
},
},
returns => { type => 'string' },
@@ -762,6 +769,7 @@ __PACKAGE__->register_method ({
$ceph_param->{size} //= 3;
$ceph_param->{min_size} //= 2;
$ceph_param->{application} //= 'rbd';
+ $ceph_param->{pg_autoscale_mode} //= 'warn';
my $worker = sub {
--
2.27.0
next prev parent reply other threads:[~2020-10-14 14:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-14 14:03 [pve-devel] [PATCH manager 1/2] ceph: split out pool set into own method Alwin Antreich
2020-10-14 14:03 ` Alwin Antreich [this message]
2020-10-15 9:49 ` [pve-devel] [PATCH manager 3/3] ceph: gui: add pg_autoscale_mode to pool creation Alwin Antreich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20201014140352.2136911-2-a.antreich@proxmox.com \
--to=a.antreich@proxmox.com \
--cc=pve-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.