elfo-rs / elfo

An asynchronous distributed actor framework in Rust with robust observability
217 stars 12 forks source link

feat(core): use available memory as a trigger for OOM shutdown #120

Closed White-Oak closed 7 months ago

White-Oak commented 7 months ago

avail < total * (1 - ratio) threshold is now used instead of old used > total * ratio to shutdown a service when tracking memory usage. Additionally, total memory in bytes, and used/available memory as percentages of total memory are now being logged on OOM.