Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APPS-7813 Add autoscaling section to apps #849

Merged
merged 2 commits into from
Mar 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ properties:
type: integer
format: int64
minimum: 1
description: 'The amount of instances that this component should be scaled to. Default: 1'
description: 'The amount of instances that this component should be scaled to. Default: 1. Must not be set if autoscaling is used.'
default: 1
example: 2

Expand All @@ -25,3 +25,36 @@ properties:
- professional-xl
default: basic-xxs
example: basic-xxs

autoscaling:
description: Configuration for automatically scaling this component based on metrics.
type: object
properties:
min_instance_count:
description: The minimum amount of instances for this component. Must be less than max_instance_count.
type: integer
format: uint32
minimum: 1
example: 2
max_instance_count:
description: The maximum amount of instances for this component. Must be more than min_instance_count.
type: integer
format: uint32
minimum: 1
example: 3
metrics:
description: The metrics that the component is scaled on.
type: object
properties:
cpu:
description: Settings for scaling the component based on CPU utilization.
type: object
properties:
percent:
description: The average target CPU utilization for the component.
type: integer
format: uint32
minimum: 1
maximum: 100
default: 80
example: 75
Loading