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

Refactor SLO calculations #91

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions config-example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ worker_type:
kube_connfig_context: xx
autoscale:
algorithm: slo
max_replicas: 20
min_replicas: 1
args:
max_replicas: 20
avg_task_duration: 60
slo_seconds: 300
# cover 100% of pending
capacity_ratio: 1.0
min_replicas: 1
60 changes: 30 additions & 30 deletions configs/relengworker-nonprod/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ worker_types:
deployment_name: beetmover-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 20
min_replicas: 0
args:
max_replicas: 20
avg_task_duration: 120
slo_seconds: 240
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-1-balrog-dev
provisioner: scriptworker-k8s
Expand All @@ -20,12 +20,12 @@ worker_types:
deployment_name: balrog-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 10
min_replicas: 0
args:
max_replicas: 10
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-t-signing-dev
provisioner: scriptworker-k8s
Expand All @@ -34,12 +34,12 @@ worker_types:
deployment_name: signing-dev-relengworker-firefoxci-gecko-t-1
autoscale:
algorithm: slo
max_replicas: 20
min_replicas: 0
args:
max_replicas: 20
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-1-addon-dev
provisioner: scriptworker-k8s
Expand All @@ -48,12 +48,12 @@ worker_types:
deployment_name: addon-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-1-bouncer-dev
provisioner: scriptworker-k8s
Expand All @@ -62,12 +62,12 @@ worker_types:
deployment_name: bouncer-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-1-pushapk-dev
provisioner: scriptworker-k8s
Expand All @@ -76,12 +76,12 @@ worker_types:
deployment_name: pushapk-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-1-pushflatpak-dev
provisioner: scriptworker-k8s
Expand All @@ -90,12 +90,12 @@ worker_types:
deployment_name: pushflatpak-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-1-pushsnap-dev
provisioner: scriptworker-k8s
Expand All @@ -104,12 +104,12 @@ worker_types:
deployment_name: pushsnap-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-1-shipit-dev
provisioner: scriptworker-k8s
Expand All @@ -118,12 +118,12 @@ worker_types:
deployment_name: shipit-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: mobile-1-shipit-dev
provisioner: scriptworker-k8s
Expand All @@ -132,12 +132,12 @@ worker_types:
deployment_name: shipit-dev-relengworker-firefoxci-mobile-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: gecko-1-tree-dev
provisioner: scriptworker-k8s
Expand All @@ -146,12 +146,12 @@ worker_types:
deployment_name: tree-dev-relengworker-firefoxci-gecko-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: xpi-t-signing-dev
provisioner: scriptworker-k8s
Expand All @@ -160,12 +160,12 @@ worker_types:
deployment_name: signing-dev-relengworker-firefoxci-xpi-t-1
autoscale:
algorithm: slo
max_replicas: 10
min_replicas: 0
args:
max_replicas: 10
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: xpi-1-shipit-dev
provisioner: scriptworker-k8s
Expand All @@ -174,12 +174,12 @@ worker_types:
deployment_name: shipit-dev-relengworker-firefoxci-xpi-1-1
autoscale:
algorithm: slo
max_replicas: 1
min_replicas: 0
args:
max_replicas: 1
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: mpd001-t-signing-dev
provisioner: scriptworker-k8s
Expand All @@ -188,12 +188,12 @@ worker_types:
deployment_name: signing-dev-relengworker-firefoxci-mpd001-t-1
autoscale:
algorithm: slo
max_replicas: 10
min_replicas: 0
args:
max_replicas: 10
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0

- worker_type: adhoc-t-signing-dev
provisioner: scriptworker-k8s
Expand All @@ -202,9 +202,9 @@ worker_types:
deployment_name: signing-dev-relengworker-firefoxci-adhoc-t-1
autoscale:
algorithm: slo
max_replicas: 10
min_replicas: 0
args:
max_replicas: 10
avg_task_duration: 60
slo_seconds: 120
capacity_ratio: 1.0
min_replicas: 0
Loading