Skip to content

Ephemeral autoscaling does not work, idle runners always at maximum #2449

Open
@arthur-telia

Description

@arthur-telia

We are trying to setup autoscaling using Ephemeral runners flag, It seems that the lambda function never scales runners down and always keeps the runners at the value of runners_maximum_count that we have set.

for example, if we set runners_maximum_count to 20, then exactly 20 will be idle all the time, no matter if we have any pending jobs or not

version is v1.8.1,
using prebuilt AWS AMI ubuntu-jammy-22.04-amd64-server

related configuration below

  # Uncomment to enable ephemeral runners
  delay_webhook_event      = 0
  enable_ephemeral_runners = true
  enabled_userdata         = false
  minimum_running_time_in_minutes = 10
  runners_maximum_count = 20
  scale_down_schedule_expression = "cron(* * * * ? *)"
  enable_job_queued_check = true
  idle_config = [{
    cron      = "* * 9-17 * * 1-5"
    timeZone  = "Europe/Amsterdam"
    idleCount = 3
  }]

could you please advice if this is a bug or misconfiguration from our side?
let me know if more information is required

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions