Part 2 Worker

 

The second part of this book focuses on the Cube worker component. As its name suggests, the worker is responsible for performing the work in an orchestration system. The subject of that work is the task. If you’ve used Docker, then you’re familiar with starting containers using the Docker command-line interface. In this model, you are the worker. In Cube, we replace you with a program that conceptually performs operations similar to you starting and stopping a Docker container.

In chapter 4, we will flesh out the implementation of the Worker object. The implementation focuses on starting and stopping a task.

In chapter 5, we will build an API for the Worker. The Manager object, which will be the subject of part 3, will be the user of this API.

In chapter 6, we will create a framework that allows the worker to expose metrics on its API. These metrics will be used by the Manager and the Scheduler components in later chapters.