AMP icon indicating copy to clipboard operation
AMP copied to clipboard

Add PlayerCount/RAM monitoring for enterprise instances

Open southnode opened this issue 3 years ago • 4 comments

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:

  • [x] that I have searched for an existing feature request matching the description.

southnode avatar Oct 27 '22 03:10 southnode

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.

PhonicUK avatar Nov 08 '22 12:11 PhonicUK

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

DoctorSoup143 avatar Sep 21 '24 16:09 DoctorSoup143

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 avatar Sep 21 '24 16:09 IceOfWraith

Whoops. Misread the original request. xD

IceOfWraith avatar Sep 21 '24 16:09 IceOfWraith