installer clusterscale
Initiates the cluster scaling operation.
Syntax
- CLI
-
maprcli installer clusterscale usage: cluster_scale.py [-h] [-j CLUSTER_JSON] [-f CLUSTER_JSON_FILE] [-y CLUSTER_YAML_FILE] options: -h, --help -j CLUSTER_JSON, --cluster_json CLUSTER_JSON -f CLUSTER_JSON_FILE, --cluster_json_file CLUSTER_JSON_FILE -y CLUSTER_YAML_FILE, --cluster_yaml_file CLUSTER_YAML_FILE
Examples:
Example 1: here is a
.yml
file for adding two nodes to on-premise
fabric:# This is an example YML/JSON payload that will be sent from the Controller/MCS WebUI to the MCS Api Server
# Convert this to and from YML/JSON here: https://codebeautify.org/yaml-to-json-xml-csv
#Create a DF Cluster
# POST /api/v1/df
#AWS | Azure | GCP | OnPrem
deploy_target: "OnPrem"
# deployment name
cluster_name: "onpremfab1"
# Anything related to be scaled nodes goes in here
onpremconfig:
ip_addresses:
- "<FQDN_node_1>"
- "<FQDN_node_2>"
ssh_username: "<username>"
ssh_password: "<password>"
# optional
# airgap_repository: "http://package.ezmeral.hpe.com"
Example 2: here is a
.yml
file for adding two nodes to AWS cloud
fabric:# This is an example YML/JSON payload that will be sent from the Controller/MCS WebUI to the MCS Api Server
# Convert this to and from YML/JSON here: https://codebeautify.org/yaml-to-json-xml-csv
deploy_target: AWS
cluster_name: <fabric_name>
scale_host_count: 2
awsconfig:
access_key_id: <aws_access_key>
secret_access_key: <aws_secret_key>
Example 3: here is a
.yml
file for adding two nodes to Azure cloud
fabric:# This is an example YML/JSON payload that will be sent from the Controller/MCS WebUI to the MCS Api Server
# Convert this to and from YML/JSON here: https://codebeautify.org/yaml-to-json-xml-csv
deploy_target: Azure
cluster_name: dfaas-example.mapr.io
scale_host_count: 2
azureconfig:
subscription_id: 8f2c24e5-d03d-405c-5555-7d64bdc8c6d6
tenant_id: 8a843277-7f99-43a4-5555-b60b8ca9b3e9
client_id: 1d9c61e3-9ed0-4b55-5555-2f5153aee726
client_secret: 9ABAQ~EXAMPLENOTREALUZYtCXnDPvABra~7
Example 3: here is a
.yml
file for adding two nodes to Azure cloud
fabric:# This is an example YML/JSON payload that will be sent from the Controller/MCS WebUI to the MCS Api Server
# Convert this to and from YML/JSON here: https://codebeautify.org/yaml-to-json-xml-csv
deploy_target: GCP
cluster_name: demo.fabric.io
scale_host_count: 2
gcpconfig:
credentials: <credentials json>
Cluster scale example
The following example scales a cluster by adding two nodes as specified in the payload file (see the previous example):
- CLI
-
maprcli installer clusterscale -y examples/mcs_payloads/onprem_scale_cluster_payload.yml -json