From 9b0a709b996c659bb42015b0c9986a9b22159159 Mon Sep 17 00:00:00 2001 From: Hleb Kanonik Date: Wed, 21 Aug 2024 15:31:55 +0200 Subject: [PATCH] hotfix: Update AMQP settings (#416) --- reportportal/templates/service-api/api-deployment.yaml | 6 ++++-- reportportal/values.yaml | 5 ++++- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/reportportal/templates/service-api/api-deployment.yaml b/reportportal/templates/service-api/api-deployment.yaml index 99647ac..1158468 100644 --- a/reportportal/templates/service-api/api-deployment.yaml +++ b/reportportal/templates/service-api/api-deployment.yaml @@ -96,8 +96,10 @@ spec: value: "{{ .Values.serviceapi.jvmArgs }}" {{- end }} # AMQP settings - - name: REPORTING_QUEUES_COUNT - value: "{{ .Values.serviceapi.queues }}" + - name: RP_AMQP_QUEUES + value: {{ .Values.serviceapi.queues.totalNumber | default "10" | quote }} + - name: RP_AMQP_QUEUESPERPOD + value: {{ .Values.serviceapi.queues.perPodNumber | default "10" | quote }} - name: RP_AMQP_ANALYZER-VHOST value: "{{ .Values.msgbroker.vhost }}" - name: RP_AMQP_PASS diff --git a/reportportal/values.yaml b/reportportal/values.yaml index f595038..b323b2b 100644 --- a/reportportal/values.yaml +++ b/reportportal/values.yaml @@ -155,8 +155,11 @@ serviceapi: jvmArgs: "-Djava.security.egd=file:/dev/./urandom -XX:+UseG1GC -XX:MinRAMPercentage=60.0 -XX:InitiatingHeapOccupancyPercent=70 -XX:MaxRAMPercentage=90.0 -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp" ## @param serviceapi.queues define the number for the queues + ## Where "totalNumber" is the total number of queues. Сalculation formula: perPodNumber = totalNumber / serviceapi.replicaCount ## - queues: 10 + queues: + totalNumber: 10 + perPodNumber: 10 ## @param serviceapi.extraEnvs define the extra environment variables ##