EBS volumes for experimental runs
NikolayS opened this issue · 6 comments
NikolayS commented
if it's not i3 instance,
-
1) evaluate of disk space required (using the size of Postgres DB dump provided)
-
3) in spot request, request an EBS volume as qell
NikolayS commented
example how to attach an EBS volume: https://github.com/NikolayS/sysbench-tpcc/blob/master/aws_bench_pg.sh#L59
dmius commented
sudo apt install -y awscli jq
aws ec2 create-volume --size 10 --region us-east-1 --availability-zone us-east-1a --volume-type gp2
aws ec2 attach-volume --device /dev/xvdf --volume-id vol-076bd4c1c0b6e1fdf --instance-id $(curl -s http://169.254.169.254/latest/meta-data/instance-id) --region us-east-1
root@35b88d532c1e:/# sudo mkfs.ext4 /dev/xvdf
mke2fs 1.42.13 (17-May-2015)
The file /dev/xvdf does not exist and no size was specified.
NikolayS commented
done?
dmius commented
First item done and merged, second require implementation.