Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make simulator work with large scale cluster #5683

Closed
Tracked by #5468
rleungx opened this issue Nov 7, 2022 · 0 comments · Fixed by #8269
Closed
Tracked by #5468

Make simulator work with large scale cluster #5683

rleungx opened this issue Nov 7, 2022 · 0 comments · Fixed by #8269
Labels
type/enhancement The issue or PR belongs to an enhancement.

Comments

@rleungx
Copy link
Member

rleungx commented Nov 7, 2022

Enhancement Task

Currently, the store heartbeat needs to wait for all regions to have been processed. So the store will change to disconnected from the PD perspective. See

// Tick invokes nodes' Tick.
func (d *Driver) Tick() {
d.tickCount++
d.raftEngine.stepRegions()
d.eventRunner.Tick(d.tickCount)
for _, n := range d.conn.Nodes {
n.reportRegionChange()
d.wg.Add(1)
go n.Tick(&d.wg)
}
d.wg.Wait()
}

We need to separate these two logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement The issue or PR belongs to an enhancement.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant