Skip to content

Conversation

daveaie
Copy link

@daveaie daveaie commented Mar 4, 2025

Description

Hello everyone,

i have pushed 3 improvement to use docker autoscaler gitlub runner:

  • [WIP] install fleeting plugin for gitlab runner 17.x as explained here : I marked it as WIP because it might be necessary to add a condition on the GitLab Runner version used to apply the correct installation method, but I'm not sure it's needed.
  • Fixed the name assignment to distinguish the runner manager from the runner worker in EC2 instances, as requested in this issue
  • add variable to set delete instances (runner worker) on shut down runner manager

Migrations required

No migration required.

Verification

I'm using my version of this module in our gitlab on premise installation since a week.

The reason I implemented this fix is that with the old installation method of the fleeting plugin, the runners did not scale down correctly as indicated in this issue

@daveaie daveaie requested review from npalm and kayman-mk as code owners March 4, 2025 21:51
Copy link
Contributor

github-actions bot commented Mar 4, 2025

Hey @daveaie! 👋

Thank you for your contribution to the project. Please refer to the contribution rules for a quick overview of the process.

Make sure that this PR clearly explains:

  • the problem being solved
  • the best way a reviewer and you can test your changes

With submitting this PR you confirm that you hold the rights of the code added and agree that it will published under this LICENSE.

The following ChatOps commands are supported:

  • /help: notifies a maintainer to help you out

Simply add a comment with the command in the first line. If you need to pass more information, separate it with a blank line from the command.

This message was generated automatically. You are welcome to improve it.

Copy link
Collaborator

@kayman-mk kayman-mk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

I think we have to check the installation of the plugin. So I prefer to have this in a separate PR and merge the other changes before,


capacity_per_instance = ${runners_capacity_per_instance}
update_interval = "${runners_update_interval}"
update_interval_when_expecting = "${runners_update_interval_when_expecting}"

delete_instances_on_shutdown = ${delete_instances_on_shutdown}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thought: does this make our Lambda function superfluous? We have it to kill the instances on shutdown of the agent.

@github-actions github-actions bot added the stale Issue/PR is stale and closed automatically label May 16, 2025
kayman-mk pushed a commit that referenced this pull request May 20, 2025
## Description

The fleeting plugin installation method depends on the version of the
Runner used and can be automated starting with version 16.11 of the
Runner. See
https://docs.gitlab.com/runner/fleet_scaling/fleeting/#install-a-fleeting-plugin

Related to #1260
@github-actions github-actions bot closed this Jun 1, 2025
@kayman-mk kayman-mk added work-in-progress Issue/PR is worked, should not become stale and removed stale Issue/PR is stale and closed automatically labels Aug 14, 2025
@cattle-ops cattle-ops deleted a comment from github-actions bot Aug 14, 2025
@cattle-ops cattle-ops deleted a comment from github-actions bot Aug 14, 2025
@kayman-mk
Copy link
Collaborator

Looks like this PR should not have been closed.

@kayman-mk kayman-mk reopened this Aug 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work-in-progress Issue/PR is worked, should not become stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants