Skip to content

Commit

Permalink
Update chainfleetautoscaler to have list of entries (removing policy …
Browse files Browse the repository at this point in the history
…denotation aand only including the contents
  • Loading branch information
indexjoseph committed Jul 26, 2024
1 parent 3c826c1 commit 56a08d9
Showing 1 changed file with 36 additions and 3 deletions.
39 changes: 36 additions & 3 deletions examples/chainfleetautoscaler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,42 @@ spec:
policy:
type: Buffer
buffer:
bufferSize: 2
minReplicas: 10
maxReplicas: 15
bufferSize: 50
minReplicas: 100
maxReplicas: 2000
# Id of chain entry. If not set, the Id will be defaulted to the index of the entry within the chain list.
- id: "weekend"
type: Schedule # Schedule based policy.
schedule:
between:
# The policy becomes eligible for application starting on Feb 24, 2100 at 4:05 PM EST. If not set, the policy will immediately be eligible for application.
start: "2100-02-24T16:04:05-05:00"
# The policy becomes ineligible for application starting on Feb 26, 2100 at 4:05 PM EST. If not set, the policy will always be eligible for application (after the start time).
end: "2100-02-26T16:04:05-05:00"
activePeriod:
# Timezone to be used for the startCron field. Defaults to UTC if not set.
timezone: "America/New_York"
# Start applying the policy everyday at 1:00 AM EST. If not set, the policy will always be applied in the .between window.
# (Only eligible starting on Feb 24, 2100 at 4:05 PM EST)
startCron: "0 1 * * 0"
# Only apply the policy for 7 hours. If not set the duration will be defaulted to always/indefinite.
duration: "7h"
# Policy to be applied during the activePeriod. Required.
policy:
type: Counter
counter:
key: rooms
bufferSize: 10
minCapacity: 500
maxCapacity: 1000
# Id of chain entry. If not set, the Id will be defaulted to the index of the entry within the chain list.
- id: "default"
# Policy will always be applied when no other policy is applicable. Required.
type: Buffer
buffer:
bufferSize: 5
minReplicas: 100
maxReplicas: 2000
# The autoscaling sync strategy, this will determine how frequent any schedules within the chain is evaluated.
sync:
# type of the sync. for now, only FixedInterval is available
Expand Down

0 comments on commit 56a08d9

Please sign in to comment.