DevilKing's blog

冷灯看剑,剑上几分功名?炉香无需计苍生,纵一穿烟逝,万丈云埋,孤阳还照古陵

0%

Cluster Akka in Kubernetes

原文链接

1
2
3
4
5
6
7
8
9
10
11
12
13
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.