From b57a902b76c2efa898918bab2bc1d8d619730be9 Mon Sep 17 00:00:00 2001 From: Iker Reyes Date: Wed, 27 Nov 2024 12:23:05 +0100 Subject: [PATCH] Deployment for heartbeat processor Added as a new deployment of dvo-writer clowdapp --- deploy/dvo-writer.yaml | 100 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) diff --git a/deploy/dvo-writer.yaml b/deploy/dvo-writer.yaml index 27266dab..ce7dd306 100644 --- a/deploy/dvo-writer.yaml +++ b/deploy/dvo-writer.yaml @@ -247,6 +247,106 @@ objects: requests: cpu: ${DVO_WRITER_CPU_REQUEST} memory: ${DVO_WRITER_MEMORY_REQUEST} + - name: heartbeatprocessor + minReplicas: ${{MIN_REPLICAS}} + webServices: + public: + enabled: false + private: + enabled: false + metrics: + enabled: true + podSpec: + command: + - ./insights-results-aggregator + - start-heartbeater + env: + - name: INSIGHTS_RESULTS_AGGREGATOR__STORAGE_BACKEND__USE + value: "dvo_recommendations" + - name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__ADDRESSES + value: "${KAFKA_BOOTSTRAP_HOST}:${KAFKA_BOOTSTRAP_PORT}" + - name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__TIMEOUT + value: "${KAFKA_TIMEOUT}" + - name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__TOPIC + value: "platform.upload.announce" + - name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__SERVICE_NAME + value: "heartbeat_writer" + - name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__GROUP + value: "heartbeat_writer_app" + - name: INSIGHTS_RESULTS_AGGREGATOR__BROKER__ENABLED + value: "true" + - name: INSIGHTS_RESULTS_AGGREGATOR__METRICS__ENABLED + value: "true" + - name: INSIGHTS_RESULTS_AGGREGATOR__DVO_RECOMMENDATIONS_STORAGE__DB_DRIVER + value: postgres + - name: INSIGHTS_RESULTS_AGGREGATOR__DVO_RECOMMENDATIONS_STORAGE__PG_PARAMS + value: ${PG_PARAMS} + - name: INSIGHTS_RESULTS_AGGREGATOR__DVO_RECOMMENDATIONS_STORAGE__TYPE + value: "sql" + - name: INSIGHTS_RESULTS_AGGREGATOR__LOGGING__LOG_LEVEL + value: ${LOG_LEVEL} + - name: INSIGHTS_RESULTS_AGGREGATOR__LOGGING__LOGGING_TO_CLOUD_WATCH_ENABLED + value: ${CLOUDWATCH_ENABLED} + - name: INSIGHTS_RESULTS_AGGREGATOR__LOGGING__LOGGING_TO_SENTRY_ENABLED + value: ${SENTRY_ENABLED} + - name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__DEBUG + value: ${CLOUDWATCH_DEBUG} + - name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__STREAM_NAME + value: ${LOG_STREAM} + - name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__CREATE_STREAM_IF_NOT_EXISTS + value: ${CREATE_STREAM_IF_NOT_EXISTS} + - name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__AWS_REGION + valueFrom: + secretKeyRef: + name: cloudwatch + key: aws_region + optional: true + - name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__LOG_GROUP + valueFrom: + secretKeyRef: + name: cloudwatch + key: log_group_name + optional: true + - name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__AWS_ACCESS_ID + valueFrom: + secretKeyRef: + name: cloudwatch + key: aws_access_key_id + optional: true + - name: INSIGHTS_RESULTS_AGGREGATOR__CLOUDWATCH__AWS_SECRET_KEY + valueFrom: + secretKeyRef: + name: cloudwatch + key: aws_secret_access_key + optional: true + - name: INSIGHTS_RESULTS_AGGREGATOR__SENTRY__DSN + valueFrom: + secretKeyRef: + key: dsn + name: dvo-writer-dsn + optional: true + - name: INSIGHTS_RESULTS_AGGREGATOR__SENTRY__ENVIRONMENT + value: ${ENV_NAME} + - name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__ADDRESS + value: ":9000" + - name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__API_PREFIX + value: "${DVO_WRITER_API_PREFIX}" + - name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__API_SPEC_FILE + value: "/openapi/openapi.json" + - name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__DEBUG + value: "true" + - name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__AUTH + value: "false" + - name: INSIGHTS_RESULTS_AGGREGATOR__SERVER__AUTH_TYPE + value: "xrh" + image: ${IMAGE}:${IMAGE_TAG} + resources: + limits: + cpu: ${DVO_WRITER_CPU_LIMIT} + memory: ${DVO_WRITER_MEMORY_LIMIT} + requests: + cpu: ${DVO_WRITER_CPU_REQUEST} + memory: ${DVO_WRITER_MEMORY_REQUEST} database: sharedDbAppName: ccx-insights-results dependencies: