Skip to content

Docker container memory limits #472

Closed Answered by Slach
bunkiedc asked this question in Q&A
Discussion options

You must be logged in to vote

Look https://github.com/AlexAkulov/clickhouse-backup#concurrency-cpu-and-memory-usage-recommendation

Most memory allocates during upload and download operation
on each concurrency

  • compression buffers
  • pipe buffer between read from disk and compression stream
  • internal SDK buffers for multipart upload to remote storage types which support it (S3 for example)

How much RAM will allocate?
It depends on how much Upload / Download Concurrency do you use.
By default, it is half of available cpu cores.
UPLOAD_CONCURRENCY=3, DOWNLOAD_CONCURRENCY=3 could significant reduce memory usage

Also, it depends on compression format, compression_format: none or compression_format: tar is cheaper for memory/…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Slach
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants