Maximum number of ephemeral ports

We are currently testing a container-based deployment of CryoSPARC using Kubernetes at our HPC center. One issue we’ve encountered is that CryoSPARC utilizes ports within the ephemeral port range in addition to its designated static ports. To ensure reliable operation and avoid port conflicts, we would like to determine the maximum number of ephemeral ports that should be allocated per CryoSPARC instance. Could you please provide more information on ephemeral ports? Thanks

Any suggestions on how to configure ephemeral port for a container?

CryoSPARC software does not constrain the number of ephemeral ports it uses. To establish a limit for container implementation, you may want to record the number of ephemeral ports on a non-containerized CryoSPARC instance with a workload typical for your environment.
For example, one may, assuming a CryoSPARC base port 61000, one could run the command

watch -t -n 2 'ss -an | grep ":6100[0-9] " |  grep -o -E ":[0-9]{4,5} " | sort -u | wc -l | tee -a /tmp/tmp.n6q3FRbV4G.txt'

on the CryoSPARC master host and analyze the counts recorded inside the /tmp/tmp.n6q3FRbV4G.txt for a rough estimate of connections that involve the CryoSPARC port range.
We caution that we have not tested limiting the number of ephemeral ports based on such an estimate. For example, this estimate does not include CryoSPARC-related connections (such as storage-related) that do not involve CryoSPARC service ports.

Thank you for the responce. is it possible to configure ephemeral ports to use fixed ports?

I do not know whether this is possible. There are no plans for CryoSPARC to move away from the use of ephemeral ports.