mvysny / shepherd-java-client

Vaadin Shepherd Java Client
Apache License 2.0
1 stars 1 forks source link

fail to create/update a project if the max memory would overshoot the available memory #10

Closed mvysny closed 1 year ago

mvysny commented 1 year ago

We must take care not to bring the Shepherd VM down by OOMs or excessive swapping.

If a project creation/update would create a situation where max memory usage (calculated as a sum of all project runtime memory usage + top x build memory usage, where x depends on the number of builders) would overlap memory available to shepherd, then such a change will be rejected with an informative exception.