gchq / sleeper

A cloud-native, serverless, scalable, cheap key-value store
Apache License 2.0
64 stars 10 forks source link

Review best EC2 type for EC2-based compactions #505

Open gaffer01 opened 1 year ago

gaffer01 commented 1 year ago

This PR https://github.com/gchq/sleeper/pull/316 adds the ability to run compactions on EC2 instances. The current default EC2 type is T3 - they're "designed for applications with moderate CPU usage that experience temporary spikes in use" so probably aren't ideal for compactions. Experiment to find a better (performance and performance per $) type.

gaffer01 commented 1 year ago

Performance of t3.xlarge-based compactions (t3.xlarge has 4vcpu, 16GiB, cost is $0.1888 in London region - note 4 tasks can run on one of these at a time):

Performance of m6i.xlarge-based compactions (m6i.xlarge has 4vcpu, 16Gib, cost is $0.222 in London region - note 4 tasks can run on one of these at a time):

For comparison, on Fargate the rates are (each Fargate task has 1vcpu and 4GiB and costs 0.04656 + 4 * 0.00511 = $0.067):