Manually control the number of cluster workers

To view the machinesets ( group of machines)

$ oc get machinesets -n openshift-machine-api

To Manually scale machineset  option 1 specify the number of replicas

$ oc scale --replicas=2 machineset  (oooooo) -n openshift-machine-api

$ oc get nodes

To manually scale the machineset option 2 by editing the machinesets

$ oc edit machineset   (--------)   -n openshift-machine-api

$ oc get machinesets -n openshift-machine-api


Automatically scale the number of cluster workers

=====

$  oc create -f filename.yaml

Sample machineautoscaler file

Get the machinesets

$ oc get machinesets -n openshift-machine-api

Update the yaml file with machineset name

$ vim filename.yaml

then run the command

$ oc create -f filenameautoscaler.yaml

To verify then run the command

$ oc get machineautoscalers 0n openshift-machine-api

$ oc edit