troubleshooting

How can I cap the total amount of memory that a risingwave compute node can use to prevent OOM errors?

I'm trying to prevent OOM errors on risingwave compute nodes by limiting the total memory usage. Is there a way to achieve this?

Ri

Rick Otten

Asked on Nov 29, 2023

  • You can cap the total amount of memory that a risingwave compute node can use by running the Compute Node with the --total-memory-bytes {Limit} argument.
  • Set the Limit to a value slightly less than the total available memory in the container to lower the possibility of OOM errors.
  • RW reserves 20% of memory internally with respect to total-memory-bytes to handle workload spikes or inaccurate memory calculations.
  • It is recommended to upgrade to the latest version of risingwave for ongoing optimizations and fixes for OOM issues.
Nov 30, 2023Edited by