In order to bring up a cluster from bare metal machine to a fully functional kubernetes cluster for Paddlepaddle to run, we need to utilize some tools. Here we are going to compare [Sextant](https://github.com/k8sp/sextant) and [Tectonic installer](https://github.com/coreos/tectonic-installer)
## Basic assumptions
Here are some basic assumptions before we move on to details
1. You are an administrator of a bare metal machine cluster, which means:
* you have full control to each of the machines.
* you have full control to the network which machines are connected to.
2. Machines can be booted from network with PEX or iPXE
3. You understand the [general procedure to bring up a cluster](#appendix-general-procedure-to-bring-up-a-cluster)
if your cluster is able to mark above items with checkmarks, then keep reading.
## Comparing Sextant and Tectonic installer
### Sextant
Sextant is an end2end solution to bring up a bare metal cluster to a fully functional k8s cluster, it integrates DHCP, name service, PEX, cloud-config-service, docker registry services altogether.
#### Pros
1. End2End: basically all admin need to do is to config the cluster.yaml and power on the cluster.
2. Offline cluster configuration: Sextant has 2 phases during working with it, config time and deploy time. when admin is configuring, it requires admin's machine has internet connectivity, which will download some images, etc. But in deploy time, it's completely OK to go offline since all dependencies are ready during config time.
3. docker registry integrated.
4. GPU machine took care of.
### Cons
1. k8s API server is not deployed with high availability in considering by default.
2. No grouping support.
3. No API interface, a one-off service.
### Tectonic installer
First of all, Tectonic is not free, it requires coreos.com account as a step of installation, and free user can only create less than 10 nodes.
Tectonic is a suite of software which wraps around k8s and providing more utility regarding dev ops, ie,
Tectonic installer as it's named, it installs Tectonic to a bare metal cluster which means it's not totally an equivalent of Sextant. At the "booting a cluster" part, it mostly utilizes [Matchbox](https://github.com/coreos/matchbox), which is a general cluster bootstrapper.
Matchbox's Approach is similar to Sexstant.
### Pros
1. supports grouping machines.
2. supports running provisioning service in rtk. (not a big deal though).
3. supports http/gRPC API interface.
4. supports multi-template.
### Cons
1. Not an e2e solution to bring up a cluster, need a lot of extra work and other software.
Sextant is a better solution overall for paddle cloud deploying to a bare metal cluster. It would be great if Sextant can also 1) deploy k8s api server with high availability by default; 2) not designed as a one-off service.
## Appendix: General procedure to bring up a cluster
It's physically impossible for a cluster admin to manually install OS and applications into cluster nodes one by one, here is what an admin would do in cloud industry:
1. setup a bootstrap machine with static IP in the cluster, which has following services:
* DHCP: assigns ip address for rest of the nodes.
* name service: to map node name to a IP
* PXE related services: the booting related info will be delivered to newly booted machines as their IP is assigned via DHCP service, PXE service will provide further booting and installing info and image with TFTP and http protocol.
* cluster config service: this is for providing cluster node with OS config via http
* optional docker registry: a built-in docker registry makes the whole cluster independent from connecting internet, and speeds up software distribution.
2. New node powers on, it will
* broadcast the request for an IP address
* DHCP server assigns the IP address, and deliver the PXE booting related info to the node.
* cluster node will request config files with booting info delivered with DHCP via the TFTP service, and in most of the cases, the config file will point to a http service for the booting image.
* Since PXE is configured with initrd, it will utilize the cloud config service and do further installations like coreOS or K8s installations.
* then restart the node.
For further understanding, following 2 links from Matchbox are some good readings:
<liclass="toctree-l2"><aclass="reference internal"href="../getstarted/build_and_install/index_en.html">Install and Build</a><ul>
<liclass="toctree-l3"><aclass="reference internal"href="../getstarted/build_and_install/docker_install_en.html">PaddlePaddle in Docker Containers</a></li>
<liclass="toctree-l3"><aclass="reference internal"href="../getstarted/build_and_install/build_from_source_en.html">Installing from Sources</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../howto/usage/k8s/k8s_en.html">Paddle On Kubernetes</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../howto/usage/k8s/k8s_aws_en.html">Distributed PaddlePaddle Training on AWS with Kubernetes</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../howto/dev/build_en.html">Build PaddlePaddle from Source Code and Run Unit Test</a></li>
<liclass="toctree-l2"><aclass="reference internal"href="../howto/dev/new_layer_en.html">Write New Layers</a></li>
<spanid="cluster-bootstrapping-tool-survey"></span><h1>Cluster bootstrapping tool survey<aclass="headerlink"href="#cluster-bootstrapping-tool-survey"title="Permalink to this headline">¶</a></h1>
<divclass="section"id="abstract">
<spanid="abstract"></span><h2>Abstract<aclass="headerlink"href="#abstract"title="Permalink to this headline">¶</a></h2>
<p>In order to bring up a cluster from bare metal machine to a fully functional kubernetes cluster for Paddlepaddle to run, we need to utilize some tools. Here we are going to compare <aclass="reference external"href="https://github.com/k8sp/sextant">Sextant</a> and <aclass="reference external"href="https://github.com/coreos/tectonic-installer">Tectonic installer</a></p>
</div>
<divclass="section"id="basic-assumptions">
<spanid="basic-assumptions"></span><h2>Basic assumptions<aclass="headerlink"href="#basic-assumptions"title="Permalink to this headline">¶</a></h2>
<p>Here are some basic assumptions before we move on to details</p>
<olclass="simple">
<li>You are an administrator of a bare metal machine cluster, which means:</li>
</ol>
<ulclass="simple">
<li>you have full control to each of the machines.</li>
<li>you have full control to the network which machines are connected to.</li>
</ul>
<olclass="simple">
<li>Machines can be booted from network with PEX or iPXE</li>
<li>You understand the <aclass="reference external"href="#appendix-general-procedure-to-bring-up-a-cluster">general procedure to bring up a cluster</a></li>
</ol>
<p>if your cluster is able to mark above items with checkmarks, then keep reading.</p>
<spanid="comparing-sextant-and-tectonic-installer"></span><h2>Comparing Sextant and Tectonic installer<aclass="headerlink"href="#comparing-sextant-and-tectonic-installer"title="Permalink to this headline">¶</a></h2>
<divclass="section"id="sextant">
<spanid="sextant"></span><h3>Sextant<aclass="headerlink"href="#sextant"title="Permalink to this headline">¶</a></h3>
<p>Sextant is an end2end solution to bring up a bare metal cluster to a fully functional k8s cluster, it integrates DHCP, name service, PEX, cloud-config-service, docker registry services altogether.</p>
<divclass="section"id="pros">
<spanid="pros"></span><h4>Pros<aclass="headerlink"href="#pros"title="Permalink to this headline">¶</a></h4>
<olclass="simple">
<li>End2End: basically all admin need to do is to config the cluster.yaml and power on the cluster.</li>
<li>Offline cluster configuration: Sextant has 2 phases during working with it, config time and deploy time. when admin is configuring, it requires admin’s machine has internet connectivity, which will download some images, etc. But in deploy time, it’s completely OK to go offline since all dependencies are ready during config time.</li>
<li>docker registry integrated.</li>
<li>GPU machine took care of.</li>
</ol>
</div>
</div>
<divclass="section"id="cons">
<spanid="cons"></span><h3>Cons<aclass="headerlink"href="#cons"title="Permalink to this headline">¶</a></h3>
<olclass="simple">
<li>k8s API server is not deployed with high availability in considering by default.</li>
<li>No grouping support.</li>
<li>No API interface, a one-off service.</li>
</ol>
</div>
<divclass="section"id="tectonic-installer">
<spanid="tectonic-installer"></span><h3>Tectonic installer<aclass="headerlink"href="#tectonic-installer"title="Permalink to this headline">¶</a></h3>
<p>First of all, Tectonic is not free, it requires coreos.com account as a step of installation, and free user can only create less than 10 nodes.</p>
<p>Tectonic is a suite of software which wraps around k8s and providing more utility regarding dev ops, ie,
Tectonic installer as it’s named, it installs Tectonic to a bare metal cluster which means it’s not totally an equivalent of Sextant. At the “booting a cluster” part, it mostly utilizes <aclass="reference external"href="https://github.com/coreos/matchbox">Matchbox</a>, which is a general cluster bootstrapper.</p>
<p>Matchbox’s Approach is similar to Sexstant.</p>
</div>
<divclass="section"id="pros">
<spanid="id1"></span><h3>Pros<aclass="headerlink"href="#pros"title="Permalink to this headline">¶</a></h3>
<olclass="simple">
<li>supports grouping machines.</li>
<li>supports running provisioning service in rtk. (not a big deal though).</li>
<li>supports http/gRPC API interface.</li>
<li>supports multi-template.</li>
</ol>
</div>
<divclass="section"id="cons">
<spanid="id2"></span><h3>Cons<aclass="headerlink"href="#cons"title="Permalink to this headline">¶</a></h3>
<olclass="simple">
<li>Not an e2e solution to bring up a cluster, need a lot of extra work and other software.</li>
<spanid="conclusion"></span><h2>Conclusion<aclass="headerlink"href="#conclusion"title="Permalink to this headline">¶</a></h2>
<p>Sextant is a better solution overall for paddle cloud deploying to a bare metal cluster. It would be great if Sextant can also 1) deploy k8s api server with high availability by default; 2) not designed as a one-off service.</p>
<spanid="appendix-general-procedure-to-bring-up-a-cluster"></span><h2>Appendix: General procedure to bring up a cluster<aclass="headerlink"href="#appendix-general-procedure-to-bring-up-a-cluster"title="Permalink to this headline">¶</a></h2>
<p>It’s physically impossible for a cluster admin to manually install OS and applications into cluster nodes one by one, here is what an admin would do in cloud industry:</p>
<olclass="simple">
<li>setup a bootstrap machine with static IP in the cluster, which has following services:</li>
</ol>
<ulclass="simple">
<li>DHCP: assigns ip address for rest of the nodes.</li>
<li>name service: to map node name to a IP</li>
<li>PXE related services: the booting related info will be delivered to newly booted machines as their IP is assigned via DHCP service, PXE service will provide further booting and installing info and image with TFTP and http protocol.</li>
<li>cluster config service: this is for providing cluster node with OS config via http</li>
<li>optional docker registry: a built-in docker registry makes the whole cluster independent from connecting internet, and speeds up software distribution.</li>
</ul>
<olclass="simple">
<li>New node powers on, it will</li>
</ol>
<ulclass="simple">
<li>broadcast the request for an IP address</li>
<li>DHCP server assigns the IP address, and deliver the PXE booting related info to the node.</li>
<li>cluster node will request config files with booting info delivered with DHCP via the TFTP service, and in most of the cases, the config file will point to a http service for the booting image.</li>
<li>Since PXE is configured with initrd, it will utilize the cloud config service and do further installations like coreOS or K8s installations.</li>
<li>then restart the node.</li>
</ul>
<p>For further understanding, following 2 links from Matchbox are some good readings:</p>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.
In order to bring up a cluster from bare metal machine to a fully functional kubernetes cluster for Paddlepaddle to run, we need to utilize some tools. Here we are going to compare [Sextant](https://github.com/k8sp/sextant) and [Tectonic installer](https://github.com/coreos/tectonic-installer)
## Basic assumptions
Here are some basic assumptions before we move on to details
1. You are an administrator of a bare metal machine cluster, which means:
* you have full control to each of the machines.
* you have full control to the network which machines are connected to.
2. Machines can be booted from network with PEX or iPXE
3. You understand the [general procedure to bring up a cluster](#appendix-general-procedure-to-bring-up-a-cluster)
if your cluster is able to mark above items with checkmarks, then keep reading.
## Comparing Sextant and Tectonic installer
### Sextant
Sextant is an end2end solution to bring up a bare metal cluster to a fully functional k8s cluster, it integrates DHCP, name service, PEX, cloud-config-service, docker registry services altogether.
#### Pros
1. End2End: basically all admin need to do is to config the cluster.yaml and power on the cluster.
2. Offline cluster configuration: Sextant has 2 phases during working with it, config time and deploy time. when admin is configuring, it requires admin's machine has internet connectivity, which will download some images, etc. But in deploy time, it's completely OK to go offline since all dependencies are ready during config time.
3. docker registry integrated.
4. GPU machine took care of.
### Cons
1. k8s API server is not deployed with high availability in considering by default.
2. No grouping support.
3. No API interface, a one-off service.
### Tectonic installer
First of all, Tectonic is not free, it requires coreos.com account as a step of installation, and free user can only create less than 10 nodes.
Tectonic is a suite of software which wraps around k8s and providing more utility regarding dev ops, ie,
Tectonic installer as it's named, it installs Tectonic to a bare metal cluster which means it's not totally an equivalent of Sextant. At the "booting a cluster" part, it mostly utilizes [Matchbox](https://github.com/coreos/matchbox), which is a general cluster bootstrapper.
Matchbox's Approach is similar to Sexstant.
### Pros
1. supports grouping machines.
2. supports running provisioning service in rtk. (not a big deal though).
3. supports http/gRPC API interface.
4. supports multi-template.
### Cons
1. Not an e2e solution to bring up a cluster, need a lot of extra work and other software.
Sextant is a better solution overall for paddle cloud deploying to a bare metal cluster. It would be great if Sextant can also 1) deploy k8s api server with high availability by default; 2) not designed as a one-off service.
## Appendix: General procedure to bring up a cluster
It's physically impossible for a cluster admin to manually install OS and applications into cluster nodes one by one, here is what an admin would do in cloud industry:
1. setup a bootstrap machine with static IP in the cluster, which has following services:
* DHCP: assigns ip address for rest of the nodes.
* name service: to map node name to a IP
* PXE related services: the booting related info will be delivered to newly booted machines as their IP is assigned via DHCP service, PXE service will provide further booting and installing info and image with TFTP and http protocol.
* cluster config service: this is for providing cluster node with OS config via http
* optional docker registry: a built-in docker registry makes the whole cluster independent from connecting internet, and speeds up software distribution.
2. New node powers on, it will
* broadcast the request for an IP address
* DHCP server assigns the IP address, and deliver the PXE booting related info to the node.
* cluster node will request config files with booting info delivered with DHCP via the TFTP service, and in most of the cases, the config file will point to a http service for the booting image.
* Since PXE is configured with initrd, it will utilize the cloud config service and do further installations like coreOS or K8s installations.
* then restart the node.
For further understanding, following 2 links from Matchbox are some good readings:
<p>In order to bring up a cluster from bare metal machine to a fully functional kubernetes cluster for Paddlepaddle to run, we need to utilize some tools. Here we are going to compare <aclass="reference external"href="https://github.com/k8sp/sextant">Sextant</a> and <aclass="reference external"href="https://github.com/coreos/tectonic-installer">Tectonic installer</a></p>
<p>Here are some basic assumptions before we move on to details</p>
<olclass="simple">
<li>You are an administrator of a bare metal machine cluster, which means:</li>
</ol>
<ulclass="simple">
<li>you have full control to each of the machines.</li>
<li>you have full control to the network which machines are connected to.</li>
</ul>
<olclass="simple">
<li>Machines can be booted from network with PEX or iPXE</li>
<li>You understand the <aclass="reference external"href="#appendix-general-procedure-to-bring-up-a-cluster">general procedure to bring up a cluster</a></li>
</ol>
<p>if your cluster is able to mark above items with checkmarks, then keep reading.</p>
<spanid="comparing-sextant-and-tectonic-installer"></span><h2>Comparing Sextant and Tectonic installer<aclass="headerlink"href="#comparing-sextant-and-tectonic-installer"title="永久链接至标题">¶</a></h2>
<p>Sextant is an end2end solution to bring up a bare metal cluster to a fully functional k8s cluster, it integrates DHCP, name service, PEX, cloud-config-service, docker registry services altogether.</p>
<li>End2End: basically all admin need to do is to config the cluster.yaml and power on the cluster.</li>
<li>Offline cluster configuration: Sextant has 2 phases during working with it, config time and deploy time. when admin is configuring, it requires admin’s machine has internet connectivity, which will download some images, etc. But in deploy time, it’s completely OK to go offline since all dependencies are ready during config time.</li>
<p>First of all, Tectonic is not free, it requires coreos.com account as a step of installation, and free user can only create less than 10 nodes.</p>
<p>Tectonic is a suite of software which wraps around k8s and providing more utility regarding dev ops, ie,
Tectonic installer as it’s named, it installs Tectonic to a bare metal cluster which means it’s not totally an equivalent of Sextant. At the “booting a cluster” part, it mostly utilizes <aclass="reference external"href="https://github.com/coreos/matchbox">Matchbox</a>, which is a general cluster bootstrapper.</p>
<p>Matchbox’s Approach is similar to Sexstant.</p>
<p>Sextant is a better solution overall for paddle cloud deploying to a bare metal cluster. It would be great if Sextant can also 1) deploy k8s api server with high availability by default; 2) not designed as a one-off service.</p>
<spanid="appendix-general-procedure-to-bring-up-a-cluster"></span><h2>Appendix: General procedure to bring up a cluster<aclass="headerlink"href="#appendix-general-procedure-to-bring-up-a-cluster"title="永久链接至标题">¶</a></h2>
<p>It’s physically impossible for a cluster admin to manually install OS and applications into cluster nodes one by one, here is what an admin would do in cloud industry:</p>
<olclass="simple">
<li>setup a bootstrap machine with static IP in the cluster, which has following services:</li>
</ol>
<ulclass="simple">
<li>DHCP: assigns ip address for rest of the nodes.</li>
<li>name service: to map node name to a IP</li>
<li>PXE related services: the booting related info will be delivered to newly booted machines as their IP is assigned via DHCP service, PXE service will provide further booting and installing info and image with TFTP and http protocol.</li>
<li>cluster config service: this is for providing cluster node with OS config via http</li>
<li>optional docker registry: a built-in docker registry makes the whole cluster independent from connecting internet, and speeds up software distribution.</li>
</ul>
<olclass="simple">
<li>New node powers on, it will</li>
</ol>
<ulclass="simple">
<li>broadcast the request for an IP address</li>
<li>DHCP server assigns the IP address, and deliver the PXE booting related info to the node.</li>
<li>cluster node will request config files with booting info delivered with DHCP via the TFTP service, and in most of the cases, the config file will point to a http service for the booting image.</li>
<li>Since PXE is configured with initrd, it will utilize the cloud config service and do further installations like coreOS or K8s installations.</li>
<li>then restart the node.</li>
</ul>
<p>For further understanding, following 2 links from Matchbox are some good readings:</p>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.