antonputra / tutorials

DevOps Tutorials
https://youtube.com/antonputra
MIT License
3.19k stars 2.5k forks source link

Tell golang about memory limit and allow it to manage the 2 cores itself #299

Closed Kavantix closed 1 month ago

Kavantix commented 1 month ago

Set GOMEMLIMIT to ca 95% of actual limit to allow for a bit of overhead by the system

I used the requests to do so to make it easier to configure

antonputra commented 1 month ago

Thanks @Kavantix for the PR! I'll merge it tomorrow to avoid any confusion about the configuration I used for this test.

antonputra commented 1 month ago

@Kavantix oh no, I deleted the 213 branch, and it automatically closed this PR? Can you please create another one from main?