Skip to content

Conversation

@olehermanse
Copy link
Member

allowallconnects should be for allowing parallel connections.
Let's see if this is really necessary, since cf-agent should
reuse an open connection and this shouldn't be needed, at least
by default.

@olehermanse olehermanse added the WIP Work in Progress label Dec 9, 2024
@olehermanse
Copy link
Member Author

@cf-bottom let's build this in jenkins

@olehermanse olehermanse changed the title CFE-2528: Changed the default for allowallconnects WIP CFE-2528: Changed the default for allowallconnects Dec 9, 2024
@cf-bottom
Copy link

Copy link
Member

@nickanderson nickanderson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not realize that in the MPF we have been enabling this by default. It's apparently been that way for quite some time: https://github.com/cfengine/masterfiles/blame/b8e31ade3e27dd7916400816b94f01f40264eb1d/controls/cf_serverd.cf#L16

I do support disabling this by default.

I also support a better configuration option that is somewhere between all or nothing, e.g. being able to limit concurrency to say 5 connections per client instead of allow unlimited parallel connections or allow only a single connection.

allowallconnects should be for allowing parallel connections.
Let's see if this is really necessary, since cf-agent should
reuse an open connection and this shouldn't be needed, at least
by default.

Ticket: CFE-2528
Signed-off-by: Ole Herman Schumacher Elgesem <ole@northern.tech>
@olehermanse
Copy link
Member Author

@cf-bottom jenkins, please

@olehermanse olehermanse removed the WIP Work in Progress label Jan 9, 2025
@olehermanse olehermanse changed the title WIP CFE-2528: Changed the default for allowallconnects CFE-2528: Changed the default for allowallconnects Jan 9, 2025
@cf-bottom
Copy link

@olehermanse olehermanse merged commit 44da331 into cfengine:master Jan 13, 2025
33 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants