Jenkins通过ECS/Fargate插件入站代理容器 - 设置Node的#执行器

发布于 2025-02-06 06:17:23 字数 619 浏览 2 评论 0原文

我目前正在利用 amazain-ecs插件 with jenkins/inbound-agent )动态创建代理,以减少我的团队依赖我的团队对单个构建主人的依赖。

本质上,我希望能够通过管道来调用子女工作来运行以上插件(父管路)动态构建的同一代理的运行能力。 工作本身不是处理密集型的,而是可以运行一会儿,因此,不在主人身上执行此类时间密集的任务是理想的选择,同时避免了为较小的事情付出另一个ECS任务所需的时间。

我的管道召集了我的职位,试图在管道自动创建的临时代理上运行,但它被困在“等待xxxx上的下一个可用executor”状态。

根据我可以告诉Amazon-ECS插件创建的代理只有1个执行程序,但我找不到一种将其配置为在创建上说2的方法。 有没有办法在启动时定义节点上的执行者人数?

詹金斯大师版本= 2.332.1

I am currently utilising the amazon-ecs plugin (with jenkins/inbound-agent) to dynamically create agents in an attempt to reduce my teams dependancy on a single build master.

Without going into too much detail, essentially I would like the ability to have child jobs called by by my pipeline to run on the same agent already dynamically built by the above plugin (parent pipeline).
The jobs themselves are not process intensive but can run for a little while, so it would be ideal to not have such time intensive tasks being run on the master while avoiding the time it takes to spin up another ECS task for something so minor.

Ive gotten to the point where the child job being called by my pipeline tries to run on the temporary agent automatically created by the pipeline, but it gets stuck in a "Waiting for next available executor on XXXX" state.

From what i can tell the agent created by the amazon-ecs plugin only has 1 executor on it, but I cant find a way to configure this to say 2 on creation.
Is there a way to define the number of executors on a node on start up?

Master Jenkins Version = 2.332.1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

季末如歌 2025-02-13 06:17:23

我最终发现,在新代理商上的Amazon-EC-Plugin集的执行者人数的硬编码值为1。
IVE提交了带有更改的拉请请求,以使此配置可配置。希望能尽快获得批准。

可在此处获得的更多详细信息:

I ended up discovering that the number of executors the amazon-ecs-plugin sets on new agents had a hard coded value of 1.
Ive submitted a pull request with changes to make this configurable. Hopefully will get approved soon.

Further details available here:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文