在云中运行构建

发布于 2024-07-23 10:10:58 字数 251 浏览 3 评论 0原文

我想知道是否有人使用亚马逊的 EC2 之类的东西来构建他们的软件。 我正在考虑尝试将我们的构建迁移到该环境中。 现在我们的构建是串行的,但这只是因为我们没有足够的计算机来并行运行所有组件。 使用 EC2,我们可以创建 50 台左右的计算机,大规模并行运行它们几分钟,然后将构建结果发送回我们的站点。 一旦完成,我们就可以关闭或销毁机器。 这将为我们节省大量时间,因为瓶颈实际上是构建而不是结果的大小。

还有其他人这样做吗? 你能提供一些建议吗?

I was wondering if anybody out there is doing their software builds using something like Amazon's EC2. I was thinking about trying to move our builds into that environment. Right now our builds are serial but only because we don't have enough computers to run all the components in parallel. Using EC2 we could create 50 or so computers, run them for a few minutes in massive parallel and then send the build results back to our site. Once we're done we could shutdown or destroy the machines. This would save us a bunch of time since the bottle neck is really the builds and not the size of the results.

Is anybody else doing this? Can you offer any advice?

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

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

发布评论

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

评论(1

欲拥i 2024-07-30 10:10:58

我的公司在 EC2 上运行我们的构建系统; 我们的设置比您所说的要小得多,但我们有一个运行 Hudson 它在一个单独的、干净的实例上启动构建,然后将构建工件分发到我们的存储库服务器(也恰好位于 EC2 上)

使用云解决方案非常适合您所描述的内容,因为您可以启动构建仅在您需要时才使用服务器,并且有信心每次都从固定基线进行构建。 我能想到的唯一缺点是构建时间; EC2 实例最多可能需要 10 分钟才能启动,因此您必须将其添加到总构建时间中,或者保持构建服务器持续运行。

My company runs our build system on EC2; we have a much smaller setup than the one you're talking about, but we have a build controller instance running Hudson which kicks off builds on a separate, clean instance and then distributes the build artifacts to our repository server (which also happens to be on EC2)

Using a cloud solution is ideal for what you're describing, since you can spin up the build servers only when you need them and be confident of building from a fixed baseline each time. The only downside I can think of is the build time; an EC2 instance can take up to 10 minutes to start up, so you either have to add that on to your total build time or keep the build servers running continuously.

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