Skip to content
gqlxj1987's Blog
Go back

Cluster Akka in Kubernetes

Edit page

原文链接

akka {
  actor {
    provider = "cluster"
  }
  remote {
    netty.tcp {
      hostname = 192.168.0.1         # machine IP
      port = 32551                   # machine port
      bind-hostname = 10.100.0.23    # container IP
      bind-port = 2551               # container port
    }
  }
}

headless service and dns discovery

Statefulsets are scaled sequentially rather than in parallel. When I scale a Statefulset from one Akka node to five Akka nodes, rather than starting four more Akka nodes in parallel, it’ll start akka-1, wait for it to start successfully, then start akka-2, wait, start akka-3, … and repeat until it’s done. This is not ideal as it may take a while to start hundreds of Akka nodes.


Edit page
Share this post on:

Previous Post
Java You Don't Know
Next Post
自律是解决逃避的唯一办法