Skip to content

Commit

Permalink
[ECO-2714] Refactor processor cloud healthcheck, kill stacks (#529)
Browse files Browse the repository at this point in the history
  • Loading branch information
alnoki authored Jan 28, 2025
1 parent 6090616 commit c427505
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 41 deletions.
26 changes: 13 additions & 13 deletions src/cloud-formation/deploy-indexer-fallback.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ parameters:
BrokerImageVersion: '2.2.0'
BrokerMemory: 2048
DbMaxCapacity: 8
DeployAlb: 'true'
DeployAlbDnsRecord: 'true'
DeployBastionHost: 'true'
DeployBroker: 'true'
DeployContainers: 'true'
DeployDb: 'true'
DeployNlb: 'true'
DeployNlbVpcLink: 'true'
DeployPostgrest: 'true'
DeployProcessor: 'true'
DeployRestApi: 'true'
DeployRestApiDnsRecord: 'true'
DeployStack: 'true'
DeployAlb: 'false'
DeployAlbDnsRecord: 'false'
DeployBastionHost: 'false'
DeployBroker: 'false'
DeployContainers: 'false'
DeployDb: 'false'
DeployNlb: 'false'
DeployNlbVpcLink: 'false'
DeployPostgrest: 'false'
DeployProcessor: 'false'
DeployRestApi: 'false'
DeployRestApiDnsRecord: 'false'
DeployStack: 'false'
DeployWaf: 'false'
EnableWafRulesGeneral: 'false'
EnableWafRulesRestApi: 'false'
Expand Down
27 changes: 14 additions & 13 deletions src/cloud-formation/deploy-indexer-main.yaml
Original file line number Diff line number Diff line change
@@ -1,25 +1,26 @@
---
parameters:
BrokerImageVersion: '2.2.0'
DeployAlb: 'true'
DeployAlbDnsRecord: 'true'
DeployBastionHost: 'true'
DeployBroker: 'true'
DeployContainers: 'true'
DeployDb: 'true'
DeployNlb: 'true'
DeployNlbVpcLink: 'true'
DeployPostgrest: 'true'
DeployProcessor: 'true'
DeployRestApi: 'true'
DeployRestApiDnsRecord: 'true'
DeployStack: 'true'
DeployAlb: 'false'
DeployAlbDnsRecord: 'false'
DeployBastionHost: 'false'
DeployBroker: 'false'
DeployContainers: 'false'
DeployDb: 'false'
DeployNlb: 'false'
DeployNlbVpcLink: 'false'
DeployPostgrest: 'false'
DeployProcessor: 'false'
DeployRestApi: 'false'
DeployRestApiDnsRecord: 'false'
DeployStack: 'false'
DeployWaf: 'false'
EnableWafRulesGeneral: 'false'
EnableWafRulesRestApi: 'false'
EnableWafRulesWebSocket: 'false'
Environment: 'main'
Network: 'testnet'
ProcessorHealthCheckStartPeriod: 300
ProcessorImageVersion: '2.2.0'
VpcStackName: 'emoji-vpc'
tags: null
Expand Down
26 changes: 13 additions & 13 deletions src/cloud-formation/deploy-indexer-production.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ parameters:
BrokerImageVersion: '2.2.0'
BrokerMemory: 2048
DbMaxCapacity: 8
DeployAlb: 'true'
DeployAlbDnsRecord: 'true'
DeployBastionHost: 'true'
DeployBroker: 'true'
DeployContainers: 'true'
DeployDb: 'true'
DeployNlb: 'true'
DeployNlbVpcLink: 'true'
DeployPostgrest: 'true'
DeployProcessor: 'true'
DeployRestApi: 'true'
DeployRestApiDnsRecord: 'true'
DeployStack: 'true'
DeployAlb: 'false'
DeployAlbDnsRecord: 'false'
DeployBastionHost: 'false'
DeployBroker: 'false'
DeployContainers: 'false'
DeployDb: 'false'
DeployNlb: 'false'
DeployNlbVpcLink: 'false'
DeployPostgrest: 'false'
DeployProcessor: 'false'
DeployRestApi: 'false'
DeployRestApiDnsRecord: 'false'
DeployStack: 'false'
DeployWaf: 'false'
EnableWafRulesGeneral: 'false'
EnableWafRulesRestApi: 'false'
Expand Down
5 changes: 4 additions & 1 deletion src/cloud-formation/indexer.cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,9 @@ Parameters:
PostgrestServerTraceHeader:
Default: 'X-Request-Id'
Type: 'String'
ProcessorHealthCheckStartPeriod:
Default: 60
Type: 'Number'
ProcessorImageVersion:
Type: 'String'
VpcStackName:
Expand Down Expand Up @@ -1441,7 +1444,7 @@ Resources:
- 'ProcessorWebsocketPort'
Interval: 60
Retries: 2
StartPeriod: 60
StartPeriod: !Ref 'ProcessorHealthCheckStartPeriod'
Timeout: 5
Image: !Join
- ''
Expand Down

0 comments on commit c427505

Please sign in to comment.