mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-10 06:54:26 +00:00
Reduce devnet ECS cpu and memory to save cost & fix a bug in travis where aws is not installed
This commit is contained in:
parent
772a620a61
commit
fc3f011d58
2 changed files with 8 additions and 4 deletions
|
|
@ -125,8 +125,6 @@ jobs:
|
||||||
- docker --version # document the version travis is using
|
- docker --version # document the version travis is using
|
||||||
- docker build -t xdc-devnet -f cicd/devnet/Dockerfile .
|
- docker build -t xdc-devnet -f cicd/devnet/Dockerfile .
|
||||||
script:
|
script:
|
||||||
- pip install --user awscli # install aws cli w/o sudo
|
|
||||||
- export PATH=$PATH:$HOME/.local/bin # put aws in the path
|
|
||||||
- docker tag xdc-devnet:latest xinfinorg/devnet:latest # Always push to the latest
|
- docker tag xdc-devnet:latest xinfinorg/devnet:latest # Always push to the latest
|
||||||
- docker push xinfinorg/devnet:latest
|
- docker push xinfinorg/devnet:latest
|
||||||
|
|
||||||
|
|
@ -140,6 +138,8 @@ jobs:
|
||||||
- unzip terraform_"$tf_version"_linux_amd64.zip
|
- unzip terraform_"$tf_version"_linux_amd64.zip
|
||||||
- sudo mv terraform /usr/local/bin/
|
- sudo mv terraform /usr/local/bin/
|
||||||
- rm terraform_"$tf_version"_linux_amd64.zip
|
- rm terraform_"$tf_version"_linux_amd64.zip
|
||||||
|
- pip install --user awscli # install aws cli w/o sudo
|
||||||
|
- export PATH=$PATH:$HOME/.local/bin # put aws in the path
|
||||||
script:
|
script:
|
||||||
- echo "Merge detected, executing changes(Devnet)"
|
- echo "Merge detected, executing changes(Devnet)"
|
||||||
- cd cicd/devnet/terraform
|
- cd cicd/devnet/terraform
|
||||||
|
|
|
||||||
|
|
@ -21,8 +21,12 @@ resource "aws_ecs_task_definition" "devnet_task_definition_group" {
|
||||||
execution_role_arn = aws_iam_role.devnet_xdc_ecs_tasks_execution_role.arn
|
execution_role_arn = aws_iam_role.devnet_xdc_ecs_tasks_execution_role.arn
|
||||||
task_role_arn = aws_iam_role.devnet_xdc_ecs_tasks_execution_role.arn
|
task_role_arn = aws_iam_role.devnet_xdc_ecs_tasks_execution_role.arn
|
||||||
|
|
||||||
cpu = 1024
|
# New nodes will consume a lot more CPU usage than existing nodes.
|
||||||
memory = 2048
|
# This is due to sync is resource heavy. Recommending set to below if doing sync:
|
||||||
|
# CPU = 2048, Memory = 4096
|
||||||
|
# Please set it back to cpu 512 and memory of 1024 after sync is done to save the cost
|
||||||
|
cpu = 512
|
||||||
|
memory = 1024
|
||||||
volume {
|
volume {
|
||||||
name = "efs"
|
name = "efs"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue