diff --git a/deploy/tx-tracker/env/production-mainnet.env b/deploy/tx-tracker/env/production-mainnet.env index 46ac8535..6cfad7d8 100644 --- a/deploy/tx-tracker/env/production-mainnet.env +++ b/deploy/tx-tracker/env/production-mainnet.env @@ -5,7 +5,7 @@ REPLICAS=2 MIN_REPLICAS=2 MAX_REPLICAS=10 SCALE_TYPE=aws-sqs-queue -SCALE_VALUE=5 +SCALE_VALUE=25 IMAGE_NAME= RESOURCES_LIMITS_MEMORY=96Mi RESOURCES_LIMITS_CPU=50m diff --git a/deploy/tx-tracker/env/production-testnet.env b/deploy/tx-tracker/env/production-testnet.env index ce6bbb6f..d39e9d00 100644 --- a/deploy/tx-tracker/env/production-testnet.env +++ b/deploy/tx-tracker/env/production-testnet.env @@ -3,9 +3,9 @@ NAMESPACE=wormscan-testnet NAME=wormscan-tx-tracker REPLICAS=2 MIN_REPLICAS=2 -MAX_REPLICAS=6 +MAX_REPLICAS=8 SCALE_TYPE=aws-sqs-queue -SCALE_VALUE=5 +SCALE_VALUE=25 IMAGE_NAME= RESOURCES_LIMITS_MEMORY=96Mi RESOURCES_LIMITS_CPU=20m diff --git a/deploy/tx-tracker/env/staging-mainnet.env b/deploy/tx-tracker/env/staging-mainnet.env index 441ce738..a9823a43 100644 --- a/deploy/tx-tracker/env/staging-mainnet.env +++ b/deploy/tx-tracker/env/staging-mainnet.env @@ -3,9 +3,9 @@ NAMESPACE=wormscan NAME=wormscan-tx-tracker REPLICAS=2 MIN_REPLICAS=2 -MAX_REPLICAS=4 +MAX_REPLICAS=6 SCALE_TYPE=aws-sqs-queue -SCALE_VALUE=5 +SCALE_VALUE=25 IMAGE_NAME= RESOURCES_LIMITS_MEMORY=48Mi RESOURCES_LIMITS_CPU=30m diff --git a/deploy/tx-tracker/env/staging-testnet.env b/deploy/tx-tracker/env/staging-testnet.env index a71f46e9..74360cb6 100644 --- a/deploy/tx-tracker/env/staging-testnet.env +++ b/deploy/tx-tracker/env/staging-testnet.env @@ -5,7 +5,7 @@ REPLICAS=1 MIN_REPLICAS=1 MAX_REPLICAS=3 SCALE_TYPE=aws-sqs-queue -SCALE_VALUE=5 +SCALE_VALUE=25 IMAGE_NAME= RESOURCES_LIMITS_MEMORY=48Mi RESOURCES_LIMITS_CPU=20m diff --git a/deploy/tx-tracker/tx-tracker-keda.yaml b/deploy/tx-tracker/tx-tracker-keda.yaml index d73d7d14..77f21ad2 100644 --- a/deploy/tx-tracker/tx-tracker-keda.yaml +++ b/deploy/tx-tracker/tx-tracker-keda.yaml @@ -24,4 +24,11 @@ spec: metadata: awsRegion: {{ .SQS_AWS_REGION }} queueURL: {{ .PIPELINE_SQS_URL }} + queueLength: "{{ .SCALE_VALUE }}" + - type: {{ .SCALE_TYPE }} + authenticationRef: + name: keda-auth-{{ .NAME }} + metadata: + awsRegion: {{ .SQS_AWS_REGION }} + queueURL: {{ .NOTIFICATIONS_SQS_URL }} queueLength: "{{ .SCALE_VALUE }}" \ No newline at end of file