-
Notifications
You must be signed in to change notification settings - Fork 10
Deploying to AWS
Alex Lopatin edited this page Jan 25, 2019
·
1 revision
This tutorial explains how to modify the example project from the Project Setup guide into a cluster.
A clustered Flashbot project is simply a properly configured Akka cluster that runs a number of DataServer
and TradingEngine
actors. An Akka cluster consists of nodes that communicate with each other over a network. In this section we'll create two Akka nodes, each in it's own DigitalOcean droplet. One node runs a Coinbase market data server, and one runs a trading engine which consumes data from the first node in order to run a backtest and provide charting.
todo
Add the following section to your application.conf:
akka {
actor {
provider = "akka.cluster.ClusterActorRefProvider"
}
remote {
log-remote-lifecycle-events = off
netty.tcp {
hostname = 127.0.0.1
port = ${?akka.port}
bind-hostname = 127.0.0.1
bind-port = ${?akka.port}
}
}
cluster {
seed-nodes = [
"akka.tcp://[email protected]:2551"
]
}
}