Skip to content

Speed up pd leader server ready #10116

@bufferflies

Description

@bufferflies

Enhancement Task

if c.isAPIServiceMode {
// bootstrap keyspace group manager after starting other parts successfully.
// This order avoids a stuck goroutine in keyspaceGroupManager when it fails to create raftcluster.
err = c.keyspaceGroupManager.Bootstrap(c.ctx)
if err != nil {
return err
}
}

Currently, we need to reload all keyspaces metadata before the PD server is ready to serve. If the keyspaces is too many, it will take too long

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions