unreliable connection between Jenkins master and slaves

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

unreliable connection between Jenkins master and slaves

Matevz.langus
Hi,

I would like to ask whether there is a good solution for scenarios when there is a bad connection between master and slaves. I have a problem with long duration tasks where they last for long time. If network problem happens the task fails. It would be good enough for master to reconnect to the slave and fetch the output accumulated in the meantime.
The network interruption is so long that SSH connection will drop.
So looking for some kind of screen+detach scenario.

best regards,
  Matevz Langus

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2d0ad876-df0e-42c1-8ae0-d9ea0a0147b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: unreliable connection between Jenkins master and slaves

Mark Waite-2
Pipeline jobs already have that behavior.  Pipeline durability settings allow the PIpeline job to continue running on a disconnected agent.

On Tue, Mar 19, 2019 at 8:21 AM <[hidden email]> wrote:
Hi,

I would like to ask whether there is a good solution for scenarios when there is a bad connection between master and slaves. I have a problem with long duration tasks where they last for long time. If network problem happens the task fails. It would be good enough for master to reconnect to the slave and fetch the output accumulated in the meantime.
The network interruption is so long that SSH connection will drop.
So looking for some kind of screen+detach scenario.

best regards,
  Matevz Langus

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/2d0ad876-df0e-42c1-8ae0-d9ea0a0147b4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Thanks!
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtGiLeQeUP9_%2BmPR_wSQvO16h13bNz0mQxyZwaDW6D1w7Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: unreliable connection between Jenkins master and slaves

Matevz.langus
Hi,

ah, true. I was trying to resolve this with Freestyle project, pipeline works indeed.

thanks,
  Matevz

On Tuesday, 19 March 2019 15:34:01 UTC+1, Mark Waite wrote:
Pipeline jobs already have that behavior.  Pipeline durability settings allow the PIpeline job to continue running on a disconnected agent.

On Tue, Mar 19, 2019 at 8:21 AM <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="KggTeNKSDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">Matevz...@...> wrote:
Hi,

I would like to ask whether there is a good solution for scenarios when there is a bad connection between master and slaves. I have a problem with long duration tasks where they last for long time. If network problem happens the task fails. It would be good enough for master to reconnect to the slave and fetch the output accumulated in the meantime.
The network interruption is so long that SSH connection will drop.
So looking for some kind of screen+detach scenario.

best regards,
  Matevz Langus

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="KggTeNKSDQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/2d0ad876-df0e-42c1-8ae0-d9ea0a0147b4%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/2d0ad876-df0e-42c1-8ae0-d9ea0a0147b4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/2d0ad876-df0e-42c1-8ae0-d9ea0a0147b4%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/2d0ad876-df0e-42c1-8ae0-d9ea0a0147b4%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.


--
Thanks!
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/290dc209-2525-4057-860d-082f7f69aa3b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: unreliable connection between Jenkins master and slaves

Slava Dubrovskiy
In reply to this post by Matevz.langus
19.03.2019 15:22, [hidden email] пишет:
Hi,

I would like to ask whether there is a good solution for scenarios when there is a bad connection between master and slaves. I have a problem with long duration tasks where they last for long time. If network problem happens the task fails. It would be good enough for master to reconnect to the slave and fetch the output accumulated in the meantime.
The network interruption is so long that SSH connection will drop.
So looking for some kind of screen+detach scenario.

try https://jenkins.io/blog/2018/07/23/remoting-kafka-plugin-1/


-- 
WBR,
Viacheslav Dubrovskyi

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/bef32ca9-60ea-2d92-2907-f99266683d4a%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

smime.p7s (5K) Download Attachment