I'm running the sample project from How to setup akka persistence project
: https://developer.lightbend.com/start/?group=akka&project=akka-samples-persistence-dc-java
application.conf:
cluster {
seed-nodes = [
"akka://ClusterSystem@127.0.0.1:2551",
"akka://ClusterSystem@127.0.0.1:2552"]
# Needed when running many actor systems in the same JVM
jmx.multi-mbeans-in-same-jvm = on
downing-provider-class = "akka.cluster.sbr.SplitBrainResolverProvider"
multi-data-center {
self-data-center = "eu-west"
}
}
Have configured 2 hosts running Yugabyte:
http://yugabyte_db_1:7000/
http://yugabyte_db_2:7000/
Where to set the configuration that allows replication between each Yugaybte data source?
Should it be set within the seed-nodes configuration? :
seed-nodes = [
"akka://ClusterSystem@127.0.0.1:2551",
"akka://ClusterSystem@127.0.0.1:2552"]
Looking at the Yugabyte config I'm unsure where the config is exposed which points to the seed nodes :
Note that you're using the web interface to connect. The YCQL api is available on the 9042
port.
Also note that akka will use the default Cassandra driver. And it's best to use the YugabyteDB fork: https://github.com/yugabyte/cassandra-java-driver
Then you can also see how to setup a cluster in multiple regions https://docs.yugabyte.com/latest/deploy/multi-dc/