2
아래와 같이 재구성이 가능한 내구성있는 사서함과 함께 원격 액터를 사용하도록 Akka를 구성하고 싶습니다.원격 액터 및 내구성이있는 사서함이있는 Akka
common.conf 파일 :
akka {
actor {
mailbox {
redis {
hostname = "127.0.0.1"
port = 6379
}
}
provider = "akka.remote.RemoteActorRefProvider" }
remote {netty {hostname = "127.0.0.1" }}
}
내 application.conf 파일 :
이 akka 샘플 - 원격에서 구성 파생되는calculatorActor {include "common"}
remotecreation {
include "common"
akka {
actor {
deployment {
/advancedCalculator {
router = "round-robin"
nr-of-instances = 200
target {
nodes = ["akka://[email protected]:2552"]
}
}
}
}
remote.netty.port = 2554
}
}
. 응용 프로그램을 실행할 때 redis 측 (영구 메일 함)에 대한 연결이 표시되지 않습니다. Redis 로그에는 다음 항목 만 포함됩니다.
0 clients connected (0 slaves)
그냥 빨리 질문을 당신은 이미 요청했습니다 때문이다. 같은 이름을 가진 두 명의 원격 액터가 동일한 redis 인스턴스를 사용하는 경우 사서함을 공유합니까? –