11

Right now I found 2 possible solutions creating Jenkins Slaves or Jenkins Workers:

  • Using the SSH-Slave Plugin
  • Using JNLP

My question now: What is the better / more stable solution and why?

I found myself some pros and cons using both of the solutions but I don't want to affect the discussion

Christoph Forster
  • 1,728
  • 4
  • 27
  • 39
  • I have same question, we are using JNLP and its very sensitive to packet drops, any single packet drop breaking connection between slave/master and drop running jobs – Satish Sep 19 '19 at 20:26

2 Answers2

2
  • Java Web Start -- and the underlying Java Network Launch Protocol (JNLP) is the recommended mode of connection for windows agents. jenkins.wiki.io

  • SSH is recommended for Linux agents

The Pros and Cons don't matter if both are recommended for different platforms.

HumayunM
  • 514
  • 4
  • 12
  • I'm not sure it's completely platform dependent. Linux running on docker commonly won't have SSH configured and so JNLP is used on Kubernetes. I know SSH blocks on I/O as does JNLPv3. Not sure how JNLPv4 stacks up against SSH and I think that is the answer we are looking for. – Levi Jun 17 '20 at 19:32
0

We are only using SSH, mainly because in a corporate setting:

Plus we can add to the Launch method configuration various JVM Options to monitor the GC and other memory parameters.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I'm not sure this really covers the pros and cons of each. – Levi Jun 17 '20 at 13:42
  • @Levi I am less familiar with the pros for JNLP: I don't have the right to use it in a corporate environment. – VonC Jun 17 '20 at 13:49