question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Offpeak option is deprecated and will be removed in version 14.

See original GitHub issue

Hello,

Just wondering how i can configure a subsection under runners.machine? The current offpeak option will be removed with gitlabrunner version 14. The new solution is using the runners.machine.autoscaling option: https://docs.gitlab.com/runner/configuration/autoscale.html#autoscaling-periods-configuration

Current config:

extra_configs:
      runners.machine:
        IdleCount: 1
        IdleTime: 1800
        OffPeakPeriods: ["* * 0-7,18-23 * * mon-fri *", "* * * * * sat,sun *"]
        OffPeakIdleCount: 0
        OffPeakIdleTime: 600
        MachineDriver: 'google'

New config:

extra_configs:
      runners.machine:
        IdleCount: 1
        IdleTime: 1800
        MachineDriver: 'google'
        runners.machine.autoscaling:
          Periods: ["* * 0-7,18-23 * * mon-fri *","* * * * * sat,sun *"]
          IdleCount: 0
          IdleTime: 600

output with the new section:

[runners.machine]
    IdleTime = 1800
    IdleCount = 1
    MachineDriver = "google"
    MachineName = "auto-scale-runner-%s"
    runners.machine.autoscaling = {"Periods": ["* * 0-7,18-23 * * mon-fri *", "* * * * * sat,sun *"], "IdleCount": 0, "IdleTime": 600}

should be:

[runners.machine]
    IdleTime = 1800
    IdleCount = 1
    MachineDriver = "google"
    MachineName = "auto-scale-runner-%s"
    [[runners.machine.autoscaling]]
      Periods = ["* * 0-7,18-23 * * mon-fri *", "* * * * * sat,sun *"]
      IdleCount = 0
      IdleTime = 600

Is there an issue with my config in Ansible or is this not supported yet?

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:1
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
Lusitaniaecommented, Oct 20, 2020

No need to put all the burden on a single person, can simply add both of us as maintainers in the repo settings.

0reactions
riemerscommented, Sep 16, 2022

Status still the same I still do best effort on the PR’s alone.

Read more comments on GitHub >

github_iconTop Results From Across the Web

2022.9: Home Assistant Birthday Release!
Support for MQTT climate hold and away modes, which was deprecated in Home Assistant Core 2022.3. 0, has been removed. The hold and...
Read more >
GitLab 14.0 released with a celebration of GitLab 14
GitLab Workflow version 3.21.0 for Visual Studio Code (VS Code) now supports the complete merge request review process, including threads.
Read more >
SOTI MobiControl Release Notes
... MobiControl as SOTI Identity user groups will be removed as part of the upgrade. ... Previous versions of the API are being...
Read more >
Standard cluster upgrades | Google Kubernetes Engine ...
To upgrade a cluster, GKE updates the version the control plane and nodes ... to a deprecated API or feature that will be...
Read more >
npalm/gitlab-runner/aws
Description: Deprecated, please use `runners_machine_autoscaling`. Off peak periods of the runners, will be used in the runner config.toml.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found