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

numPorts configuration question #2310

Open
yarik3571 opened this issue Jun 23, 2023 · 2 comments
Open

numPorts configuration question #2310

yarik3571 opened this issue Jun 23, 2023 · 2 comments

Comments

@yarik3571
Copy link

We are running singularity with Mesos.
we configure the job with numPorts config option

singularityDeploy:
  resources:
    numPorts: 3

We can see that job is given with 3 ports PORT0, PORT1, PORT2, that are exactly what we expect.
The question is about values of these ports.
For example, we are given

PORT0=31842
PORT1=31843
PORT2=31844

In this example PORT0 < PORT1 < PORT2
And the question is - does this statement always hold or port values can be different ?
For example:

PORT0=31842
PORT1=31855
PORT2=31856

I am asking because we are considering using of port ranges for some our applications (like PORT0 - PORT2)
I did not find the answer in documentation.
Thanks.

@ssalinas
Copy link
Member

Few things:

  • The ports returned are chosen from mesos offers. So the port range you allcate to your mesos agent in --resources is the full available set of ports
  • These are generally in ascending order, but there is not anything that enforces that
  • Singularity doesn't have any support for port ranges, just requested counts of ports needed

@yarik3571
Copy link
Author

Makes sense. Thanks !

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

2 participants