它是明智的构建服务器上使用一个ramdisk? [英] Is it sensible to use a ramdisk on a build server?
问题描述
在我的公司,我们目前正在研究各种战略加快我们的CI构建。我们已经异形我们构建并决定了我们通过一个I / O瓶颈的制约。我们有相当多的选项,以处理这种在不久的将来(〜1-2个月),但真的想看到改善的现在的
At my company we are currently researching various strategies for speeding up our CI builds. We have profiled our builds and determined that we are constrained by an I/O bottleneck. We have quite a few options to deal with that in the near future (~1-2 months) but would really like to see an improvement now.
我提出了使用RAMDISK作为结算和构建文件位置。生成输出和原木当然会被存储物理磁盘上。
I proposed using a ramdisk as the checkout and buildfile location. The build outputs and logs would of course be stored on physical disk.
是一个明智的做法还是有显著的缺点这种方法?我不是在寻找这方面的东西在硬件方面,但答案,而不是如通用构建系统(如MSBuild的)和虚拟盘之间的相互作用会引起任何问题,如果有其它的风险,我需要知道的。
Is that a sensible thing to do or are there significant drawbacks to this approach? I am not looking for answers that regard the hardware side of things but rather than if the interaction between common build systems (e.g. MSBuild) and a ramdisk will cause any issues and if there are other risks I need to be aware of.
推荐答案
只要你有足够的内存,这是做了非常明智的事情。
As long as you have enough memory, it's a very sensible thing to do.
的唯一缺点是,当然,您的构建丢失在关机/电源故障通常不是为CI一个大问题的基础之上。
The only real drawback is, naturally, your build gets lost on shutdown/power failure which usually isn't a big concern for the CI builds.
这篇关于它是明智的构建服务器上使用一个ramdisk?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!