From 4aa9b5b28115ee2fd1f91b25fe06e6f2de3a64c8 Mon Sep 17 00:00:00 2001
From: Nicolas Dandrimont <nicolas@dandrimont.eu>
Date: Tue, 16 Jan 2024 12:40:37 +0100
Subject: [PATCH] indexers: deploy extrinsic metadata indexer to production

Ref. swh/infra/sysadm-environment#5200
---
 swh/values/production/swh.yaml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/swh/values/production/swh.yaml b/swh/values/production/swh.yaml
index b717cd39d..b635158fe 100644
--- a/swh/values/production/swh.yaml
+++ b/swh/values/production/swh.yaml
@@ -878,6 +878,31 @@ indexerStorage:
         threads: 2
         workers: 4
 
+indexers:
+  enabled: true
+  priorityClassName: low-workload
+  storageConfigurationRef: remoteROStorageConfiguration
+  schedulerConfigurationRef: remoteSchedulerConfiguration
+  indexerStorageConfigurationRef: remoteReadWriteIndexerStorageConfiguration
+  objstorageConfigurationRef: roObjstorageAwsLocalAzureFallbackConfiguration
+  journalClientConfigurationRef: authenticatedJournalClientConfiguration
+  deployments:
+    extrinsic:
+      indexer_type: extrinsic_metadata
+      journalClientOverrides:
+        group_id: swh.indexer.journal_client.extrinsic_metadata
+        prefix: swh.journal.objects
+        batch_size: 200
+      requestedCpu: 50m
+      requestedMemory: 100Mi
+      extraConfig:
+        tools:
+          name: swh-metadata-detector
+          version: 0.0.2
+          configuration: {}
+      autoScaling:
+        maxReplicaCount: 6
+
 search:
   enabled: true
   priorityClassName: frontend-rpc
-- 
GitLab