From 2cf807049f537e551a4fac7fe6306f9bd94cb037 Mon Sep 17 00:00:00 2001 From: Matthew Abbott Date: Mon, 10 Mar 2025 17:26:52 -0500 Subject: [PATCH] Add documentation, move concurrency near resources --- values.yaml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/values.yaml b/values.yaml index 86339e0..736b590 100644 --- a/values.yaml +++ b/values.yaml @@ -35,11 +35,29 @@ mastodon: # Whether to perform DB migrations on `helm upgrade`. dbMigrate: enabled: true + + # WARNING: deploySearch is potentially a very expensive job! + # Only enable this once at a time, when you deploy elasticsearch or when + # the upgrade notes for a new mastodon version request rebuilding search. + # Recommended use is via `-f mastodon.hooks.deploySearch.enabled=true` + # to ensure the job is only dispatched for a single upgrade when required. + # This job may take days to run on very large instances. Even small + # instances may take long enough to trigger helm's completion timeout, so + # DO NOT PANIC if helm complains; simply verify the job is still running. + # + # Builds or rebuilds the elasticsearch indices via `tootctl deploy search` + # with timing hooks to ensure the job runs immediately after install/upgrade + # and will be restarted if another, corrective upgrade is triggered. + # Please check the tootctl documentation and upgrade notes to pick values. + # + # NOTE: The resource stanza set below is intentionally very conservative. + # Consider assigning a liberal chunk of your cluster's typical headroom. deploySearch: enabled: false - concurrency: 5 resetChewy: true - only: "" # one index name. Possible values: instances, accounts, tags, statuses, public_statuses + # one index name. Possible values: instances, accounts, tags, statuses, public_statuses + only: "" + concurrency: 5 resources: # this accepts any keys in a full container resources stanza. requests: cpu: 250m