You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2018/03/22 08:41:25 UTC

[GitHub] KeonHee opened a new pull request #141: Add a membership management using the discovery

KeonHee opened a new pull request #141: Add a membership management using the discovery
URL: https://github.com/apache/incubator-openwhisk-package-alarms/pull/141
 
 
   about #133 
   
   
   ## Summary
   One socket is created which connects the nodes using unicast and elects a master node.
   Only the master fires the trigger. If the master node dies, elects another master.
   
   ## Advantage
   - We can build redanduncy with n. (Currently, only two)
   - Dependency with redis can be removed.
   - No external health check manager is required.
   
   ## Configuration
   1. `DISCOVER_DESTINATIONS`
     - Environment variable that turns this pr on/off.
     - If there is no value in this environment variable, the socket does not created, and the trigger execution logic functions as it did in the past(`activehost===host`).
     - Input the addresses of the nodes separated by a comma.
   ex) `DISCOVER_DESTINATIONS=host0.alarm.io,host1.alarm.io,host2.alarm.io`
   
   
   2. `DISCOVER_ADDRESS `,`DISCOVER_PORT `
     - The ip address and port where the socket is created.
   
   3. `DISCOVER_MASTER_TIMEOUT `, `DISCOVER_NODE_TIMEOUT `, `DISCOVER_CHECK_INTERVAL`, `DISCOVER_HELLO_INTERVAL`
     - It is configuration for health check interval and timeout.
     - The following conditions must be met:
   `DISCOVER_MASTER_TIMEOUT ` >= `DISCOVER_NODE_TIMEOUT ` >= `DISCOVER_CHECK_INTERVAL` > `DISCOVER_HELLO_INTERVAL`
   
   ## Compatibility
   If this option is turned off, it can still be used as it was.
   
   
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services