imbajin opened a new pull request, #3320:
URL: https://github.com/apache/hugegraph/pull/3320

   ## Purpose of the PR
   
   Server launchers size the default heap from host memory, so a memory-limited 
container can receive a heap larger than its limit. The default calculation now 
uses the smaller of host availability and remaining memory under visible cgroup 
hard limits.
   
   ## Main Changes
   
   Resolve cgroup v1/v2 controller mounts and visible ancestor limits, 
preserving the existing heap bounds and explicit JVM option precedence. Add 
regression fixtures and document container heap sizing.
   
   ## Verifying these changes
   
   - [x] Need tests and can be verified as follows:
     - Cgroup fixtures, ShellCheck and existing launcher GC checks passed.
     - Formatting and clean compilation passed with Java 17.
     - A standard Server container limited to 4 GiB started and restarted with 
the patched sizing helper.
   
   ## Does this PR potentially affect the following parts?
   
   - [ ] Dependencies
   - [ ] Modify configurations
   - [ ] The public API
   - [x] Other affects: default Server heap sizing in memory-limited Linux 
deployments.
   - [ ] Nope
   
   ## Documentation Status
   
   - [ ] `Doc - TODO`
   - [x] `Doc - Done`: [Docker Server heap 
sizing](docker/README.md#server-heap-sizing).
   - [ ] `Doc - No Need`
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to