Skip to content

bugfix oom if dn not work in long time mo_logger will hold many req in queue cost too much mem - #18081

Merged
mergify[bot] merged 24 commits into
matrixorigin:mainfrom
xzxiong:bugfix_oom_17757
Aug 14, 2024
Merged

mergify[bot] merged 24 commits into
matrixorigin:mainfrom
xzxiong:bugfix_oom_17757

Conversation

@xzxiong

@xzxiong xzxiong commented Aug 13, 2024 •

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • API-change
  • BUG
  • Improvement
  • Documentation
  • Feature
  • Test and CI
  • Code Refactoring

Which issue(s) this PR fixes:

issue #17757 (comment)

What this PR does / why we need it:

if dn not work in long time mo_logger will hold many req in queue cost too much mem, including module:

  • mometric/buffer
  • motrace/content_buffer

changes:

  1. add BackOff strategy: check if metric collector hold more than 8 req in queue. If true pass the sql execution, and do the csv file write.
  2. move the bufferPool instance in mfsetETL obj.
  3. more metrics, dashboard to observe the writer workflow.

@xzxiong
xzxiong requested a review from volgariver6 August 13, 2024 07:26
@matrix-meow matrix-meow added the size/M Denotes a PR that changes [100,499] lines label Aug 13, 2024
@mergify mergify Bot added the kind/bug Something isn't working label Aug 13, 2024
@xzxiong xzxiong changed the title bugfix oom if dn crash in long time metric collector will hold many mem. bugfix oom if dn not work in long time metric collector will hold many mem. Aug 13, 2024
@xzxiong xzxiong changed the title bugfix oom if dn not work in long time metric collector will hold many mem. bugfix oom if dn not work in long time mo_logger will hold many req in queue cost too much mem Aug 14, 2024
@mergify
mergify Bot merged commit 1482ed2 into matrixorigin:main Aug 14, 2024
@xzxiong
xzxiong deleted the bugfix_oom_17757 branch August 14, 2024 06:17
fengttt pushed a commit to fengttt/matrixone that referenced this pull request May 7, 2026
…n queue cost too much mem (matrixorigin#18081)

if dn not work in long time mo_logger will hold many req in queue cost too much mem, including module:
- mometric/buffer
- motrace/content_buffer

changes:
1. add `BackOff` strategy: check if metric collector hold more than 8 req in queue. If true pass the sql execution, and do the csv file write.
2. move the `bufferPool` instance in `mfsetETL` obj.
3. more metrics, dashboard to observe the writer workflow.

Approved by: @volgariver6, @zhangxu19830126, @aptend
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/M Denotes a PR that changes [100,499] lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants