Book Image

CoreOS Essentials

By : Rimantas Mocevicius
Book Image

CoreOS Essentials

By: Rimantas Mocevicius

Overview of this book

<p>This book will help you get up and running on using CoreOS to develop effective computing networks. You will begin with understanding the basics of CoreOS. You will then discover what etcd is and how it is used, followed by launching Docker containers with systemd and fleet. Learn how to manage clusters, read system logs, and customize with cloud-config. You will set up the deployment to production using Docker builder and a private Docker registry. You will also see how to set up and use CoreUpdate and Enterprise Registry, and get an introduction to the new App Container called rkt and the newly introduced cluster manager known as Kubernetes.</p> <p>This book will equip you with all the information you need to leverage the power of CoreOS and the related containers for the effective deployment of your applications.</p>
Table of Contents (17 chapters)
CoreOS Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Determining the optimal etcd cluster size


The most efficient cluster size is between three and nine peers. For larger clusters, etcd will select a subset of instances to participate in order to keep it efficient.

The bigger the cluster, the slower the writing to the cluster becomes, as all of the data needs to be replicated around the cluster peers. To have a cluster well-optimized, it needs to be based on an odd number of peers. It must have a quorum of at least of three peers and prevent a split-brain in the event of network partition.

In our case, we are going to set up a three-peer etcd cluster. To build a highly available cluster on the cloud (GCE, AWS, Azure, and so on), you should use multiple availability zones in order to decrease the effect of failure in a single domain.

In a general cluster, peers are not recommended to be used for anything except for running an etcd cluster. But for testing our cluster setup, it will be fine to deploy some fleet units there.

In later chapters, you...