Server Autoscale ^^^^^^^^^^^^^^^^ What is the Autoscale Command? ------------------------------ The ``Server Autoscale`` command can automatically start and/or stop cloud resources once configured. First the status of the scheduler is used to determine if jobs exceed the available cores or if the cores exceed the desired idle cores. Second a check is made for each of the compute nodes to ensure connectivity is still working and the node doesn't need to be rebooted. Once the number of nodes to start or stop has been determined calls are made to bring the cluster to the desired state. The number of always ready nodes can be set to avoid delays between checks, or set lower to reduce cost. Arguments --------- +---------------------------------+------------------+ | Parameter name | Requirement | +=================================+==================+ +---------------------------------+------------------+ |:option:`-h` `--help` | optional | +---------------------------------+------------------+ |:option:`-port` | optional | +---------------------------------+------------------+ |:option:`-server` | optional | +---------------------------------+------------------+ |:option:`-test-only` | optional | +---------------------------------+------------------+ |:option:`-log-file` | optional | +---------------------------------+------------------+ |:option:`-otype` | optional | +---------------------------------+------------------+ .. option:: -h Help .. option:: -port Port of the autoscale server. Default 10080 .. option:: -server Hostname or ip of autoscale server. .. option:: -test-only Get a list of which servers will be brought up/taken down without running api calls to cloud provider. .. option:: -log-file Path to write log file. .. option:: -otype Terminal output type. If none is selected, no output will be written. Configuration ------------- To configure Lucy to run this command, Lucy needs a valid connection to d3VIEW and the HPC Servers will need to be available from the server running the command. The HPC Server information will determine scheduler information and the autoscale server will determine the amount of free nodes. The autoscale server needs to have access to the cloud scheduler to check the status and have the ability to run cloud service provider api calls.