Skip to content

[Optimize] Speed up checkpoint #5801

Description

@liutang123

We have a cluster with many replica. We found that loading image is fast but save image is slow.

We add some logs like follows:

2021-05-11 20:53:56,163 WARN (leaderCheckpointer|93) [Catalog.saveImage():2000] Backends done 2780888362
2021-05-11 21:13:23,941 WARN (leaderCheckpointer|93) [Catalog.saveImage():2002] DB done 2255394013

Profile shows FileOutputStream.writeBytes cost much time
image

Suggest: Use buffer out put stream to reduce the number of system calls.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions