Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce ssh sessions #334

Open
eflumerf opened this issue Jan 13, 2025 · 6 comments
Open

Reduce ssh sessions #334

eflumerf opened this issue Jan 13, 2025 · 6 comments

Comments

@eflumerf
Copy link
Member

We should look into ways to reduce the number of ssh sessions being spawned by the daq during startup. Ideally, there would be just one per host (excluding the run control host) to start the controllers, which could then start the other DAQ processes without further use of SSH.

Thoughts?

@plasorak
Copy link
Collaborator

Is that triggering a particular problem? We did think of including a little wrapper recently.

@jcpunk
Copy link

jcpunk commented Jan 13, 2025

The creation of 14 ssh sessions within a single second to connect to the same host is "odd"

@alessandrothea
Copy link
Contributor

What is the definition of odd and why is this an issue?

@plasorak
Copy link
Collaborator

Is this related to: #304 ?

@eflumerf
Copy link
Member Author

Part of what we are seeing on this particular host is an unusual amount of CPU usage by systemd when closing ssh sessions. This issue leads to failures of the integration tests. We are debugging from the sysadmin side as well, but the number of ssh sessions the DAQ is starting is a concern for system scalability.

@jcpunk
Copy link

jcpunk commented Jan 17, 2025

What is the definition of odd and why is this an issue?

From man sshd_config

   MaxSessions
           Specifies the maximum number of open shell, login or subsystem (e.g. sftp) sessions  permitted
           per  network connection.  Multiple sessions may be established by clients that support connec‐
           tion multiplexing.  Setting MaxSessions to 1 will effectively  disable  session  multiplexing,
           whereas  setting it to 0 will prevent all shell, login and subsystem sessions while still per‐
           mitting forwarding.  The default is 10.

Thus 14 connections to the same server in the span of 1 second can lead to failed connections and retries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants