Reader small image

You're reading from  Apache Mesos Cookbook

Product typeBook
Published inAug 2017
PublisherPackt
ISBN-139781785884627
Edition1st Edition
Right arrow
Authors (2):
David Blomquist
David Blomquist
author image
David Blomquist

David Blomquist been working with computers since the 1980s. His first computer was an Apple Macintosh and the first networked computer he managed was a 10 terminal Xenix system. Since that time, David has held positions in virtually every area of IT, including operations, development, and architecture. David now specializes in designing Big Data, HPC, and Grid Computing systems with applications in Health Care and Science. Most recently, he has designed and deployed several large-scale clusters for the Federal Government.
Read more about David Blomquist

View More author details
Right arrow

Tuning Marathon


In this recipe, you will learn how to configure Marathon to improve its performance.

Getting ready

Before you begin, you should capture Marathon metrics to see whether presented actions give the desired effect.

How to do it...

Marathon has many configuration options that could change its performance. It's written in Scala so it runs on JVM, which has even more options.

Most of the default settings are good enough even for big installations. However, there is a small set that should be changed.

You can gain better performance by changing Marathon's JVM options, especially to give it more memory and change the Garbage Collection algorithm. Tuning JVM is out of the scope of this book, so we will show only the basic methods. The following code will set Marathon to use 2 GB of memory and change the Garbage Collector to G1:

echo 'JAVA_OPTS=" -mx2g -ms2g -XX:+UseG1GC -XX:MetaspaceSize=100M"' >> /etc/default/marathon

The next thing that has an impact on performance is how many tasks...

lock icon
The rest of the page is locked
Previous PageNext Chapter
You have been reading a chapter from
Apache Mesos Cookbook
Published in: Aug 2017Publisher: PacktISBN-13: 9781785884627

Authors (2)

author image
David Blomquist

David Blomquist been working with computers since the 1980s. His first computer was an Apple Macintosh and the first networked computer he managed was a 10 terminal Xenix system. Since that time, David has held positions in virtually every area of IT, including operations, development, and architecture. David now specializes in designing Big Data, HPC, and Grid Computing systems with applications in Health Care and Science. Most recently, he has designed and deployed several large-scale clusters for the Federal Government.
Read more about David Blomquist