Reasonable Memory limits per container for rustic? #994
-
I started playing around with rustic in Kubernetes. For safe operation, it is necessary to set memory limits per container. While restic is doing well with a memory limit of 128Mi for Tested with rustic v0.6.1 (musl) on alpine 3.19.0 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thanks @mueckinger for opening this issue! Can you please specify more what you are doing? What are the exact commands you are using and which data are you trying to back up? Do you also use Besides this, 128 MiB is quite few and I fear you can't work with that memory with either restic or rustic when using a "normal" data size to backup like some 100 GiBs... And for larger repositories, yes rustic is expected to use less memory than restic. There can be cases like backing up to an empty repository where rustic uses slightly more memory, mostly because it uses a higher pack size than restic does and because it keeps packfiles in memory before sending them to the backend instead of writing temporary files. |
Beta Was this translation helpful? Give feedback.
-
Rclone is running in sidecar containers, so the 128Mi are for rustic only. Unfortunately the containers are killed before I can measure anything, but increasing limits to 256Mi works so far, at least for What would be your recommendation regarding a memory limit for rustic? |
Beta Was this translation helpful? Give feedback.
Actually with 256 or 512 MiB of memory you should get quite far. I have a repository with around 200GiB of sizes and didn't encounter more than 200 MiB of memory usage so far...