-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
[discuss] Discussion of executing a single server under multiple nodes #501
Comments
Through a distributed lock to ensure that only one of the multiple nodes can perform tasks? Do you have a better plan? Look forward to further communication with you |
I wrote a https://github.com/go-kratos-ecosystem/components/tree/2.x/crontab
|
I implemented a package to solve this problem, the address of the package is: https://github.com/go-kratos-ecosystem/components/tree/2.x/crontab/jobwrapper/mutex How to use it: https://github.com/go-kratos-ecosystem/components/blob/2.x/crontab/README.md |
I am thinking that in the actual project application scenario, our cron actually runs under multiple nodes.
I was wondering if I could provide an independent way to support the multi-node guarantee of single-node operation.
The text was updated successfully, but these errors were encountered: