fix(perf): increase root volume size (#249)
Multiple perf runs have failed due to "no space left on device". See e.g. https://github.com/libp2p/test-plans/actions/runs/5727165977/job/15527780097. The perf terraform launch template previously did not specify a root volume size. Thus terraform used the default: ``` df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 63G 0 63G 0% /dev/shm tmpfs 25G 540K 25G 1% /run /dev/nvme0n1p1 8.0G 1.9G 6.1G 24% / tmpfs 63G 0 63G 0% /tmp tmpfs 13G 0 13G 0% /run/user/1000 ``` With this commit the root volume is increased to 100GB: ``` df -h Filesystem Size Used Avail Use% Mounted on devtmpfs 4.0M 0 4.0M 0% /dev tmpfs 63G 0 63G 0% /dev/shm tmpfs 25G 564K 25G 1% /run /dev/nvme0n1p1 100G 2.6G 98G 3% / tmpfs 63G 8.0K 63G 1% /tmp tmpfs 13G 0 13G 0% /run/user/0 tmpfs 13G 0 13G 0% /run/user/1000 ```
This commit is contained in:
parent
b31b44fbde
commit
ad43602e63
File diff suppressed because it is too large
Load Diff
|
@ -108,4 +108,13 @@ resource "aws_launch_template" "perf" {
|
|||
security_groups = [aws_security_group.restricted_inbound.id]
|
||||
delete_on_termination = true
|
||||
}
|
||||
|
||||
block_device_mappings {
|
||||
device_name = "/dev/xvda"
|
||||
ebs {
|
||||
volume_size = 100 # New root volume size in GiB
|
||||
volume_type = "gp2"
|
||||
delete_on_termination = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -19,7 +19,7 @@ resource "aws_instance" "perf" {
|
|||
|
||||
launch_template {
|
||||
name = "perf-node"
|
||||
version = "2"
|
||||
version = "3"
|
||||
}
|
||||
|
||||
key_name = aws_key_pair.perf.key_name
|
||||
|
|
Loading…
Reference in New Issue