ddragosd commented on a change in pull request #2531: Use akka distributed map
to store the shared state
URL:
https://github.com/apache/incubator-openwhisk/pull/2531#discussion_r129591210
##########
File path:
core/controller/src/main/scala/whisk/core/controller/Controller.scala
##########
@@ -185,7 +187,49 @@ object Controller {
}
def main(args: Array[String]): Unit = {
- implicit val actorSystem = ActorSystem("controller-actor-system")
+
+ // read controller parameters from env variables
+ val port = sys.env("AKKA_CLUSTER_PORT")
+ val bindPort = sys.env("AKKA_CLUSTER_BIND_PORT")
+ val hostname = sys.env("AKKA_CLUSTER_HOST")
+ val bindHost = InetAddress.getLocalHost.getHostAddress
+
+ val conf = s"""
+ include "logging"
+ akka {
+ actor {
+ provider = cluster
+ }
+ remote {
+ log-remote-lifecycle-events = off
+ netty.tcp {
+ hostname = $hostname
+ port = $port
+ bind-hostname = $bindHost
+ bind-port = $bindPort
+ }
+ }
+ cluster {
+ seed-nodes =
["akka.tcp://controller-actor-system@$hostname:8000"]
Review comment:
I assume/hope we have in plan an auto-discovery of nodes.
----------------------------------------------------------------
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