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

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

License

Notifications You must be signed in to change notification settings

maizy/akka-cluster-heartbeat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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