Which Galaxy auto-scaling threshold balances instance savings against per-scale-event charges for a steady low-traffic Meteor workload?
0 reputation · 28 Nov 2023, 17:27 UTC
0 reputation · 28 Nov 2023, 17:27 UTC
A low-traffic Meteor deployment on Galaxy leverages auto-scaling to adjust Node.js instance count based on real-time CPU and memory metrics. The precise goal is to identify an auto-scaling configuration that minimizes monthly cost while avoiding excessive scale-events that incur per-instance-hour or per-scale-event charges. A key uncertainty is how the scaling thresholds respond when traffic remains consistently below the typical wake-up rate: whether the system maintains a single lightweight instance, oscillates between states, or delays scale-down due to minimum uptime windows. Additionally, the trade-off between Galaxy's managed service convenience and the potential savings from a self-contained production build on a more affordable hosting platform remains unresolved for workloads with predictable off-peak patterns.
Does the auto-scaler enforce a minimum instance uptime before considering scale-down, and how does that affect cost for steady low traffic? How do per-scale-event fees compare to sustained instance-hour charges under these conditions? What is the effective cost floor for a single-instance Galaxy deployment when traffic never exceeds the scaling-up threshold?
For a steady low-traffic Meteor workload, the most cost-effective configuration is to set the minimum instance count to 1 and the scale-up threshold above your observed peak low-traffic utilization. If your traffic is predictable and never requires a second instance to maintain latency, setting the maximum instance count to 1 eliminates all scale-event charges and prevents oscillation entirely.
In a steady low-traffic scenario, the primary cost driver is the sustained instance-hour charge for a single container. Per-scale-event fees only become a factor if the system "flaps"—rapidly scaling up and down due to thresholds set too close to the average utilization.
To refine this recommendation, please provide your p95 CPU utilization during your busiest "low-traffic" hour. If this value is already near your current threshold, the recommendation shifts from "high thresholds" to "increasing the base instance size" to avoid the higher cost of multiple small instances and frequent scale events.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.