-
-
Notifications
You must be signed in to change notification settings - Fork 144
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
[Feature] Price while offline and price while online #757
Comments
Since pterodactyl does not offer webhook (or any other form of event notification) for server status changes this would require to request the server states for every server individually in a rather high frequency. That will inevitably cause a high load on your database (depending on the number of servers). For reference: Personal opinion: @1day2die What do you think? |
Yes. Please add this! |
You could check the server status every 5 minutes. |
You could also listen for console messages (using websockets) for the stop message. |
the only concern i have is the frequent API requests. this could lead to heavy load or a request-limit reaching on ptero. doing the calls async couldwork however. To your personal opinion: if hosts would like to do that, i couldnt care less^^ its their ressources |
I don't think an api request takes a lot of resources. The only problem is rate limits, I think. |
one request dosent. 1000 at a time do |
If you only have 5 servers it wouldn't be an issue no, but what about 100 customers with ~180 servers, that would already be a massive difference (for small hosts it obviously won't be an issue) |
Can't you send the api request directly to wings instead via the panel? You are correct, yes, but spreading out the status checks would decrease the load. You could get the status of 5 servers every minute, instead of getting the status of all servers at once. |
any news on this feature I would be interested too since pterodactyl could handle that ? thanks |
It would be convenient if pterodactyl would allow you to get the status of all servers with a single request. In this case, we could already select the necessary values from the response on the cpgg side. |
This would eliminate the problem that we have to make several hundred requests at the same time. |
Feature Description
So you can add for example a price of 10 credits per hour while the product is running and only 5 if it is offline
Solution Idea
As an input field within the product so you can change the price while running or offline
Additional Info
No response
The text was updated successfully, but these errors were encountered: