pingcap / pingcap/tiflash

Optimize TiFlash restart duration.

Open
#1,102 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
1k
Forks
423
Avg merge
1d 15h
Merged PRs (30d)
24

Description

Currently, if the data volume is huge, the restart duration could use several minutes. It can causes the "time out" error if starting TiFlash instance by tiup. We should find a way to shorten the duration.

2020.09.17 11:29:00.595381 [ 1 ] <Information> Application: Loading metadata.
...
2020.09.17 11:36:07.103585 [ 1 ] <Information> Application: Flash service registered

image

Contributor guide

No contributing guide indexed for this repository

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 tracing the TiFlash restart path from the logged “Loading metadata” step to “Flash service registered,” and examine how tiup determines the startup timeout. Profile the large-volume startup case and define completion as a materially shorter restart that no longer causes tiup timeouts.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
databases, performance
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.