diff options
| author | Andrea Ieri <andrea.ieri@canonical.com> | 2020-06-26 14:21:28 +0000 |
|---|---|---|
| committer | Canonical IS Mergebot <canonical-is-mergebot@canonical.com> | 2020-06-26 14:21:28 +0000 |
| commit | 56b096465f7eb2a9d5844e7acf54bcedbf89e362 (patch) | |
| tree | 56894e6c073892a628fa9f2ea85ac0b05474305b | |
| parent | 57b97246ff4496dc86ec8796ea59c52fb31e3990 (diff) | |
| parent | 446a6b640faec4c4ea2430601ef6f707ad197a36 (diff) | |
Make quotaFiles configurable
Reviewed-on: https://code.launchpad.net/~aieri/charm-mongodb/+git/charm-mongodb/+merge/386345 Reviewed-by: Alvaro Uria <alvaro.uria@canonical.com> Reviewed-by: Zachary Zehring <zachary.zehring@canonical.com>
| -rw-r--r-- | config.yaml | 4 | ||||
| -rwxr-xr-x | hooks/hooks.py | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/config.yaml b/config.yaml index 05b2f79..543835c 100644 --- a/config.yaml +++ b/config.yaml @@ -59,6 +59,10 @@ options: default: False type: boolean description: Enable db quota management + quotafiles: + default: 8 + type: int + description: Limit the number of data files per database. Only effective if quota management is enabled diaglog: default: 0 type: int diff --git a/hooks/hooks.py b/hooks/hooks.py index b59a6a7..fab26b9 100755 --- a/hooks/hooks.py +++ b/hooks/hooks.py @@ -348,6 +348,7 @@ def mongodb_conf(config_data=None): # noqa: C901 is too complex (28) # quota if config_data['quota']: config.append("quota = true") + config.append("quotaFiles = {}".format(config_data['quotafiles'])) config.append("") if not is_bionic_or_greater(): |
