Cloud Master / On-Prem Slave

22 views
Skip to first unread message

Steve B

unread,
Apr 18, 2019, 8:39:32 AM4/18/19
to Jenkins Users
I am fairly new to Jenkins.  We have used it on-prem for some builds.
Development has started using Jenkins in the cloud for new features and I was wondering if I can have the Jenkins Master that is in the Cloud send jobs to my On-Prem slaves?

Looks like there are some services that allow some sort on "Hybrid" systems but I don't think we can go for that at this time.

Thanks

Denis Mone

unread,
Apr 18, 2019, 8:48:02 AM4/18/19
to Jenkins Users
We have our Jenkins master on a EC2 instance as well, and the slaves are VMs in our office.
We have Jenkins communicate with them over OpenVPN (though VPC would be preferable)

On the Jenkins side the agents are launched using the ssh-agents plugin. Plain old ssh connection that is.

We have multiple offices around the globe and all of them use hit Jenkins and it accordingly schedules jobs
on the said VMs.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1e2270ea-b3cb-43d1-98c4-9d4f2c9f6948%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark Waite

unread,
Apr 18, 2019, 8:49:41 AM4/18/19
to Jenkins Users
If your on premise agents (slaves) can connect to the JNLP port of the cloud master (usually port 50000), then they could be added as agents (slaves) of your cloud master using the "Java Web Start" method.  That requires the agent initiates the connection to the master JNLP port and the master needs to be willing to accept the connection on that port.

If your cloud master can initiate an ssh connection to your on-premise agents, then you could add the on-premise agents using the ssh-slaves plugin.  That requires the master initiates the connection to the agent ssh port and the agents need to be willing to accept the connection on the ssh port.

Mark Waite 

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1e2270ea-b3cb-43d1-98c4-9d4f2c9f6948%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
Mark Waite

Simon Richter

unread,
Apr 18, 2019, 11:51:40 AM4/18/19
to jenkins...@googlegroups.com
Hi,

On 18.04.19 14:38, Steve B wrote:

> I am fairly new to Jenkins.  We have used it on-prem for some builds.
> Development has started using Jenkins in the cloud for new features and
> I was wondering if I can have the Jenkins Master that is in the Cloud
> send jobs to my On-Prem slaves?

In theory, yes.

In practice, the artifact plugin does not like slow links at all: each
file requires a full round trip, so if you have lots of small files, the
latency of the link becomes a problem, and if you have big files, the
keepalive probes inside the agent protocol become queued behind
transfers, which might make the agent connection appear broken.

Also, any hiccup in the connection will fail running builds.

Simon

signature.asc
Reply all
Reply to author
Forward
0 new messages