Skip to content
This repository has been archived by the owner on Mar 28, 2019. It is now read-only.

maizy/akka-cluster-heartbeat

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

akka-cluster-heartbeat - akka hello world in a hard way

Trying to implement minimal akka cluster app with a simple purpose.

Dev

cd akka-cluster-heartbeat
sbt 'run cmd --option'

Tests

sbt test

If you run tests in the IntelliJ IDEA, don't forget to run multi-jvm tests manually:

sbt multi-jvm:test

Building

sbt assembly

Usage

java -jar target/scala-2.11/akka-cluster-heartbeat-assembly-*.jar COMMAND [OPTIONS]

Commands:

  • node - work with cluster node
  • emulator - start emulator

For options see java -jar akka-cluster-heartbeat-assembly.jar --help

Start cluster

java -jar akka-cluster-heartbeat-assembly.jar node --port 2550

Add node

java -jar akka-cluster-heartbeat-assembly.jar node --port 2551 --role stat

Remove node

Just kill the process by SIGTERM or SIGINT.

kill -INT $pid
kill $pid

or just Ctrl+C if you have an interactive run.

License

MIT

Copyright (c) 2015 Nikita Kovaliov, dev.maizy.ru

See LICENSE.txt for details.

About

🎓 akka hello world in the hard way - trying to implement minimal akka cluster app with a simple purpose

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages