Joel Speed
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Versions and GitHub Sync Note Insights Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       owned this note    owned this note      
    Published Linked with GitHub
    Subscribed
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    Subscribe
    # Introducing: Control plane machine management and 1-click scaling Since the inception of OpenShift 4, installer-provisioned-infrastructure clusters have utilised the Machine API to manage worker and infrastructure machines via `MachineSet` resources. However, while OpenShift 4 clusters have had control-plane machines, these have been standalone and unmanaged. Users have not had the ability to scale or modify their control-plane machines without manual work and checks to ensure the health of the control-plane. As adoption of OpenShift grows within an organisation, and the organisation's clusters have grown in size, the additional pressure put on the control-plane by additional worker machines and the workloads running on those machines, causes users to look to vertically scale their control-plane instances to cope with the additional load. Since scaling the control-plane requires management of the OpenShift cluster's etcd cluster, the process of scaling a control-plane manually is very involved and requires specific knowledge and careful execution of steps in the correct order. As managed services have grown, this process has not evolved and has become a significant bottleneck for the SREs managing these services. An automated solution is required. ## Introducing the ControlPlaneMachineSet The `ControlPlaneMachineSet` is a new resource within the OpenShift Machine API ecosystem, introduced in 4.12. It manages the cluster's control-plane machines and adds new automation on top of the existing Machine API concepts. The OpenShift team often refer to `Machine` and `MachineSet` resources as being analogous to `Pod` and `ReplicaSet` resources. The `MachineSet` is to a `Machine` as the `ReplicaSet` is to a `Pod`. If we extend this analogy, a `ControlPlaneMachineSet` is similar to a `StatefulSet`. Rather than managing an arbitrary number of identical `Machine` resources, like a `MachineSet` would, the `ControlPlaneMachineSet` manages a small number of identical `Machines` and adds special logic on top of the `Machines` to provide functionality such as rolling-update replacement of the `Machines` as well as spreading the `Machines` across multiple failure domains. With a `ControlPlaneMachineSet` installed and active within a cluster, user's can now modify parameters of their control-plane specification and observe as the `ControlPlaneMachineSet` automatically, and safely, replaces the control-plane machines with new machines with the updated spec. ## What can I use a ControlPlaneMachineSet for? The `ControlPlaneMachineSet` can be used to perform rolling update replacements of control-plane `Machines` within OpenShift. For example, if you need to increase the underlying instance type of the control-plane `Machines`, by editing the provider specification on the `ControlPlaneMachineSet` spec, you can trigger a complete rolling replacement of the control-plane `Machines` within the cluster, allowing you to make automated changes to the infrastructure within the control-plane in a safe and controlled manner. ## How does the ControlPlaneMachineSet work? The `ControlPlaneMachineSet` constantly monitors the control-plane `Machines` within the cluster. It compares the desired specification (from within the resource spec) to the existing configuration of the control-plane `Machines`. When it detects that there is a difference, it will iterate through the control-plane `Machines` and, 1 by 1, replace those with an up-to-date `Machine`, this is an example of the immutable infrastructure concept. This means that, it creates a new `Machine`, waits for that `Machine` to join the cluster, and then marks the old `Machine` for deletion. Once the old `Machine` is removed (ie there should be no more than one additional `Machine` in the cluster), it will move onto the next control-plane `Machine` and repeat the process until all of the `Machines` have been updated. If at any point, a control-plane `Machine` is manually marked for deletion, the `ControlPlaneMachineSet` will attempt to maintain the cluster by creating a replacement for that `Machine`. ## What happens to etcd when scaling my control plane? Starting in OpenShift 4.11, the etcd operator leverages machine lifecycle hooks to implement a quorum protection mechanism when the Machine API is configured within the cluster. The lifecycle hooks allow the etcd operator to control when the Machine API drains and removes pods on a control-plane machine. Using this hook, the etcd operator prevents removal of an etcd member until it has had an opportunity to migrate that member onto a new node within the cluster. While performing a rolling update, the cluster will, for a short period, have 4 control-plane machines. When the 4th control-plane node joins the cluster, the etcd operator starts a new etcd member on the new node. Once it observes that the old control-plane machine has been marked for deletion, it stops the etcd member on the old node and promotes the new etcd member to join the quorum of the cluster. This mechanism allows the etcd operator precise control over the members within the quorum and allows the Machine API to safely create and remove control-plane machines without specific operational knowledge of the etcd cluster. ## When is the ControlPlaneMachineSet available? Now! The `ControlPlaneMachineSet` will be configured and active on all freshly installed OpenShift 4.12 (and onwards) clusters, for the AWS platform. Support for Azure and GCP is being targetted for a future release. For clusters upgrading to 4.12 on AWS and Azure, an inactive `ControlPlaneMachineSet` will be created and maintained on the cluster by the operator. The inactive `ControlPlaneMachineSet` can then be activated by the user should they wish to enable the functionality of the `ControlPlaneMachineSet` on their cluster. This functionality will be available for GCP in a future release. ## Where can I learn more about the ControlPlaneMachineSet? The `ControlPlaneMachineSet` operator project contains [some documentation](https://github.com/openshift/cluster-control-plane-machine-set-operator/tree/main/docs/user) aimed at users of the project. If you are interested in the background of the design of the new project, the original design proposal, on which this project was implemented, is available to read on [GitHub](https://github.com/openshift/enhancements/blob/master/enhancements/machine-api/control-plane-machine-set.md). This design proposal includes detailed descriptions of the various features of the `ControlPlaneMachineSet` as well as the motvation for decisions taken during the design process.

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully