Skip to content

Instantly share code, notes, and snippets.

@geunho
Created March 21, 2019 22:48
Show Gist options
  • Save geunho/79736f288b4d83c1c90482af5438e4d3 to your computer and use it in GitHub Desktop.
Save geunho/79736f288b4d83c1c90482af5438e4d3 to your computer and use it in GitHub Desktop.
Jenkins HA

-- Jenkins HA에 대한 고민

https://endocode.com/blog/2018/08/17/jenkins-high-availability-setup/

태생적으로 상태를 파일 시스템에 기록하는 방식이기 때문에 전체 상태를 관리하는 Master 노드를 이중화하기가 까다롭다. 파일 시스템을 여러 노드가 공유하는 순간 상태의 불일치가 발생할 가능성이 있다.

어쩔 수 없이.. Active/Active 이중화가 아닌 Active/Passive 이중화 구성을 고민을 했는데, 위 링크의 글에서 이 부분을 잘 긁어서 설명해놓았다.

-- Active/Passive 구성시 고려사항

  • JENKINS_HOME의 파일시스템 : 각각 로컬을 보도록 하고 동기화를 시킬지? 공유 파일시스템을 사용할 것인지? (예. Ceph, GlusterFS, NFS, NAS, ...)
  • Active 노드가 다운 되었을때 어떻게 Passive로 자동 전환될 수 있도록 할것인지?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment