New shared-cpu-6x machine tier

Hi folks, hope you’re doing well.
Merry Christmas! :christmas_tree:

I noticed on the pricing table that there is a new machine tier available: shared-cpu-6x
:backhand_index_pointing_right: https://fly.io/docs/about/pricing/

This tier is exactly what I need, however I ran into a couple of issues.


:one: Machine size not available via flyctl

According to the docs, it should provide more CPU with the same 1GB RAM as shared-cpu-4x, but I’m unable to use it via CLI:

fly scale vm shared-cpu-6x

Error returned:

'shared-cpu-6x' is an invalid machine size, choose one of:
[shared-cpu-1x shared-cpu-2x shared-cpu-4x shared-cpu-8x]

:two: Memory requirement mismatch when using fly.toml

I also tried configuring it directly in fly.toml:

[[vm]]
  cpu_kind = "shared"
  cpus = 6
  memory = "1024mb"

But got the following error:

failed to update VM XPTO:
invalid config.guest.memory_mb, minimum required 1536 MiB

Environment

  • flyctl version: 0.3.236

In the end, it worked when I set the memory to 1536 MiB, as suggested by the error message.


:red_question_mark: Questions

  • Is shared-cpu-6x supposed to have 1GB RAM, or is the pricing documentation incorrect?

  • Is there any ETA for shared-cpu-6x to be available via flyctl?

This would be especially useful since I have automated scale-down on Friday nights and scale-up early Monday mornings, all handled via CLI.

Thanks in advance!

2 Likes

The 256MB per shared cpu core is a requirement and the pricing table should reflect that. We are updating it. thanks for the notice!

Fixed by flyctl#4718, It will be released later today. thanks again.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.