readysite / pkg / platform / size.go
575 B
size.go
package platform

// Size represents a server size tier.
// Use these constants instead of provider-specific instance types.
type Size string

const (
	Micro  Size = "micro"  // 1 vCPU, 1GB RAM  - dev/testing
	Small  Size = "small"  // 1 vCPU, 2GB RAM  - small apps
	Medium Size = "medium" // 2 vCPU, 4GB RAM  - standard apps
	Large  Size = "large"  // 4 vCPU, 8GB RAM  - larger workloads
	XLarge Size = "xlarge" // 8 vCPU, 16GB RAM - high performance
)

// AllSizes returns all supported sizes.
func AllSizes() []Size {
	return []Size{Micro, Small, Medium, Large, XLarge}
}
← Back