Description

Autoscale is used to automatically scale workloads by resource utilization metrics and cron

Specification

List of all available properties for a Autoscale trait.

  1. name: testapp
  2. services:
  3. express-server:
  4. autoscale:
  5. min: 1
  6. max: 4
  7. cron:
  8. startAt: "14:00"
  9. duration: "2h"
  10. days: "Monday, Thursday"
  11. replicas: 2
  12. timezone: "America/Los_Angeles"
  13. cpuPercent: 10

Properties

NameTypeDescriptionNotes
minintminimal replicas of the workloadrequired
maxintmaximal replicas of the workloadrequired
cpuPercentintspecify the value for CPU utilization, like 80, which means 80%
cron{Cron}just for appfile, not available for Cli usage

Cron

NameTypeDescriptionNotes
startAtstringthe time to start scaling, like 08:00
durationstringfor how long the scaling will last
daysstringseveral workdays or weekends, like “Monday, Tuesday”
replicasintthe target replicas to be scaled to
timezonestringtimezone, like “America/Los_Angeles”