CloudNetService / CloudNet

A modern application that can dynamically and easily deliver Minecraft oriented software
https://cloudnetservice.eu
Apache License 2.0
371 stars 115 forks source link

fix: start service when exactly the max memory is used #1322

Closed 0utplay closed 10 months ago

0utplay commented 10 months ago

Motivation

When having two services that require 1024mb each and a node with a memory limit of 2048mb the node would start only one of the two services.

Modification

Modified the memory check in that way that using 100% of the memory is still okay.

Result

In the example from above both services are started (how they are supposed to)

github-actions[bot] commented 10 months ago

Test Results

  47 files  ±0    47 suites  ±0   1m 39s :stopwatch: +20s 394 tests ±0  394 :heavy_check_mark: ±0  0 :zzz: ±0  0 :x: ±0  724 runs  ±0  724 :heavy_check_mark: ±0  0 :zzz: ±0  0 :x: ±0 

Results for commit ae07a2e3. ± Comparison against base commit 102853cd.