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

Overallocating node did not throw error #3732

Closed
1 task done
anondev-sudo opened this issue Nov 6, 2021 · 5 comments
Closed
1 task done

Overallocating node did not throw error #3732

anondev-sudo opened this issue Nov 6, 2021 · 5 comments
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.

Comments

@anondev-sudo
Copy link

Is there an existing issue for this?

  • I have searched the existing issues before opening this issue.

Current Behavior

I have node with automatic allocation disabled (tried with both enabled and disabled), I have set allocation limits like this for the node:
image.

When I create server using panel or API, it didn't show me error message, server is normally created when I go over the resources limit on the node.
It allows me to overallocate the node
image

When I tried to transfer existing server to that node, it showed me error message
image

It should show error message also when you are creating new server and it will go over the node allocation limits.

Expected Behavior

When you want to create server and it will go over allocation limits on node, display error message on panel and also when creating server using API,

Steps to Reproduce

  1. Create more servers until node allocation limits are over
  2. It will still allow you to create servers after reaching allocation limits on the node

Panel Version

1.6.5

Wings Version

1.6.5

Error Logs

No response

@anondev-sudo anondev-sudo added the not confirmed Report seems plausible but requires additional testing or 3rd part confirmation. label Nov 6, 2021
@Jelcoo
Copy link
Contributor

Jelcoo commented Nov 6, 2021

When you use the api, you can't, but when you use the admin panel you can

@anondev-sudo
Copy link
Author

It didn't throw error when I was creating server using pterodactyl admin panel too.

@TrixterTheTux
Copy link
Member

The limit will only apply if you're telling the panel to choose a node for you (using the deploy array when creating the server through the API), otherwise you're explicitly saying that you want it to deploy on that node (and acknowledging that it may go over the limits).

@ok236449
Copy link

I know this is an old issue, but it is still up to date. What if you have two nodes, but one with a better CPU? That does not mean you wanted to over allocate it! It should throw an error saying that node is full. Including the API aswell.

@DaneEveritt
Copy link
Member

As @TrixterTheTux stated, that is on you to make the determination, not the API. I'm not changing the well known behavior of such a critical endpoint, you just need to put some logic on your end before calling the API to make a server on a specific node to handle your over-allocation requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
not confirmed Report seems plausible but requires additional testing or 3rd part confirmation.
Projects
None yet
Development

No branches or pull requests

5 participants