dgrove-oss commented on issue #2689: WIP on dynamic invoker id assignment
URL: 
https://github.com/apache/incubator-openwhisk/pull/2689#issuecomment-326843184
 
 
   Keeping the same ID across restarts is a good point.  I was thinking we will 
need to have some mechanism for draining the topics of offline invokers, so we 
could just use that more frequently and not worry about reusing invoker ids 
across restarts. But that might not be optimal. 
   
   Perhaps the path to pursue is allowing invoker IDs to be an arbitrary 
alphanumeric string (anything that is legal to embed in a kafka topic name) 
that the invoker computes _somehow_ without needing to communicate with the 
controller (by reading a command line, by computing a function on its ip 
address, by otherwise picking something out of its environment/filesystem, 
randomUUID, ...).  The controller/load balancer just uses the ID (provided to 
it implicitly by ping messages on the health topic) to create the kafka topic 
invoker-ID and the loadbalancer internally maps the ID to a dense numbering of 
currently active invokers to support hashing incoming work to invokers.
 
----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to