Skip to content
This repository has been archived by the owner on Dec 1, 2022. It is now read-only.

[RFC] Prevent OOM caused crashes. #1052

Closed
CPWstatic opened this issue May 20, 2021 · 0 comments
Closed

[RFC] Prevent OOM caused crashes. #1052

CPWstatic opened this issue May 20, 2021 · 0 comments
Assignees
Labels
enhancement Type: make the code neat or more efficient hi-pri Priority: high

Comments

@CPWstatic
Copy link
Contributor

CPWstatic commented May 20, 2021

Summary

Analyze memory usage of the current process, and avoid the risk of service crash caused by OOM

Motivation

Avoid service crash

Usage explanation

When the process cannot obtain physical pages from the operating system or the memory usage exceeds the maximum memory usage threshold configured by the user in advance, terminate the current query

Design explanation

  1. Get process memory usage
  2. Set checkpoint on the critical path
  3. Take some measures to avoid OOM or terminate the current query

Drawbacks

Prior art

Unresolved questions

@CPWstatic CPWstatic added feature req Type: feature request hi-pri Priority: high enhancement Type: make the code neat or more efficient and removed feature req Type: feature request labels May 20, 2021
@czpmango czpmango changed the title Prevent OOM caused crashes. [RFC] Prevent OOM caused crashes. May 28, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Type: make the code neat or more efficient hi-pri Priority: high
Projects
None yet
Development

No branches or pull requests

3 participants