Skip to content

Instantly share code, notes, and snippets.

Avatar

Dave Sugden dsugden

View GitHub Profile
View con_19.scala
IO(Http) ? Http.Bind(service, interface = ip, port = port)
logger.info(s"MicroserviceMain booting ip:$ip port:$port")
StatusService.signalStartedOrExit()
View con_18.txt
vagrant@vagrant-ubuntu-trusty-64:~$ conduct run --ip 192.168.77.20 --scale 2 91fc7e7
Bundle run request sent.
Stop bundle with: conduct stop --ip 192.168.77.20 91fc7e7
Print ConductR info with: conduct info --ip 192.168.77.20
vagrant@vagrant-ubuntu-trusty-64:~$
View con_17.txt
vagrant@vagrant-ubuntu-trusty-64:~$ conduct stop --ip 192.168.77.20 91fc7e7
Bundle stop request sent.
Unload bundle with: conduct unload --ip 192.168.77.20 91fc7e7
Print ConductR info with: conduct info --ip 192.168.77.20
vagrant@vagrant-ubuntu-trusty-64:~$
View con_16.scala
object Application extends Controller with LazyLogging {
def index = Action.async {
val singlemicro = LocationService.getLookupUrl("/singlemicro", "http://127.0.0.1:8096/singlemicro")
val result = WS.url(singlemicro+"/singlemicro")
.withFollowRedirects(follow = true)
.get()
.map { response =>
Ok(response.body)
}
View con_15.txt
vagrant@vagrant-ubuntu-trusty-64:~$ conduct info --ip 192.168.77.20
ID NAME #REP #STR #RUN
d248907 visualizer 3 0 1
91fc7e7 singlemicro-1.0.0 4 0 2
76d03c0 playproject-1.0.0 3 0 1
View con_14.txt
sbt
project singlemicro
#Now we need to tell the plugin where ConductR is hosted:
controlServer 192.168.59.103:9005
#Once this is done, you can build a distribution, load it up to ConductR cluster, run , stop and unload.
#create the artifact (bundle)
View con_13.txt
akka.cluster.seed-nodes = ["akka.tcp://SomeAkkaClusterSystem@10.0.1.60:8089"]
View con_12.text
akka.cluster.seed-nodes = ["akka.tcp://SomeAkkaClusterSystem@127.0.0.1:8089"]
View con_11.scala
AkkaProperties.initialize()
View con_10.scala
BundleKeys.endpoints := Map("akka-remote" -> Endpoint("tcp", 0, Set.empty))
You can’t perform that action at this time.