EricGao888 opened a new issue, #13445:
URL: https://github.com/apache/dolphinscheduler/issues/13445

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar feature requirement.
   
   
   ### Description
   
   * Add a new registry plugin for DS so that DS will no longer need to depend 
on ZooKeeper / MySQL / ETCD for service discovery and distributed lock when 
deployed in K8S.
   * Heartbeat - K8S Watch
   * Service Discovery - K8S Node Selector / K8S Endpoints Controller
   * Master Fault Tolerant (Distributed Lock) - K8S Resource Annotation - 
Masters will attempt to put its pod ip into the `metadata.annotations` of a 
resource and the one which does this successfully will be the leader to perform 
failover operations.
   * Two examples for java k8s client for leader election: [example with 
kubernetes-client](https://github.com/kubernetes-client/java/blob/master/examples/examples-release-15/src/main/java/io/kubernetes/client/examples/LeaderElectionExample.java)
 [example with fabric8 
kubernetes-client](https://github.com/fabric8io/kubernetes-client/blob/master/kubernetes-examples/src/main/java/io/fabric8/kubernetes/examples/LeaderElectionExamples.java)
   * Already WIP.
   
   ### Use case
   
   Already described above.
   
   ### Related issues
   
   None
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to