/akka-sbt-study

study akka and sbt

Primary LanguageSlash

akka-sbt-study

setup project environment

Run front-end cluster app

  • Seed node 1: sbt -Djava.library.path=./sigar -Dconfig=cluster -Dakka.port=2551 "project frontend" run
  • Sees node 2 (option): sbt -Djava.library.path=./sigar -Dconfig=cluster -Dakka.port=2552 -Dhttp.port=8082 "project frontend" run
  • normal node: sbt -Djava.library.path=./sigar -Dconfig=cluster -Dhttp.port=8083 "project frontend" run

Test url from browser

Run back-end cluster app

  • Seed node 1(optional): sbt -Djava.library.path=./sigar -Dconfig=cluster -Dakka.port=2551 "project backend" run
  • Sees node 2 (optional): sbt -Djava.library.path=./sigar -Dconfig=cluster -Dakka.port=2552 "project backend" run
  • normal node: sbt -Djava.library.path=./sigar -Dconfig=cluster "project backend" run

Start Nginx reserve proxy

nginx -c ./nginx/nginx.conf

nginx -s stop to stop proxy