Circuit Self-managed infrastructure, programmatic monitoring and orchestration

Run the app on the cluster

Here we get to run the circuit program that we wrote in the previous section. Log into any one of the EC2 instances that are part of your circuit cluster.

First, build and install the circuit app, which can be found within the circuit repo:

	$ go install github.com/gocircuit/circuit/tutorial/nodejs-using-mysql/start-app

This will place the resulting executable in $GOPATH/bin.

And finally we can execute the circuit app, instructing it to connect (as a client) to the circuit server running on the host we are currently on:

	$ $GOPATH/bin/start-app -addr $(cat /var/circuit/address)

If successful, the app will print out the addresses of the MySQL server and the Node.js service and will exit.

You should also be able to see the Node.js process element using the circuit command-line tool:

	$ circuit ls -d $(cat /var/circuit/address) -l /...

This concludes the tutorial.