ServoKvd commented on issue #2689: WIP on dynamic invoker id assignment URL: https://github.com/apache/incubator-openwhisk/pull/2689#issuecomment-326897662 Hello, ( Im m Kavitha Devara) Im in favor of making the Invoker Stateless, I brought this up earlier on the slack chnnls- Am happy to see some momentum on this. Im experimenting with the following way of obraining the InstanceId from the Controller and calling this API in the "Invoker" before it can bootstrap itself up with an ID ( ie. instead of reading from the properties/config file as it is doing now, it will read the Instance from teh query to the Controller) "curl controller.openwhisk:8080/invokers" ---> This should give the current list of Invokers, Get the length of current Invokers from here and create an Invoker with the next index or write a new REST API in Controller.scala, to get "availableIndex" for the Invoker. "avialable Indexes" can be a pool of Indexes/UUIDs maninatined by the Controller that may be assigned for new Invoker Instance creation. Any thoughts on this kind of solution? (Note: Am having trouble with finding the routing path for the Controller REST APIS - so for now am modifying teh existing REST API( curl controller:openwhisk:8080/invokers) to return the data I need, Any pointers as to how to add a new REST API path is apprecaited. (should be somehwere in some resoruces/*.json file, Im expecting) ---------------------------------------------------------------- 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
