Chapter 10. Developing a framework

 

This chapter covers

  • The components that make up a Mesos framework
  • The Mesos Scheduler and Executor APIs
  • Writing a framework by using the Python bindings for Mesos

Welcome to the last and final chapter of Mesos in Action. Up to this point, I’ve covered topics such as how Mesos provides a new architecture for datacenter computing, how to deploy Mesos, and how to deploy applications and Cron jobs. This chapter provides a primer on how to start developing your first Mesos framework.

Unlike previous chapters, this chapter is more development-oriented than the operations-oriented material I’ve presented up to this point. Before we proceed, I’ll assume that you have some experience with software development and with reading and writing code in the Python programming language. Although Mesos provides bindings for other languages, such as C++, Java, and Scala, and there are community efforts around bindings for languages such as Erlang and Go, I’m using Python here because it’s generally easy to read and understand.

10.1. Understanding framework basics

10.2. Developing a scheduler

10.3. Developing an executor

10.4. Running the framework

10.5. Summary