Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable using AWS spot instances #203

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Feb 28, 2023

  1. Enable using AWS spot instances

    The patch enables the use of AWS spot instances for workers, infra, and workload nodes, except for the controller nodes, which will be deployed as normal instance types.
    To use this feature, a new environment variable SPOT_INSTANCE_ZONE must be set to the zone where the spot instances would be deployed.
    Example:
        export SPOT_INSTANCE_ZONE=us-east-2a 
    
    The instance type for the nodes will use the existing environment variables OPENSHIFT_WORKER_INSTANCE_TYPE, OPENSHIFT_INFRA_NODE_INSTANCE_TYPE, and OPENSHIFT_NODE_INSTANCE_TYPE.
    
    The spot instance type available for use in a zone can be obtained from the AWS spot request console. 
    Have created a script spotlst.sh(https://gist.github.com/yogananth-subramanian/1e69b11c4ce1564cbbc612f61ea05031), that can be used to pick the spot instance type and zone to use, it provides details about interrupt percentage per instance_type for each zone and their corresponding spot pricing and savings percentage over on-demand price.
    
    Example:
      ./spotlst.sh --mincpu 4 --maxcpu 4 --minmem 16 --maxmem 16 --intr 1 -region us-east-1,us-east-2 --inst m5.xlarge 
       Using minimum price of the on-demand instance as maximum price for spot intance 0.1920000000
       region,zone,instance_type,price,savings,iterrupt
       us-east-2,us-east-2a,m5.xlarge,0.041400,79,0
    yogananth-subramanian committed Feb 28, 2023
    Configuration menu
    Copy the full SHA
    250507f View commit details
    Browse the repository at this point in the history