Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 3.3 KB

01-compute.md

File metadata and controls

67 lines (42 loc) · 3.3 KB

01 Compute Exercises

Virtual servers (sometimes also referred to as "cloud servers") are our bread and butter. Since they run on different physical hosts than the storage they use, we often refer to their function as "compute".

💡 Background Information

Compute Flavors

Currently, our servers come in two different types of compute flavors:

  • Flex - CPU cores are shared between virtual servers; these flavors provide room for short-term load peaks and are ideal for most applications.
  • Plus - The physically available computing power is not overcommitted; these flavors provide consistent CPU performance and are ideal for demanding workloads.

See https://www.cloudscale.ch/en/pricing for more details.

Cloud Control Panel & API

Servers can be launched in two different ways:

The API can be used in various ways:

References

🎓 Exercises

01.01 - Launch and Delete a Server

Using the following tools, launch and delete a server (once per each tool):

  • Your library of choice (Curl, Python Requests library etc.).
  • An Ansible playbook.
  • A Terraform config.
  • The official CLI.

Make sure to connect to each server before deleting it to ensure that it actually booted correctly.


01.02 - Scale a Server

Using your favorite tool, create a flex-4-1 instance, then turn it into a plus-4-2 instance.


01.03 - Use Cloud-Init to Provision a Server

Virtual servers launched on IaaS platforms usually need some kind of initial provisioning (interface configuration, hostname, SSH authorized keys). The de-facto industry standard is using cloud-config for cloud-init. Learn more about it and try launching a server using cloud-init to install nginx right after boot, without any additional intervention.