GithubHelp home page GithubHelp logo

to11mtm / akka-cluster-management Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ismaelhamed/akka-cluster-management

0.0 1.0 0.0 585 KB

Akka Cluster HTTP Management is a module that allows you interaction with an akka-cluster through an HTTP interface.

License: Apache License 2.0

C# 100.00%

akka-cluster-management's Introduction

Akka Management Cluster HTTP

Akka.NET Management Cluster HTTP, a port of the popular Java/Scala library to .NET, is a management extension that allows you interaction with an akka-cluster through an HTTP interface. This management extension exposes different operations to manage nodes in a cluster.

The operations exposed comparable to the JMX interface akka-cluster provides.

alt text

API Definition

The following table describes the usage of the API:

Path HTTP method Required form fields Description
/cluster/members/ GET None Returns the status of the Cluster in JSON format.
/cluster/members/ GET address: {address} Returns the status of {address} in the Cluster
/cluster/members/ POST address: {address} Executes join operation in cluster for the provided {address}.
/cluster/members/ PUT address: {address}, operation: down Executes down operation in cluster for provided {address}.
/cluster/members/ PUT address: {address}, operation: leave Executes leave operation in cluster for provided {address}.
/cluster/shards/{name} GET None Returns shard info for the shard region with the provided {name}

The expected format of address follows the Cluster URI convention. Example: akka://[email protected]:3311

GET /cluster/members responses

Response code Description
200 Status of cluster in JSON format
500 Something went wrong. Cluster might be shutdown.

Example response:

{
  "selfNode": "akka.tcp://[email protected]:1111",
  "members": [
    {
      "node": "akka.tcp://[email protected]:1111",
      "nodeUid": "1116964444",
      "status": "Up",
      "roles": []
    }
  ],
  "unreachable": [],
  "leader: "akka.tcp://[email protected]:1111",
  "oldest: "akka.tcp://[email protected]:1111"
}

GET /cluster/members/?address={address} responses

Response code Description
200 Status of cluster in JSON format
404 No member was found in the cluster for the given {address}.
500 Something went wrong. Cluster might be shutdown.

Example response:

{
  "node": "akka.tcp://[email protected]:1111",
  "nodeUid": "-169203556",
  "status": "Up",
  "roles": []
}

POST /cluster/members/ responses

Response code Description
200 Executing join operation.
500 Something went wrong. Cluster might be shutdown.

Example response:

Joining akka.tcp://[email protected]:111

PUT /cluster/members/ responses

Response code Operation Description
200 Down Executing down operation.
200 Leave Executing leave operation.
400 Operation supplied in operation form field is not supported.
404 No member was found in the cluster for the given {address}
500 Something went wrong. Cluster might be shutdown.

Example response:

Downing akka.tcp://[email protected]:111

GET /cluster/shards/{name} responses

Response code Description
200 Shard region information in JSON format
404 No shard region was found on the node for the given {name}

Example response:

{
  "regions": [
    {
      "shardId": "1234",
      "numEntities": 30
    }
  ]
}

akka-cluster-management's People

Contributors

ismaelhamed avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.