mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-19 21:31:37 +00:00
Merge pull request #201 from XinFinOrg/XIN-243-fix-CD
Reduce devnet ECS cpu and memory to save cost & fix a bug in travis w…
This commit is contained in:
commit
d50e01b7d8
3 changed files with 10 additions and 5 deletions
|
|
@ -125,8 +125,6 @@ jobs:
|
|||
- docker --version # document the version travis is using
|
||||
- docker build -t xdc-devnet -f cicd/devnet/Dockerfile .
|
||||
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 push xinfinorg/devnet:latest
|
||||
|
||||
|
|
@ -140,6 +138,8 @@ jobs:
|
|||
- unzip terraform_"$tf_version"_linux_amd64.zip
|
||||
- sudo mv terraform /usr/local/bin/
|
||||
- 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:
|
||||
- echo "Merge detected, executing changes(Devnet)"
|
||||
- cd cicd/devnet/terraform
|
||||
|
|
|
|||
|
|
@ -45,8 +45,9 @@ else
|
|||
log_level=$LOG_LEVEL
|
||||
fi
|
||||
|
||||
netstats="${NODE_NAME}-${wallet}:xinfin_xdpos_hybrid_network_stats@devnetstats.apothem.network:2000"
|
||||
INSTANCE_IP=$(curl https://checkip.amazonaws.com)
|
||||
netstats="${NODE_NAME}-${wallet}-${INSTANCE_IP}:xinfin_xdpos_hybrid_network_stats@devnetstats.apothem.network:2000"
|
||||
|
||||
|
||||
echo "Running a node with wallet: ${wallet} at IP: ${INSTANCE_IP}"
|
||||
echo "Starting nodes with $bootnodes ..."
|
||||
|
|
|
|||
|
|
@ -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
|
||||
task_role_arn = aws_iam_role.devnet_xdc_ecs_tasks_execution_role.arn
|
||||
|
||||
cpu = 1024
|
||||
memory = 2048
|
||||
# New nodes will consume a lot more CPU usage than existing nodes.
|
||||
# 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 {
|
||||
name = "efs"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue