-
Notifications
You must be signed in to change notification settings - Fork 726
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
[WIP]broadcast region when we use etcdBaseKV to saveRegion #1466
Comments
@bradyjoestar It's not always broadcast the changed, only if the client has established the stream with the leader. and if not use |
But there is a problem that the |
@nolouch my pleasure if it is not hurry . 😁 |
@bradyjoestar Thanks, you can have a try. Now, the config of the follower only reload when the lead changed, what we want is when the config of the leader changed, we can also apply the change to the follower server. and now the related code is here: |
@nolunch I will try to handle it. 👌 |
I am reading the
core/kv.go
and found the following codeIf
useRegionKV=0
, we will usekv.KVBase
tosaveRegion
, but at the same timeregion_syncer
is still runing in thehttps://github.com/pingcap/pd/blob/59968e186cf23bdc172cd7be3c3c7e22aeb600f0/server/cluster.go#L128
And the leader will broadcast the
region
to member due tohttps://github.com/pingcap/pd/blob/59968e186cf23bdc172cd7be3c3c7e22aeb600f0/server/cluster_info.go#L563
Maybe it could be skipped when we dont use
leveldb
askvstore
to decrease the network flow?The text was updated successfully, but these errors were encountered: