<div><div dir="auto">Adding new builders can be done via the UI right? Can’t Jenkins API help with that too? As reloading jenkins everytime you add builder is a bit too much IMO </div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, May 26, 2020 at 15:04 Michael Scherer &lt;<a href="mailto:mscherer@redhat.com">mscherer@redhat.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le mardi 26 mai 2020 à 12:50 +0200, Michael Scherer a écrit :<br>
&gt; Le mardi 26 mai 2020 à 12:33 +0200, Michael Scherer a écrit :<br>
&gt; &gt; Hi,<br>
&gt; &gt; <br>
&gt; &gt; while working on the jenkins automation (mostly adding new host<br>
&gt; &gt; with<br>
&gt; &gt; CLI), I did a jenkins-cli reload-configuration. Turn out that this<br>
&gt; &gt; is,<br>
&gt; &gt; contrary to what I expected, also seems to have blocked jenkins<br>
&gt; &gt; somehow.<br>
&gt; &gt; <br>
&gt; &gt; I am trying to figure exactly what is happening, cause I do not<br>
&gt; &gt; expect<br>
&gt; &gt; that to be so long.<br>
&gt; <br>
&gt; My current hypothesis is that jenkins is still running, but currently<br>
&gt; reloading the config seems to imply &quot;read all xml files in<br>
&gt; /var/lib/jenkins&quot; or something. I do not know where this do come<br>
&gt; from,<br>
&gt; but this also mean that the server is busy parsing all builds results<br>
&gt; in /var/lib/jenkins/jobs, a 72G directory with around 148652 files if<br>
&gt; I<br>
&gt; can trust find and wc.<br>
&gt; <br>
&gt; I will dig a bit more before interrupting the server brutally<br>
<br>
Seems jenkins did manage to come back by itself, after 20 minutes.<br>
<br>
The good news is that it seems that after 3 days of work, we found a<br>
way (minus some ansible hack to be fixed) to dynamically add builders.<br>
The bad new is that jenkins reload is busted, cause 20 minutes of<br>
downtime do not seems optimal at all, and we would need to fix that<br>
before going on.<br>
<br>
For folks who are eager on reading java, that&#39;s somewhere here:<br>
<br>
<a href="https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/Jenkins.java#L3234" rel="noreferrer" target="_blank">https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/jenkins/model/Jenkins.java#L3234</a><br>
<br>
( from ./core/src/main/java/hudson/cli/ReloadConfigurationCommand.java<br>
to doReload, to reload to loadTasks).<br>
<br>
-- <br>
Michael Scherer / He/Il/Er/Él<br>
Sysadmin, Community Infrastructure<br>
<br>
<br>
<br>
_______________________________________________<br>
<br>
Community Meeting Calendar:<br>
<br>
Schedule -<br>
Every 2nd and 4th Tuesday at 14:30 IST / 09:00 UTC<br>
Bridge: <a href="https://bluejeans.com/441850968" rel="noreferrer" target="_blank">https://bluejeans.com/441850968</a><br>
<br>
<br>
<br>
<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@gluster.org" target="_blank">Gluster-devel@gluster.org</a><br>
<a href="https://lists.gluster.org/mailman/listinfo/gluster-devel" rel="noreferrer" target="_blank">https://lists.gluster.org/mailman/listinfo/gluster-devel</a><br>
<br>
</blockquote></div></div>