Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

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

README.md

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

Languages

You can’t perform that action at this time.