error: Open connections exceed FD_SETSIZE limit (1024 >= 1024)

"'Nick Anderson' via help-cfengine" <[email protected]> Wed, 12 Nov 2025 11:40:28 -0600
Newsgroups gmane.comp.sysutils.cfengine.general
Message-ID <[email protected]>
--=-=-=
Content-Type: multipart/alternative; boundary="==-=-="

--==-=-=
Content-Type: text/plain; charset="UTF-8"

DONE Respond to Markus Rexhepi-Lindberg <[email protected]>: [help-cfengine] error: Open connections exceed FD_SETSIZE limit (1024 >= 1024) :email:
===============================================================================================================================================

  Hey Markus,

  The first thing that jumped out at me from above was how you call your
  bundle to copy the file:

  ,----
  | methods:
  |   "any" usebundle => filecollector("$(cf_clients)"),
  |      action => silent_sometimes;
  `----
  You reference the list of clients with `$'. So, the bundle will be
  actuated once for each client. Have you instead tried passing the list
  so that the bundle is called just once and the iteration on the client
  happens inside the bundle?

  Like:

  ,----
  | methods:
  |   "any" usebundle => filecollector("@(cf_clients)"),
  |      action => silent_sometimes;
  `----

  Regarding the maximum number of connections, I see that you mention
  setting `control_server_maxconnections', note that variable is used by
  body server control (cf-serverd). For your policy, where you have one
  agent that is creating a bunch of connections from cf-agent you might
  consider setting `default:def.control_agent_maxconnections'. It's set
  to 30 in the MPF by default.

  I would link you to the docs that mention it, but it doesn't seem to
  be explicitly called out yet so I just filed an issue about it here
  <https://northerntech.atlassian.net/browse/CFE-4602>

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/help-cfengine/87o6p75eum.fsf%40northern.tech.

--==-=-=
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<p>
Hey Markus,
</p>

<p>
The first thing that jumped out at me from above was how you call your bund=
le to copy the file:
</p>

<div class=3D"org-src-container">
<pre class=3D"src src-cfengine3"><span style=3D"color: #a89984; font-weight=
: bold;">methods</span>:
  <span style=3D"color: #689d6a;">"any"</span> usebundle =3D&gt; filecollec=
tor<span style=3D"color: #689d6a;">(</span><span style=3D"color: #689d6a;">=
"$(cf_clients)"</span><span style=3D"color: #689d6a;">)</span>,
     action =3D&gt; silent_sometimes;
</pre>
</div>
<p>
You reference the list of clients with <code>$</code>. So, the bundle will =
be actuated once for each client. Have you instead tried passing the list s=
o that the bundle is called just once and the iteration on the client happe=
ns inside the bundle?
</p>

<p>
Like:
</p>

<div class=3D"org-src-container">
<pre class=3D"src src-cfengine3"><span style=3D"color: #a89984; font-weight=
: bold;">methods</span>:
  <span style=3D"color: #689d6a;">"any"</span> usebundle =3D&gt; filecollec=
tor<span style=3D"color: #689d6a;">(</span><span style=3D"color: #689d6a;">=
"@(cf_clients)"</span><span style=3D"color: #689d6a;">)</span>,
     action =3D&gt; silent_sometimes;
</pre>
</div>

<p>
Regarding the maximum number of connections, I see that you mention setting=
 <code>control_server_maxconnections</code>, note that variable is used by =
body server control (cf-serverd). For your policy, where you have one agent=
 that is creating a bunch of connections from cf-agent you might consider s=
etting <code>default:def.control_agent_maxconnections</code>. It's set to 3=
0 in the MPF by default.
</p>

<p>
I would link you to the docs that mention it, but it doesn't seem to be exp=
licitly called out yet so I just filed an issue about it here <a href=3D"ht=
tps://northerntech.atlassian.net/browse/CFE-4602">https://northerntech.atla=
ssian.net/browse/CFE-4602</a>
</p>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;help-cfengine&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">help-=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
help-cfengine/87o6p75eum.fsf%40northern.tech?utm_medium=3Demail&utm_source=
=3Dfooter">https://groups.google.com/d/msgid/help-cfengine/87o6p75eum.fsf%4=
0northern.tech</a>.<br />

--==-=-=--

--=-=-=
Content-Type: text/plain; charset="UTF-8"




-- 
Nick Anderson | Doer of Things | (+1) 785-550-1767 | https://northern.tech

-- 
You received this message because you are subscribed to the Google Groups "help-cfengine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/help-cfengine/87o6p75eum.fsf%40northern.tech.

--=-=-=--