-
Notifications
You must be signed in to change notification settings - Fork 10
Demo
The Demo project allows you to run a scala console with access to some special objects and methods that allow you to launch an EC2 cluster (via deploylib) and run a variety of RAD Lab systems software such as a Mesos master and slaves.
The file SCADS_HOME/demo/src/main/scala/DemoSetup.scala contains the objects/methods that are constitute the demo project. Each component that needs to be run (e.g. Mesos, meta scheduler, Scads director, Webapp director, Rain, Spark) should eventually be runnable via method such as startScadr
. In order to run the demo console (and get access to these commands), do the following:
- Clone the SCADS git repository
- Download and install SBT
- Build a "demo" console, use the following commands:
-
sbt
(run this from inside the root SCADS directory, opens an sbt console which puts you at a ">" prompt) project demo
make-packaged-classpath
-
- Open the demo console by:
- exiting sbt (or opening a new shell window and
cd
-ing to SCADS root directory again) - from the SCADS root directory, run
bin/mvnconsole
- exiting sbt (or opening a new shell window and
- Now you should be able to interact with any demo clusters being run by other RAD Labians or set up your own. See the next section for an overview of the commands you can use in the demo console (all the demo project includes deploylib so you have all of deploylib at your disposal in this terminal, plus some).
See the deploylib page for a list of commands available in deploylib, such as starting mesos masters, slaves, etc.
- DemoConfig - Object with val members that hold the hard coded config settings for your demo. E.g. DemoConfig.serviceSchedule
- setupMesosMaster - Start a mesos master and make it the primary for the demo. Only needs to be run by one person.
- restartServiceScheduler - Restart the service meta-scheduler on the mesos master. Note this should only be run by the cluster owner, and it will kill all running jobs.
- startScadrDirector - start the SCADS director for the SCADr web app.
- startScadr - run the SCADr web app as a Mesos web framework.
All configuration / coordination for the demo is done relative to a location in zookeeper. Thus if you want to set up a separate cluster to experiment with, all you need to do it change zooKeeperRoot in the DemoConfig object to point to /home//demo instead of /demo. You can then use the setup commands listed above.
- Demo MySQL Logging Logging metrics to MySQL