Installing and configuring Metronome
In this recipe, you will learn how to set up Metronome.
How to do it...
Metronome installation is a bit harder than Marathon. There are no official binary packages for it, so it must be installed from source.
- First, we need to download the Metronome source code:
curl -L https://github.com/dcos/metronome/archive/v0.1.9.tar.gz | tar -zx
cd metronome-0.1.9
- Metronome is written in Scala and to build it, we need the Scala Build Tool (SBT):
cho "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 642AC823 sudo apt-get update sudo apt-get install sbt
- Install the Protocol Buffer compiler:
sudo apt-get install protobuf-compiler
- Finally, build and install the package:
sbt universal:packageBin mkdir -p /opt/mesosphere unzip target/universal/metronome-0.1.9.zip -d /opt/mesosphere cat <<EOF > /etc/systemd/system/metronome.service [Unit] Description=Metronome Wants...