Hi there,
I am currently building Lagom services with the Cluster Sharding in mind. And since Lagom is based on Akka, I was wondering if I could make use of Akka Management’s Cluster Http module to monitor the cluster health.
In order to do this, I added following library dependencies as per the document:
libraryDependencies ++= Seq(
"com.lightbend.akka.management" %% "akka-management" % "0.19.0",
"com.lightbend.akka.management" %% "akka-management-cluster-http" % "0.19.0"
)
And then added the following code in the ApplicationLoader in one of the services:
val httpMgmt = ClusterHttpManagement(system)
While I was doing this, I came up with the two questions.
-
Is this even possible to monitor the cluster health of Lagom clusters using Akka Http Management plugins like this?
-
Does Lagom’s
**lagomScaladslCluster**
library already contains and handles this Akka Management things, meaning that I don’t have to explicitly add those two libraries again in the build.sbt, I just need to find ways to use the existing ones in thelagomScaladslCluster
library…?
Does Lagom’slagomScaladslCluster
already make uses of Akka Management’s plugins like Cluster Bootstrapping and Discovery to achieve the Cluster Sharding?
Thanks,