dgrove-oss commented on issue #141: Add a membership management using the 
discovery
URL: 
https://github.com/apache/incubator-openwhisk-package-alarms/pull/141#issuecomment-376241337
 
 
   I think on kubernetes we would do this differently.  More like how we are 
deploying the controllers.  I do not think we would need to use a discovery 
service.
   
   We would deploy the alarm provider as a [StatefulSet 
](https://kubernetes.io/docs/concepts/workloads/controllers/statefulset/) with 
the number of replicas desired for redundancy.  We would define a Kubernetes 
service to provide a stable way for clients of the alarm packge to talk to its 
instances.  If the instances needed to communicate with each other for their 
own internal reasons (for example like the AKKA clustering we do with the 
controller), they would use logical names like 
alarmservice-0.alarmservice.openwhisk, alarmservice-1.alarmservice.openwhisk, 
etc.  Kubernetes will automatically updates its internal DNS tables to map from 
these names to the actual ip addresses for the currently running containers. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to