Manifest and pod's resources requirements improvements (staging) (#1332)
* Push changes to analytics manifest and pod's resources * Push changes to api manifest and pod's resources/scaler * Push changes to contract-watcher manifest and pod's resources * Push changes to fly manifest and pod's resources/scaler * Push changes to notional manifest and pod's resources * Push changes to parser manifest and pod's resources/scaler * Push changes to pipeline manifest and pod's resources * Push changes to spy manifest and pod's resources * Push changes to tx-tracker manifest and pod's resources/scaler * Push changes to blockchain-watcher manifest and pod's resources * Added a new serviceAccount named 'blockchain-watcher'
This commit is contained in:
parent
5ac4701b37
commit
0cd38590ce
|
@ -15,13 +15,13 @@ metadata:
|
|||
spec:
|
||||
scaleTargetRef:
|
||||
name: {{ .NAME }}
|
||||
minReplicaCount: 2
|
||||
maxReplicaCount: 10
|
||||
minReplicaCount: {{ .MIN_REPLICAS }}
|
||||
maxReplicaCount: {{ .MAX_REPLICAS }}
|
||||
triggers:
|
||||
- type: aws-sqs-queue
|
||||
- type: {{ .SCALE_TYPE }}
|
||||
authenticationRef:
|
||||
name: keda-auth-aws-{{ .NAME }}
|
||||
metadata:
|
||||
awsRegion: {{ .SQS_AWS_REGION }}
|
||||
queueURL: {{ .PIPELINE_SQS_URL }}
|
||||
queueLength: "5"
|
||||
queueLength: {{ .SCALE_VALUE }}
|
|
@ -16,29 +16,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8000"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
serviceAccountName: analytic
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: {{ .ENVIRONMENT }}
|
||||
|
@ -121,10 +100,31 @@ spec:
|
|||
value: {{ .VAA_PAYLOAD_PARSER_URL }}
|
||||
- name: VAA_PAYLOAD_PARSER_TIMEOUT
|
||||
value: "{{ .VAA_PAYLOAD_PARSER_TIMEOUT }}"
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
restartPolicy: Always
|
||||
serviceAccountName: analytic
|
||||
terminationGracePeriodSeconds: 45
|
|
@ -2,11 +2,15 @@ ENVIRONMENT=staging-mainnet
|
|||
NAMESPACE=wormscan
|
||||
NAME=wormscan-analytics
|
||||
REPLICAS=2
|
||||
MIN_REPLICAS=2
|
||||
MAX_REPLICAS=6
|
||||
SCALE_TYPE=aws-sqs-queue
|
||||
SCALE_VALUE=5
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=64Mi
|
||||
RESOURCES_LIMITS_CPU=200m
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=100m
|
||||
RESOURCES_LIMITS_MEMORY=96Mi
|
||||
RESOURCES_LIMITS_CPU=60m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=40m
|
||||
PIPELINE_SQS_URL=
|
||||
NOTIFICATIONS_SQS_URL=
|
||||
SQS_AWS_REGION=
|
||||
|
|
|
@ -2,11 +2,15 @@ ENVIRONMENT=staging-testnet
|
|||
NAMESPACE=wormscan-testnet
|
||||
NAME=wormscan-analytics
|
||||
REPLICAS=1
|
||||
MIN_REPLICAS=1
|
||||
MAX_REPLICAS=3
|
||||
SCALE_TYPE=aws-sqs-queue
|
||||
SCALE_VALUE=5
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=128Mi
|
||||
RESOURCES_LIMITS_CPU=200m
|
||||
RESOURCES_LIMITS_MEMORY=96Mi
|
||||
RESOURCES_LIMITS_CPU=45m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=100m
|
||||
RESOURCES_REQUESTS_CPU=30m
|
||||
PIPELINE_SQS_URL=
|
||||
NOTIFICATIONS_SQS_URL=
|
||||
SQS_AWS_REGION=
|
||||
|
|
|
@ -6,10 +6,10 @@ metadata:
|
|||
spec:
|
||||
scaleTargetRef:
|
||||
name: {{ .NAME }}
|
||||
minReplicaCount: 2
|
||||
maxReplicaCount: 10
|
||||
minReplicaCount: {{ .MIN_REPLICAS }}
|
||||
maxReplicaCount: {{ .MAX_REPLICAS }}
|
||||
triggers:
|
||||
- type: memory
|
||||
- type: {{ .SCALE_TYPE }}
|
||||
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
|
||||
metadata:
|
||||
value: "50"
|
||||
value: {{ .SCALE_VALUE }}
|
|
@ -34,29 +34,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
successThreshold: 1
|
||||
httpGet:
|
||||
path: /api/v1/ready
|
||||
port: {{ .PORT }}
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 4
|
||||
successThreshold: 1
|
||||
httpGet:
|
||||
path: /api/v1/health
|
||||
port: {{ .PORT }}
|
||||
env:
|
||||
- name: WORMSCAN_ENVIRONMENT
|
||||
value: "{{ .ENVIRONMENT }}"
|
||||
|
@ -159,10 +138,29 @@ spec:
|
|||
value: "{{ .WORMSCAN_CACHE_PROTOCOLSSTATSEXPIRATION }}"
|
||||
- name: WORMSCAN_CACHE_PROTOCOLSSTATSKEY
|
||||
value: "WORMSCAN:PROTOCOLS_STATS"
|
||||
image: {{ .IMAGE_NAME }}
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/v1/health
|
||||
port: {{ .PORT }}
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/v1/ready
|
||||
port: {{ .PORT }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 45
|
|
@ -3,11 +3,15 @@ NAMESPACE=wormscan
|
|||
NAME=wormscan-api
|
||||
PORT=8000
|
||||
REPLICAS=2
|
||||
MIN_REPLICAS=2
|
||||
MAX_REPLICAS=6
|
||||
SCALE_TYPE=memory
|
||||
SCALE_VALUE=90
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=128Mi
|
||||
RESOURCES_LIMITS_CPU=250m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=125m
|
||||
RESOURCES_LIMITS_CPU=100m
|
||||
RESOURCES_REQUESTS_MEMORY=96Mi
|
||||
RESOURCES_REQUESTS_CPU=75m
|
||||
WORMSCAN_RUNMODE=DEVELOPMENT
|
||||
WORMSCAN_LOGLEVEL=INFO
|
||||
WORMSCAN_P2PNETWORK=mainnet
|
||||
|
|
|
@ -3,11 +3,15 @@ NAMESPACE=wormscan-testnet
|
|||
NAME=wormscan-api
|
||||
PORT=8000
|
||||
REPLICAS=2
|
||||
MIN_REPLICAS=1
|
||||
MAX_REPLICAS=3
|
||||
SCALE_TYPE=memory
|
||||
SCALE_VALUE=90
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=64Mi
|
||||
RESOURCES_LIMITS_CPU=30m
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=20m
|
||||
RESOURCES_LIMITS_MEMORY=96Mi
|
||||
RESOURCES_LIMITS_CPU=75m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=50m
|
||||
WORMSCAN_RUNMODE=DEVELOPMENT
|
||||
WORMSCAN_LOGLEVEL=INFO
|
||||
WORMSCAN_P2PNETWORK=testnet
|
||||
|
|
|
@ -8,10 +8,10 @@ IMAGE_NAME=
|
|||
PORT=3005
|
||||
LOG_LEVEL=debug
|
||||
|
||||
RESOURCES_LIMITS_MEMORY=356Mi
|
||||
RESOURCES_LIMITS_MEMORY=512Mi
|
||||
RESOURCES_LIMITS_CPU=200m
|
||||
RESOURCES_REQUESTS_MEMORY=96Mi
|
||||
RESOURCES_REQUESTS_CPU=100m
|
||||
RESOURCES_REQUESTS_MEMORY=384Mi
|
||||
RESOURCES_REQUESTS_CPU=150m
|
||||
NODE_OPTIONS=--max-old-space-size=200
|
||||
|
||||
AWS_IAM_ROLE=
|
||||
|
@ -19,16 +19,18 @@ SNS_REGION=
|
|||
SNS_TOPIC_ARN=
|
||||
|
||||
# RPC list
|
||||
BASE_RPCS=
|
||||
FANTOM_RPCS=
|
||||
ETHEREUM_RPCS=
|
||||
OPTIMISM_RPCS=
|
||||
APTOS_RPCS=
|
||||
ARBITRUM_RPCS=
|
||||
POLYGON_RPCS=
|
||||
AVALANCHE_RPCS=
|
||||
MOONBEAM_RPCS=
|
||||
BASE_RPCS=
|
||||
BSC_RPCS=
|
||||
CELO_RPCS=
|
||||
ETHEREUM_RPCS=
|
||||
FANTOM_RPCS=
|
||||
MOONBEAM_RPCS=
|
||||
OPTIMISM_RPCS=
|
||||
POLYGON_RPCS=
|
||||
SCROLL_RPCS=
|
||||
SOLANA_RATE_LIMIT_LIMIT=15
|
||||
SOLANA_RPCS=
|
||||
|
||||
|
|
|
@ -8,10 +8,10 @@ IMAGE_NAME=
|
|||
PORT=3005
|
||||
LOG_LEVEL=debug
|
||||
|
||||
RESOURCES_LIMITS_MEMORY=356Mi
|
||||
RESOURCES_LIMITS_MEMORY=512Mi
|
||||
RESOURCES_LIMITS_CPU=200m
|
||||
RESOURCES_REQUESTS_MEMORY=96Mi
|
||||
RESOURCES_REQUESTS_CPU=100m
|
||||
RESOURCES_REQUESTS_MEMORY=384Mi
|
||||
RESOURCES_REQUESTS_CPU=150m
|
||||
NODE_OPTIONS=--max-old-space-size=200
|
||||
|
||||
AWS_IAM_ROLE=
|
||||
|
@ -19,25 +19,26 @@ SNS_REGION=
|
|||
SNS_TOPIC_ARN=
|
||||
|
||||
# RPC list
|
||||
BASE_RPCS=
|
||||
FANTOM_RPCS=
|
||||
ETHEREUM_RPCS=
|
||||
OPTIMISM_RPCS=
|
||||
APTOS_RPCS=
|
||||
ARBITRUM_RPCS=
|
||||
POLYGON_RPCS=
|
||||
AVALANCHE_RPCS=
|
||||
BASE_RPCS=
|
||||
BSC_RPCS=
|
||||
CELO_RPCS=
|
||||
ETHEREUM_RPCS=
|
||||
FANTOM_RPCS=
|
||||
MOONBEAM_RPCS=
|
||||
OPTIMISM_RPCS=
|
||||
POLYGON_RPCS=
|
||||
SCROLL_RPCS=
|
||||
SOLANA_RATE_LIMIT_LIMIT=15
|
||||
SOLANA_RPCS=
|
||||
|
||||
# Holesky list
|
||||
ETHEREUM_HOLESKY_RPCS=
|
||||
|
||||
# Sepolia RPCs list
|
||||
ARBITRUM_SEPOLIA_RPCS=
|
||||
BASE_SEPOLIA_RPCS=
|
||||
ETHEREUM_SEPOLIA_RPCS=
|
||||
OPTIMISM_SEPOLIA_RPCS=
|
||||
|
||||
# Holesky list
|
||||
ETHEREUM_HOLESKY_RPCS=
|
|
@ -5,3 +5,11 @@ metadata:
|
|||
namespace: {{ .NAMESPACE }}
|
||||
annotations:
|
||||
eks.amazonaws.com/role-arn: {{ .AWS_IAM_ROLE }}
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ServiceAccount
|
||||
metadata:
|
||||
name: blockchain-watcher
|
||||
namespace: {{ .NAMESPACE }}
|
||||
annotations:
|
||||
eks.amazonaws.com/role-arn: {{ .AWS_IAM_ROLE }}
|
|
@ -59,12 +59,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
serviceAccountName: event-watcher
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: {{ .NODE_ENV }}
|
||||
|
@ -84,18 +80,22 @@ spec:
|
|||
value: {{ .NODE_OPTIONS }}
|
||||
- name: JOBS_DIR
|
||||
value: /home/node/app/jobs
|
||||
image: {{ .IMAGE_NAME }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
volumeMounts:
|
||||
- name: metadata-volume
|
||||
mountPath: /home/node/app/metadata-repo
|
||||
- name: jobs-volume
|
||||
mountPath: /home/node/app/jobs
|
||||
restartPolicy: Always
|
||||
serviceAccountName: blockchain-watcher
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: metadata-volume
|
||||
persistentVolumeClaim:
|
||||
|
@ -105,4 +105,4 @@ spec:
|
|||
name: {{ .NAME }}-backfiller-jobs
|
||||
items:
|
||||
- key: {{ .BLOCKCHAIN_ENV }}-jobs.json
|
||||
path: jobs.json
|
||||
path: jobs.json
|
|
@ -114,12 +114,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
serviceAccountName: event-watcher
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: {{ .NODE_ENV }}
|
||||
|
@ -144,18 +140,22 @@ spec:
|
|||
key: solana-urls
|
||||
- name: JOBS_DIR
|
||||
value: /home/node/app/jobs
|
||||
image: {{ .IMAGE_NAME }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
cpu: {{ .SOLANA_RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .SOLANA_RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
cpu: {{ .SOLANA_RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .SOLANA_RESOURCES_REQUESTS_MEMORY }}
|
||||
volumeMounts:
|
||||
- name: metadata-volume
|
||||
mountPath: /home/node/app/metadata-repo
|
||||
- name: jobs-volume
|
||||
mountPath: /home/node/app/jobs
|
||||
restartPolicy: Always
|
||||
serviceAccountName: blockchain-watcher
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: metadata-volume
|
||||
persistentVolumeClaim:
|
||||
|
@ -165,4 +165,4 @@ spec:
|
|||
name: {{ .NAME }}-solana-source-events-1-jobs
|
||||
items:
|
||||
- key: {{ .BLOCKCHAIN_ENV }}-jobs.json
|
||||
path: jobs.json
|
||||
path: jobs.json
|
|
@ -149,12 +149,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
serviceAccountName: event-watcher
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: {{ .NODE_ENV }}
|
||||
|
@ -179,18 +175,22 @@ spec:
|
|||
key: solana-urls
|
||||
- name: JOBS_DIR
|
||||
value: /home/node/app/jobs
|
||||
image: {{ .IMAGE_NAME }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
cpu: {{ .SOLANA_RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .SOLANA_RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
cpu: {{ .SOLANA_RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .SOLANA_RESOURCES_REQUESTS_MEMORY }}
|
||||
volumeMounts:
|
||||
- name: metadata-volume
|
||||
mountPath: /home/node/app/metadata-repo
|
||||
- name: jobs-volume
|
||||
mountPath: /home/node/app/jobs
|
||||
restartPolicy: Always
|
||||
serviceAccountName: blockchain-watcher
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: metadata-volume
|
||||
persistentVolumeClaim:
|
||||
|
@ -200,4 +200,4 @@ spec:
|
|||
name: {{ .NAME }}-solana-target-events-1-jobs
|
||||
items:
|
||||
- key: {{ .BLOCKCHAIN_ENV }}-jobs.json
|
||||
path: jobs.json
|
||||
path: jobs.json
|
|
@ -704,12 +704,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
serviceAccountName: event-watcher
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: {{ .NODE_ENV }}
|
||||
|
@ -759,18 +755,22 @@ spec:
|
|||
- name: APTOS_RPCS
|
||||
value: '{{ .APTOS_RPCS }}'
|
||||
{{ end }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
volumeMounts:
|
||||
- name: metadata-volume
|
||||
mountPath: /home/node/app/metadata-repo
|
||||
- name: jobs-volume
|
||||
mountPath: /home/node/app/jobs
|
||||
restartPolicy: Always
|
||||
serviceAccountName: blockchain-watcher
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: metadata-volume
|
||||
persistentVolumeClaim:
|
||||
|
|
|
@ -567,12 +567,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
serviceAccountName: event-watcher
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: {{ .NODE_ENV }}
|
||||
|
@ -626,18 +622,22 @@ spec:
|
|||
- name: SCROLL_RPCS
|
||||
value: '{{ .SCROLL_RPCS }}'
|
||||
{{ end }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
volumeMounts:
|
||||
- name: metadata-volume
|
||||
mountPath: /home/node/app/metadata-repo
|
||||
- name: jobs-volume
|
||||
mountPath: /home/node/app/jobs
|
||||
restartPolicy: Always
|
||||
serviceAccountName: blockchain-watcher
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: metadata-volume
|
||||
persistentVolumeClaim:
|
||||
|
|
|
@ -1055,12 +1055,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
serviceAccountName: event-watcher
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: {{ .NODE_ENV }}
|
||||
|
@ -1130,18 +1126,22 @@ spec:
|
|||
- name: ETHEREUM_RPCS
|
||||
value: '{{ .ETHEREUM_RPCS }}'
|
||||
{{ end }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
volumeMounts:
|
||||
- name: metadata-volume
|
||||
mountPath: /home/node/app/metadata-repo
|
||||
- name: jobs-volume
|
||||
mountPath: /home/node/app/jobs
|
||||
restartPolicy: Always
|
||||
serviceAccountName: blockchain-watcher
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: metadata-volume
|
||||
persistentVolumeClaim:
|
||||
|
|
|
@ -535,12 +535,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 30
|
||||
serviceAccountName: event-watcher
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
env:
|
||||
- name: NODE_ENV
|
||||
value: {{ .NODE_ENV }}
|
||||
|
@ -618,18 +614,22 @@ spec:
|
|||
- name: MOONBEAM_RPCS
|
||||
value: '{{ .MOONBEAM_RPCS }}'
|
||||
{{ end }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
volumeMounts:
|
||||
- name: metadata-volume
|
||||
mountPath: /home/node/app/metadata-repo
|
||||
- name: jobs-volume
|
||||
mountPath: /home/node/app/jobs
|
||||
restartPolicy: Always
|
||||
serviceAccountName: blockchain-watcher
|
||||
terminationGracePeriodSeconds: 30
|
||||
volumes:
|
||||
- name: metadata-volume
|
||||
persistentVolumeClaim:
|
||||
|
|
|
@ -17,28 +17,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8000"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: {{ .ENVIRONMENT }}
|
||||
|
@ -167,10 +147,30 @@ spec:
|
|||
key: api-key
|
||||
- name: ALERT_ENABLED
|
||||
value: "{{ .ALERT_ENABLED }}"
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 45
|
|
@ -3,10 +3,10 @@ NAMESPACE=wormscan
|
|||
NAME=wormscan-contract-watcher
|
||||
REPLICAS=1
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||
RESOURCES_REQUESTS_CPU=250m
|
||||
RESOURCES_LIMITS_MEMORY=96Mi
|
||||
RESOURCES_LIMITS_CPU=60m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=40m
|
||||
P2P_NETWORK=mainnet
|
||||
PPROF_ENABLED=true
|
||||
ANKR_REQUESTS_PER_SECOND=1000
|
||||
|
|
|
@ -3,10 +3,10 @@ NAMESPACE=wormscan-testnet
|
|||
NAME=wormscan-contract-watcher
|
||||
REPLICAS=1
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=128Mi
|
||||
RESOURCES_LIMITS_CPU=20m
|
||||
RESOURCES_LIMITS_MEMORY=96Mi
|
||||
RESOURCES_LIMITS_CPU=30m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=10m
|
||||
RESOURCES_REQUESTS_CPU=20m
|
||||
P2P_NETWORK=testnet
|
||||
PPROF_ENABLED=false
|
||||
ANKR_REQUESTS_PER_SECOND=10
|
||||
|
|
|
@ -3,11 +3,15 @@ NAMESPACE=wormscan
|
|||
NAME=wormscan-fly
|
||||
API_PORT=
|
||||
REPLICAS=3
|
||||
MIN_REPLICAS=3
|
||||
MAX_REPLICAS=3
|
||||
SCALE_TYPE=memory
|
||||
SCALE_VALUE=90
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=512Mi
|
||||
RESOURCES_LIMITS_CPU=700m
|
||||
RESOURCES_REQUESTS_MEMORY=384Mi
|
||||
RESOURCES_REQUESTS_CPU=500m
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_REQUESTS_MEMORY=192Mi
|
||||
RESOURCES_REQUESTS_CPU=300m
|
||||
SQS_AWS_REGION=
|
||||
VAAS_SQS_URL=
|
||||
OBSERVATIONS_SQS_URL=
|
||||
|
|
|
@ -3,11 +3,15 @@ NAMESPACE=wormscan-testnet
|
|||
NAME=wormscan-fly
|
||||
API_PORT=
|
||||
REPLICAS=2
|
||||
MIN_REPLICAS=2
|
||||
MAX_REPLICAS=2
|
||||
SCALE_TYPE=memory
|
||||
SCALE_VALUE=90
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||
RESOURCES_REQUESTS_CPU=250m
|
||||
RESOURCES_LIMITS_MEMORY=128Mi
|
||||
RESOURCES_LIMITS_CPU=100m
|
||||
RESOURCES_REQUESTS_MEMORY=96Mi
|
||||
RESOURCES_REQUESTS_CPU=80m
|
||||
SQS_AWS_REGION=
|
||||
VAAS_SQS_URL=
|
||||
OBSERVATIONS_SQS_URL=
|
||||
|
|
|
@ -6,10 +6,10 @@ metadata:
|
|||
spec:
|
||||
scaleTargetRef:
|
||||
name: {{ .NAME }}
|
||||
minReplicaCount: 2
|
||||
maxReplicaCount: 10
|
||||
minReplicaCount: {{ .MIN_REPLICAS }}
|
||||
maxReplicaCount: {{ .MAX_REPLICAS }}
|
||||
triggers:
|
||||
- type: memory
|
||||
- type: {{ .SCALE_TYPE }}
|
||||
metricType: Utilization # Allowed types are 'Utilization' or 'AverageValue'
|
||||
metadata:
|
||||
value: "90"
|
||||
value: {{ .SCALE_VALUE }}
|
||||
|
|
|
@ -17,9 +17,6 @@ spec:
|
|||
prometheus.io/port: "{{ .API_PORT }}"
|
||||
spec:
|
||||
hostNetwork: true
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
serviceAccountName: fly
|
||||
initContainers:
|
||||
- name: init-fly
|
||||
image: busybox:1.28
|
||||
|
@ -28,26 +25,6 @@ spec:
|
|||
privileged: true
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
securityContext:
|
||||
privileged: true
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: {{ .API_PORT }}
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: {{ .API_PORT }}
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: {{ .ENVIRONMENT }}
|
||||
|
@ -141,13 +118,38 @@ spec:
|
|||
value: "{{ .VAAS_PYTH_DEDUP_CACHE_NUM_KEYS }}"
|
||||
- name: VAAS_PYTH_DEDUP_CACHE_MAX_COSTS_MB
|
||||
value: "{{ .VAAS_PYTH_DEDUP_CACHE_MAX_COSTS_MB }}"
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: {{ .API_PORT }}
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: {{ .API_PORT }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
securityContext:
|
||||
privileged: true
|
||||
nodeSelector:
|
||||
eks.amazonaws.com/nodegroup-selector: "wormholescan"
|
||||
restartPolicy: Always
|
||||
serviceAccountName: fly
|
||||
terminationGracePeriodSeconds: 45
|
||||
tolerations:
|
||||
- key: "dedicated"
|
||||
operator: "Equal"
|
||||
|
@ -156,6 +158,4 @@ spec:
|
|||
- key: "dedicated"
|
||||
operator: "Equal"
|
||||
value: "wormholescan"
|
||||
effect: "NoExecute"
|
||||
nodeSelector:
|
||||
eks.amazonaws.com/nodegroup-selector: "wormholescan"
|
||||
effect: "NoExecute"
|
|
@ -4,9 +4,9 @@ NAME=wormscan-notional
|
|||
PORT=8080
|
||||
REPLICAS=2
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||
RESOURCES_REQUESTS_CPU=250m
|
||||
RESOURCES_LIMITS_MEMORY=96Mi
|
||||
RESOURCES_LIMITS_CPU=50m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=30m
|
||||
P2P_NETWORK=mainnet
|
||||
CACHE_CHANNEL=WORMSCAN:NOTIONAL
|
||||
|
|
|
@ -4,9 +4,9 @@ NAME=wormscan-notional
|
|||
PORT=8080
|
||||
REPLICAS=2
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||
RESOURCES_REQUESTS_CPU=250m
|
||||
RESOURCES_LIMITS_MEMORY=96Mi
|
||||
RESOURCES_LIMITS_CPU=50m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=30m
|
||||
P2P_NETWORK=testnet
|
||||
CACHE_CHANNEL=WORMSCAN:NOTIONAL
|
||||
|
|
|
@ -33,28 +33,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "{{ .PORT }}"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: {{ .PORT }}
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: {{ .PORT }}
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: {{ .ENVIRONMENT }}
|
||||
|
@ -86,10 +66,30 @@ spec:
|
|||
configMapKeyRef:
|
||||
name: config
|
||||
key: redis-prefix
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: {{ .PORT }}
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: {{ .PORT }}
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 45
|
|
@ -1,12 +1,16 @@
|
|||
ENVIRONMENT=staging-mainnet
|
||||
NAMESPACE=wormscan
|
||||
NAME=wormscan-parser
|
||||
REPLICAS=4
|
||||
REPLICAS=2
|
||||
MIN_REPLICAS=2
|
||||
MAX_REPLICAS=6
|
||||
SCALE_TYPE=aws-sqs-queue
|
||||
SCALE_VALUE=5
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=256Mi
|
||||
RESOURCES_LIMITS_CPU=500m
|
||||
RESOURCES_REQUESTS_MEMORY=128Mi
|
||||
RESOURCES_REQUESTS_CPU=250m
|
||||
RESOURCES_LIMITS_MEMORY=96Mi
|
||||
RESOURCES_LIMITS_CPU=50m
|
||||
RESOURCES_REQUESTS_MEMORY=64Mi
|
||||
RESOURCES_REQUESTS_CPU=30m
|
||||
PIPELINE_SQS_URL=
|
||||
NOTIFICATIONS_SQS_URL=
|
||||
SQS_AWS_REGION=
|
||||
|
|
|
@ -2,10 +2,14 @@ ENVIRONMENT=staging-testnet
|
|||
NAMESPACE=wormscan-testnet
|
||||
NAME=wormscan-parser
|
||||
REPLICAS=1
|
||||
MIN_REPLICAS=1
|
||||
MAX_REPLICAS=3
|
||||
SCALE_TYPE=aws-sqs-queue
|
||||
SCALE_VALUE=5
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=30Mi
|
||||
RESOURCES_LIMITS_MEMORY=48Mi
|
||||
RESOURCES_LIMITS_CPU=20m
|
||||
RESOURCES_REQUESTS_MEMORY=15Mi
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=10m
|
||||
PIPELINE_SQS_URL=
|
||||
NOTIFICATIONS_SQS_URL=
|
||||
|
|
|
@ -15,13 +15,13 @@ metadata:
|
|||
spec:
|
||||
scaleTargetRef:
|
||||
name: {{ .NAME }}
|
||||
minReplicaCount: 2
|
||||
maxReplicaCount: 10
|
||||
minReplicaCount: {{ .MIN_REPLICAS }}
|
||||
maxReplicaCount: {{ .MAX_REPLICAS }}
|
||||
triggers:
|
||||
- type: aws-sqs-queue
|
||||
- type: {{ .SCALE_TYPE }}
|
||||
authenticationRef:
|
||||
name: keda-auth-aws-{{ .NAME }}
|
||||
metadata:
|
||||
awsRegion: {{ .SQS_AWS_REGION }}
|
||||
queueURL: {{ .PIPELINE_SQS_URL }}
|
||||
queueLength: "5"
|
||||
queueLength: {{ .SCALE_VALUE }}
|
|
@ -16,29 +16,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8000"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
serviceAccountName: parser
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: {{ .ENVIRONMENT }}
|
||||
|
@ -88,10 +67,31 @@ spec:
|
|||
key: api-key
|
||||
- name: METRICS_ENABLED
|
||||
value: "{{ .METRICS_ENABLED }}"
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
restartPolicy: Always
|
||||
serviceAccountName: parser
|
||||
terminationGracePeriodSeconds: 45
|
|
@ -3,10 +3,10 @@ NAMESPACE=wormscan
|
|||
NAME=wormscan-pipeline
|
||||
REPLICAS=2
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=64Mi
|
||||
RESOURCES_LIMITS_CPU=100m
|
||||
RESOURCES_LIMITS_MEMORY=48Mi
|
||||
RESOURCES_LIMITS_CPU=30m
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=50m
|
||||
RESOURCES_REQUESTS_CPU=20m
|
||||
SNS_URL=
|
||||
SNS_AWS_REGION=
|
||||
AWS_IAM_ROLE=
|
||||
|
|
|
@ -3,9 +3,9 @@ NAMESPACE=wormscan-testnet
|
|||
NAME=wormscan-pipeline
|
||||
REPLICAS=2
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=30Mi
|
||||
RESOURCES_LIMITS_MEMORY=48Mi
|
||||
RESOURCES_LIMITS_CPU=20m
|
||||
RESOURCES_REQUESTS_MEMORY=15Mi
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=10m
|
||||
SNS_URL=
|
||||
SNS_AWS_REGION=
|
||||
|
|
|
@ -16,29 +16,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8000"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
serviceAccountName: pipeline
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: {{ .ENVIRONMENT }}
|
||||
|
@ -72,11 +51,32 @@ spec:
|
|||
name: opsgenie
|
||||
key: api-key
|
||||
- name: METRICS_ENABLED
|
||||
value: "{{ .METRICS_ENABLED }}"
|
||||
value: "{{ .METRICS_ENABLED }}"
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
restartPolicy: Always
|
||||
serviceAccountName: pipeline
|
||||
terminationGracePeriodSeconds: 45
|
|
@ -4,10 +4,10 @@ NAME=wormscan-spy
|
|||
PORT=7777
|
||||
REPLICAS=2
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=30Mi
|
||||
RESOURCES_LIMITS_CPU=20m
|
||||
RESOURCES_REQUESTS_MEMORY=15Mi
|
||||
RESOURCES_REQUESTS_CPU=10m
|
||||
RESOURCES_LIMITS_MEMORY=48Mi
|
||||
RESOURCES_LIMITS_CPU=100m
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=80m
|
||||
GRPC_ADDRESS=0.0.0.0:7777
|
||||
HOSTNAME=spy.staging.wormscan.io
|
||||
PPROF_ENABLED=true
|
||||
|
|
|
@ -4,10 +4,10 @@ NAME=wormscan-spy
|
|||
PORT=7777
|
||||
REPLICAS=2
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=30Mi
|
||||
RESOURCES_LIMITS_CPU=20m
|
||||
RESOURCES_REQUESTS_MEMORY=16Mi
|
||||
RESOURCES_REQUESTS_CPU=10m
|
||||
RESOURCES_LIMITS_MEMORY=48Mi
|
||||
RESOURCES_LIMITS_CPU=100m
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=80m
|
||||
GRPC_ADDRESS=0.0.0.0:7777
|
||||
HOSTNAME=spy.testnet.wormscan.io
|
||||
PPROF_ENABLED=false
|
||||
|
|
|
@ -33,27 +33,8 @@ spec:
|
|||
labels:
|
||||
app: {{ .NAME }}
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
env:
|
||||
- name: REDIS_URI
|
||||
valueFrom:
|
||||
|
@ -73,10 +54,29 @@ spec:
|
|||
value: "8000"
|
||||
- name: PPROF_ENABLED
|
||||
value: "{{ .PPROF_ENABLED }}"
|
||||
image: {{ .IMAGE_NAME }}
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 45
|
|
@ -2,11 +2,15 @@ ENVIRONMENT=staging-mainnet
|
|||
NAMESPACE=wormscan
|
||||
NAME=wormscan-tx-tracker
|
||||
REPLICAS=2
|
||||
MIN_REPLICAS=2
|
||||
MAX_REPLICAS=6
|
||||
SCALE_TYPE=aws-sqs-queue
|
||||
SCALE_VALUE=5
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=30Mi
|
||||
RESOURCES_LIMITS_CPU=60m
|
||||
RESOURCES_REQUESTS_MEMORY=15Mi
|
||||
RESOURCES_REQUESTS_CPU=40m
|
||||
RESOURCES_LIMITS_MEMORY=48Mi
|
||||
RESOURCES_LIMITS_CPU=30m
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=20m
|
||||
PIPELINE_SQS_URL=
|
||||
NOTIFICATIONS_SQS_URL=
|
||||
SQS_AWS_REGION=
|
||||
|
|
|
@ -1,11 +1,15 @@
|
|||
ENVIRONMENT=staging-testnet
|
||||
NAMESPACE=wormscan-testnet
|
||||
NAME=wormscan-tx-tracker
|
||||
REPLICAS=2
|
||||
REPLICAS=1
|
||||
MIN_REPLICAS=1
|
||||
MAX_REPLICAS=3
|
||||
SCALE_TYPE=aws-sqs-queue
|
||||
SCALE_VALUE=5
|
||||
IMAGE_NAME=
|
||||
RESOURCES_LIMITS_MEMORY=30Mi
|
||||
RESOURCES_LIMITS_MEMORY=48Mi
|
||||
RESOURCES_LIMITS_CPU=20m
|
||||
RESOURCES_REQUESTS_MEMORY=15Mi
|
||||
RESOURCES_REQUESTS_MEMORY=32Mi
|
||||
RESOURCES_REQUESTS_CPU=10m
|
||||
PIPELINE_SQS_URL=
|
||||
NOTIFICATIONS_SQS_URL=
|
||||
|
|
|
@ -15,13 +15,13 @@ metadata:
|
|||
spec:
|
||||
scaleTargetRef:
|
||||
name: {{ .NAME }}
|
||||
minReplicaCount: 2
|
||||
maxReplicaCount: 10
|
||||
minReplicaCount: {{ .MIN_REPLICAS }}
|
||||
maxReplicaCount: {{ .MAX_REPLICAS }}
|
||||
triggers:
|
||||
- type: aws-sqs-queue
|
||||
- type: {{ .SCALE_TYPE }}
|
||||
authenticationRef:
|
||||
name: keda-auth-aws-{{ .NAME }}
|
||||
metadata:
|
||||
awsRegion: {{ .SQS_AWS_REGION }}
|
||||
queueURL: {{ .PIPELINE_SQS_URL }}
|
||||
queueLength: "5"
|
||||
queueLength: {{ .SCALE_VALUE }}
|
|
@ -33,32 +33,8 @@ spec:
|
|||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: "8000"
|
||||
spec:
|
||||
restartPolicy: Always
|
||||
terminationGracePeriodSeconds: 40
|
||||
serviceAccountName: tx-tracker
|
||||
containers:
|
||||
- name: {{ .NAME }}
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
volumeMounts:
|
||||
- name: tx-tracker-config
|
||||
mountPath: /opt/tx-tracker
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 20
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 3
|
||||
failureThreshold: 3
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
env:
|
||||
- name: ENVIRONMENT
|
||||
value: {{ .ENVIRONMENT }}
|
||||
|
@ -99,18 +75,41 @@ spec:
|
|||
value: "/opt/tx-tracker/rpc-provider.json"
|
||||
- name: CONSUMER_WORKERS_SIZE
|
||||
value: "1"
|
||||
image: {{ .IMAGE_NAME }}
|
||||
imagePullPolicy: Always
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 2
|
||||
failureThreshold: 4
|
||||
httpGet:
|
||||
path: /api/health
|
||||
port: 8000
|
||||
readinessProbe:
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 1
|
||||
failureThreshold: 2
|
||||
httpGet:
|
||||
path: /api/ready
|
||||
port: 8000
|
||||
resources:
|
||||
limits:
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_LIMITS_CPU }}
|
||||
memory: {{ .RESOURCES_LIMITS_MEMORY }}
|
||||
requests:
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
cpu: {{ .RESOURCES_REQUESTS_CPU }}
|
||||
memory: {{ .RESOURCES_REQUESTS_MEMORY }}
|
||||
volumeMounts:
|
||||
- name: tx-tracker-config
|
||||
mountPath: /opt/tx-tracker
|
||||
restartPolicy: Always
|
||||
serviceAccountName: tx-tracker
|
||||
terminationGracePeriodSeconds: 45
|
||||
volumes:
|
||||
- name: tx-tracker-config
|
||||
secret:
|
||||
secretName: rpc-provider
|
||||
items:
|
||||
- key: rpc-provider.json
|
||||
path: rpc-provider.json
|
||||
|
||||
path: rpc-provider.json
|
Loading…
Reference in New Issue