Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

akkeeper-app not in maven repository #76

Open
MGabr opened this issue Mar 8, 2019 · 4 comments
Open

akkeeper-app not in maven repository #76

MGabr opened this issue Mar 8, 2019 · 4 comments

Comments

@MGabr
Copy link

MGabr commented Mar 8, 2019

Hi,

thanks a lot for this nice library. I'm trying to use the latest version of the Deploy API but it seems that the required module akkeeper-app is not published on maven while the other modules akkeeper-api, akkeeper-common etc are. Is there some reason behind that or am I missing something?

@izeigerman
Copy link
Owner

izeigerman commented Mar 11, 2019

Hi @MGabr . Thanks for reporting this issue! You're absolutely right, since version 0.4.* it's no longer possible to use ContainerService.createRemote/DeployService.createRemote/etc. APIs. This should definitely be fixed.

Meanwhile I suggest the following workarounds:

  1. Use REST API instead.
  2. Manually compose a path to the Master Service actor like this:
val masterServicePath = RootActorPath(<master_address>) / "user" / "akkeeperMaster"
val masterService = actorSystem.actorSelection(monitoringServicePath)
masterService ? <any API message>

API messages are available through the akkeeper-api module.
The <master_address> can be found using the list of available cluster members. The Akkeeper Master member has the akkeeperMaster role. Here is an example:

val cluster = Cluster(actorSystem)
val akkeeperMasterAddress = cluster.state.members.find(m => m.hasRole("akkeeperMaster"))
  .map(_.address)
  .getOrElse(throw new RuntimeException("Failed to find a running Akkeeper Master instance"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants
@izeigerman @MGabr and others