News for hackers. Stuff that matters.
Re:Making EC2 boot time 8x faster by everfrustrated on Thursday May 23, 2024 @12:23PM (#40456657)
Hetzner does not offer a network block storage comparable to EBS that can be used as a root (bootable) file system. AWS local-attached ephemeral disk are also immediately available but cannot be seeded with data (same as Hetzner they are wiped clean ahead of boot).
Re:Making EC2 boot time 8x faster by andersa on Thursday May 23, 2024 @12:33PM (#40456780)
This is an advantage. EBS is terrible! Literally orders of magnitude slower than modern SSDs.
Re:Making EC2 boot time 8x faster by stingraycharles on Thursday May 23, 2024 @01:29PM (#40457499)
Depends on your definition of slow. Throughput-wise, I think it’s fairly decent — we typically set up 4 EBS volumes in raid0 and get 4GB/sec for a really decent price.
Re:Making EC2 boot time 8x faster by Nextgrid on Thursday May 23, 2024 @02:16PM (#40457993)
Sequential throughput can be fine. Random access is always going to be orders of magnitude slower than a direct-attach disk.

Remember why we switched from spinning hard drives to SSDs? Well EBS is like going back to a spinning drive.

Re:Making EC2 boot time 8x faster by Aeolun on Thursday May 23, 2024 @09:30PM (#40461967)
I think AWS is aware of this. Which is why they have instances with attached SSD’s
Re:Making EC2 boot time 8x faster by Nextgrid on Friday May 24, 2024 @03:17PM (#40469572)
However, you can't boot off them, and they don't build anything to facilitate their usage as a boot drive, even though it's perfect for use-cases like these where the machine is ephemeral and its local drive doesn't actually matter.

They should have a feature where you can provide it an S3 URL or EBS snapshot when launching an instance, and the control plane would write it to the local ephemeral direct-attach volume on launch.

Currently if you wanted to do that you'd have to roll your own with a minimal EBS as your root volume containing iPXE or some other minimal OS that is capable of formatting the direct-attach NVME and populating it before passing control to it (via kexec/etc?).

But I guess since EBS incurs additional cost, there's no incentive for them to make it easier to move away. I bet that in aggregate they're making quite good money off mostly unnecessary EBS volumes that don't actually contain any useful data.

Re:Making EC2 boot time 8x faster by flybarrel on Friday May 24, 2024 @09:22AM (#40466009)
Depends on what volume types you are using. For random access - with io2 you can get 256K IOPS per volume, and if you do RAID0, on the largest instance you can get 400K IOPS. Directly-attached vs over-the-network storage can be fairly different, but going back to a spinning drive is not a fair statement.
Re:Making EC2 boot time 8x faster by Nextgrid on Friday May 24, 2024 @03:14PM (#40469548)
You are talking about concurrent IOPS which is fair enough, you can indeed scale that. But every individual one of those IOPS would still have far higher latency than direct-attach storage.

This is a problem when IO operations have to be sequential and can't be parallelized such as when they depend on each other (database has to first read the index to know where the actual data is, then do another IO to actually read said data).

Having lots of IOPS could allow you to make multiple of these queries in parallel (assuming locking/etc doesn't get in the way), but it still means every individual query would be slower than on direct-attach storage.

Re:Making EC2 boot time 8x faster by tekla on Thursday May 23, 2024 @12:41PM (#40456879)
EBS is great for workloads that dont require SSDs, which most don't.

If it does, you can do provisioned which will get you alot more or go NVME.

Re:Making EC2 boot time 8x faster by Nextgrid on Thursday May 23, 2024 @02:17PM (#40458010)
Even provisioned won't get you the access times of a direct-attached SSD. Speed of light and all that - EBS is using the network under the hood, it's not a direct connection to the host.
Re:Making EC2 boot time 8x faster by tekla on Thursday May 23, 2024 @02:31PM (#40458151)
Yes I know, and? Thats why I mentioned NVME