如何设置Jenkins与HA? [英] How to setup Jenkins with HA?

查看:339
本文介绍了如何设置Jenkins与HA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前我们使用Jenkins作为我们的CI系统,并且有一个主服务器和从服务器由Saltstack在openstack上配置。如果我们的Jenkins主服务器关闭,我们需要创建一个新的主机,我们需要从旧的主&把它放在新的,但它的gona采取至少30分钟。有什么办法设置Jenkins高可用性?我已经检查齿轮传动装置插件,但如果齿轮箱服务器出于某种原因,我们需要设置齿轮箱的HA也。

Currently we are using a Jenkins as our CI system and there is one master server and slaves which are provisioned by Saltstack on openstack. If our Jenkins Master server goes down, we need to create a new master and we need to pull the files from the old master & put it in new ones but it's gona take atleast 30mins. Is there any way to setup Jenkins with High Availability? I already check with gearman plugin however if the gearman server goes down for some reason, we need to setup a HA for gearman also.

有没有其他方法来设置Jenkins的高可用性?

Is there any other ways to setup a high availability for Jenkins?

推荐答案

Jenkins没有一个伟大的HA故事;你可以用开源版本做的最好的办法是将所有的文件放在共享文件系统上的$ JENKINS_HOME,然后有一个冷备用主机,如果活动主机关闭,你可以启动。这将减少您的故障切换时间,无论它需要多长时间主控重新启动,这通常只有几分钟。

Jenkins doesn't have a great HA story; the best you can do with the open source version is to put all of the files in $JENKINS_HOME on a shared file system, and then have a cold standby master machine that you can spin up if the active master goes down. That would reduce your failover time to however long it takes for the master to restart, which is usually just a few minutes.

您还可以查看CloudBees的Jenkins企业产品,其中包括高可用性插件 a>。

You could also look at CloudBees' Jenkins Enterprise offering, which includes a High Availability Plugin.

这篇关于如何设置Jenkins与HA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆