-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Handle housekeeping with sharded cluster #505
Comments
The options that you've suggested look good to me.
These options seem like opposite options to me, but I think they both can be implemented by using etcd. |
I have implemented leader election with K8s lease object, but this will make yorkie k8s dependent. Therefore, I will change this implementation with MongoDB, where yorkie already have dependency on. To be specific about the implementation, I will use the way of nodes try to update on the same document(same Also, to ensure that only one node becomes the leader when a lease has expired, I will use TTL indexes to remove document on expiry, preventing nodes to update the same document simultaneously. |
@hackerwins Are we proceeding this issue? |
No, it's still on hold. During housekeeping, it seems that Client Deactivation competing across nodes doesn't cause significant issues, so we haven't proceeded with this. |
What would you like to be added:
We recently introduced cluster mode based on the shard key. This shard key is used to assign APIs requested by clients to servers in the cluster based on project or document.
Housekeeping operations should also apply this sharded cluster structure. We can think of two options:
Why is this needed:
The text was updated successfully, but these errors were encountered: