-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Carl Pulley edited this page Jul 16, 2014
·
30 revisions
# Ensure that packaging dependencies are installed
sudo apt-get install dpkg-deb fakeroot
# Download and install Chef client:
wget https://www.opscode.com/chef/install.sh
sudo bash ./install.sh
# Install the Simble Build Tool (SBT):
export SBT_OPTS="-XX:MaxPermSize=1G -XX:+CMSClassUnloadingEnabled"
wget http://repo.scala-sbt.org/scalasbt/sbt-native-packages/org/scala-sbt/sbt/0.13.1/sbt.deb
sudo dpkg -i sbt.deb
git clone https://github.com/carlpulley/jclouds-cluster
cd jclouds-cluster
# Now edit resources/jclouds.conf with your credentials informationgit checkout experiment-1
sbt clean
sbt stage
sbt consoleval app = new ClientNode(Map("red" -> 6666, "green" -> 7777, "blue" -> 9999))
// Expect to see the red, green and blue nodes joining the cluster
app.client ! Ping("hello") // expect: red, green and blue message tags
app.provisionNode("yellow", 8888)
// Expect to see the yellow node joining the cluster
app.client ! Ping("hello") // expect: red, green, blue and yellow message tags
// To see current cluster members
app.cluster.sendCurrentClusterState(app.client)git checkout experiment-2
git submodule init
git submodule update
sbt clean
sbt stage
sbt debian:packageBin
cp target/cluster-*.deb cookbook/cluster/files/default/
knife cookbook upload apt
knife cookbook upload java
knife cookbook upload cluster
sbt consoleval app = new ClientNode(Amazon, Set("red", "green", "blue"))
// Expect to see the red, green and blue nodes booting up and joining the cluster
app.client ! Ping("hello") // expect: red, green and blue message tags
app.provisionNode("yellow")
// Expect to see the yellow node booting up and joining the cluster
app.client ! Ping("hello") // expect: red, green, blue and yellow message tags
// To see current cluster members
app.cluster.sendCurrentClusterState(app.client)
// Shutdown our cloud instances and application
app.shutdowngit checkout experiment-3 # or experiment-4
git submodule init
git submodule update
sbt clean
sbt stage
sbt debian:packageBin
cp target/cluster-*.deb cookbook/cluster/files/default/
knife cookbook upload apt
knife cookbook upload hostsfile
knife cookbook upload java
knife cookbook upload cluster
sbt console# Expect to be located in the deltacloud base project directory here
./server/bin/deltacloudd -i virtualbox -w -c $JCLOUDS_CLUSTER/src/main/resources/deltacloud.conf