pingcap / pingcap/tidb-binlog

Please help reduce use system memory when drainer startup

Open
#978 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status/help-wanted
Dominant language
Go
Stars
291
Forks
131
Avg merge
5m
Merged PRs (30d)
2

Description

Feature Request

Is your feature request related to a problem? Please describe:

When drainer startup it will take much memory , if tidb have a lot of history ddl

Describe the feature you'd like:

Please reduce use system memory when drainer startup.

Describe alternatives you've considered:

  1. When drainer startup , why need use history ddl ?
  2. History ddl just some records in table , why it take so much memory?

https://asktug.com/t/topic/34955

https://asktug.com/t/topic/34741

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing drainer startup with a TiDB instance containing substantial history DDL, then trace how that history is loaded and retained in memory. The issue names no files, tests, or entry points; done should include a measurable reduction in startup memory use while preserving required history DDL behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend, data-engineering
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.