more space and power. may need iops too?

This commit is contained in:
Alex Grintsvayg 2021-03-01 10:17:30 -05:00
parent 976ac7ebda
commit 99147223ef
No known key found for this signature in database
GPG key ID: AEB3F089F86A22B5
3 changed files with 7 additions and 3 deletions

View file

@ -1,7 +1,7 @@
{
"BlockDeviceMappings": [{"DeviceName": "/dev/sda1", "Ebs": {"DeleteOnTermination": true, "VolumeSize": 50, "VolumeType": "gp2"}}],
"BlockDeviceMappings": [{"DeviceName": "/dev/sda1", "Ebs": {"DeleteOnTermination": true, "VolumeSize": 250, "VolumeType": "gp2"}}],
"ImageId": "ami-0d5d9d301c853a04a",
"InstanceType": "t3.large",
"InstanceType": "m5d.large",
"KeyName": "master-key-20181218",
"SecurityGroupIds": ["sg-d64cafbe"],
"SubnetId": "subnet-eef8ee96",

View file

@ -14,6 +14,10 @@ sudo systemctl enable docker && sudo systemctl start docker && \
sudo curl -L "https://github.com/docker/compose/releases/download/1.24.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && \
sudo chmod +x /usr/local/bin/docker-compose
sudo groupadd docker
sudo usermod -aG docker ubuntu
newgrp docker
wget -O /home/ubuntu/snapshot.sh "https://raw.githubusercontent.com/lbryio/snapshots/master/snapshot.sh"
wget -O /home/ubuntu/docker-compose.yml "https://raw.githubusercontent.com/lbryio/lbry-sdk/master/docker/docker-compose-wallet-server.yml"

View file

@ -25,7 +25,7 @@ while true; do
HEADERS=$(echo "$info" | grep headers | egrep -o '[0-9]+')
BLOCKS=$(echo "$info" | grep blocks | egrep -o '[0-9]+')
echo "$HEIGHT $HEADERS $BLOCKS $WALLET_BLOCKS"
echo "explorer height $HEIGHT, headers height $HEADERS, lbrycrd $BLOCKS, wallet $WALLET_BLOCKS"
if [[ "$HEADERS" -ge "$HEIGHT" && "$BLOCKS" -ge "$HEADERS" && "$WALLET_BLOCKS" -ge "$BLOCKS" ]]; then break; else sleep 1; fi
done
echo "final: $HEIGHT $HEADERS $BLOCKS $WALLET_BLOCKS"