restic / rest-server

Rest Server is a high performance HTTP server that implements restic's REST backend API.
BSD 2-Clause "Simplified" License
922 stars 138 forks source link

MemoryHigh=bytes in Systemd Example #209

Closed ph818 closed 1 year ago

ph818 commented 1 year ago

Output of rest-server --version

rest-server version rest-server 0.11.0 compiled with go1.17.6 on linux/arm64

What should rest-server do differently?

I was looking in https://www.man7.org/linux/man-pages/man5/systemd.resource-control.5.html and noticed that for systemd 247, it uses MemoryHigh as the preferred way to control memory use, with MemoryMax as the emergency backstop. Could the systemd example include this variable as well?

What are you trying to do? What is your use case?

use rest-server on a raspberry pi for use with personal restic backups (since smb is less well supported)

Did rest-server help you today? Did it make you happy in any way?

Oh yeah! I am so happy to be tinkering with this. This issue is relating to my first pull request.