CubeCoders / AMP

Issue tracking and documentation for AMP
https://cubecoders.com/AMP
207 stars 38 forks source link

Add PlayerCount/RAM monitoring for enterprise instances #758

Open southnode opened 1 year ago

southnode commented 1 year ago

This is not for requesting support for new games/applications

To do this you should go to https://github.com/CubeCoders/AMPTemplates and first attempt to build a configuration yourself - otherwise you can request a template from this repo.

Feature Request

Add PlayerCount/RAM monitoring for enterprise instances

Feature Information:

Effectively for those games that are slot based (ie. Squad, Rust, ARMA) or that are limited by RAM utilisation (Minecraft, Satisfactory) there needs to be a way for Enterprise users to enforce these sold limits - otherwise we end up with an issue of overutilised and oversold units.

Provide a feature wherein as a provisioning setting (or as a byproduct of setting container Slot/RAM limits) an instance will monitor the Max Players / RAM utilisation of the process, and if it goes over said limits, allow for the following options:

  1. Do nothing
  2. Shut down the instance, and send an email to the owner stating the reason why the instance was shut down
  3. Restart the instance, and send an email to the owner stating the reason why the instance was restarted (will require a crash loop stopper here, say restart 5 times before going no, support needs to be here to help)

These options should be settable via a provisioning flag, or hang off the values of other flags such as $$ContainerRAM Meta.MaxPlayers etc

I confirm:

PhonicUK commented 1 year ago

A RAM limit is a little redundant with $$ContainerRAM since an application can't use more physical RAM once it hits that point, it just starts swapping to disk. You'd also need a variable threshold since VM based apps like Minecraft have overheads beyond their heap size.

DoctorSoup143 commented 4 weeks ago

I see this issue is 2 years old, but Satisfactory servers are still not showing active player counts.

IceOfWraith commented 4 weeks ago

I'm going to close this one and track it over here. There's actually a pull request to add that functionality, just need to review it this weekend.

https://github.com/CubeCoders/AMPTemplates/pull/1001

IceOfWraith commented 4 weeks ago

Whoops. Misread the original request. xD