From 753dadce19ab87d946dc7be16e70be1d6c315c5a Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Wed, 28 Aug 2024 18:32:37 +0200 Subject: [PATCH] chore(gitlab): experiment with advanced search --- snippets/gitlab/package installation.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/snippets/gitlab/package installation.sh b/snippets/gitlab/package installation.sh index 0778326..49e1535 100644 --- a/snippets/gitlab/package installation.sh +++ b/snippets/gitlab/package installation.sh @@ -194,3 +194,15 @@ sudo gitlab-psql -c 'SELECT version();' # Check the status of batched background migrations # Should the query return zero rows, all batched background migrations are complete sudo gitlab-psql -c "SELECT job_class_name, table_name, column_name, job_arguments FROM batched_background_migrations WHERE status NOT IN(3, 6);" + + +# Opensearch integration +# Estimate the required cluster size based on the total size of the repositories +sudo gitlab-rake 'gitlab:elastic:estimate_cluster_size' +# Estimate the required shard sizes for each index based on approximate database counts +# Does *not* include repository data (code, commits, and wikis) +sudo gitlab-rake 'gitlab:elastic:estimate_shard_sizes' +# Enable advanced search with Elasticsearch. +sudo gitlab-rake 'gitlab:elastic:enable_search_with_elasticsearch' +# Disable advanced search with Elasticsearch. +sudo gitlab-rake 'gitlab:elastic:disable_search_with_elasticsearch'