How to setup Jenkins with HA?

前端 未结 2 1470
借酒劲吻你
借酒劲吻你 2020-12-30 01:49

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 goe

相关标签:
2条回答
  • 2020-12-30 02:04

    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.

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

    0 讨论(0)
  • 2020-12-30 02:08

    I use cluster from scratch doc to create a Jenkins WAN-HA active/passive cluster. See the attached Architecture Diagram for Jenkins HA using pacemaker .

    /etc/init.d/jenkins will need to be converted to be an ocf agent script. Currently I manually start up Jenkins via systemd on pcmk-2 server when pcmk-1 is down.

    0 讨论(0)
提交回复
热议问题