ServoKvd commented on issue #2689: WIP on dynamic invoker id assignment URL: https://github.com/apache/incubator-openwhisk/pull/2689#issuecomment-327981429 Hello, I looked at the above patch, I understand all the changes, except I was wondering, why we need to use Kfka Bus for InvokerIdRequest/Registration messages. Treating Adding/removing invokers as CRUD operations on the OpenWhisk Controller's Invenotry, I was wondering if adding a REST API as follows may be a viable design: Invoker.scala: import scalaj.http.{Http, HttpResponse} // val invokerInstance = instanceId(args(0).toInt) if(args.length ==1) val invokerInstance = instanceId(args(0).toInt) else { val response: httpResponse[String] = Http("http://172.17.0.5:8000/invokerId").asString val invokerInstance = InstanceId(response.body.toInt) } Note: Here, 172.17.0.5 is "openwhisk.controller" in myexample implementation - trying to figure out how to expose the DNS mappings to Invoker, so that openwhisk.controller may resolve to 172.17.0.5. ---------------------------------------------------------------- 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
