Adding Applications via the Autoscaling Configuration File

  1. Edit the scaling_config.json file.

  2. In the "compute_resource_sets" section, locate the "available_applications" section.

  3. Define the application using the descriptions and example below as a guide:

    Property in web UIProperty in scaling_config.json fileDescription
    Name"name"The name of the application
    Version"version"The application version
    Installation Path"install_path"The path of the Ansys installation (not applicable if using Kubernetes plugin)
    Executable"executable"The path of the application executable (not applicable if using Kubernetes plugin)
    Environment"environment"Environment variables to be used (not applicable if using Kubernetes plugin)
    Resource Name"resource_name"

    Specifies the Kubernetes object (deployment/statefulset) name to be used as the target resource by KEDA.

    This corresponds to the Target Resource Kind ("target_resource_kind") specified in the configuration file.

    • If "target_resource_kind"="deployment", specify the deployment name.

    • If "target_resource_kind"="statefulset", specify the StatefulSet name.

    • If "target_resource_kind"="job", specify the image name with tag.

    See also: Autoscaling with KEDA

    Maximum Evaluator Instances"scaling_max_eval_instances"Maximum number of instances that can be created when scaling up
    Minimum Evaluator Instances"scaling_min_eval_instances"Minimum number of instances than can be terminated when scaling down
    Scaling Threshold"scaling_threshold"Threshold value to determine when Kubernetes deployments should be scaled up/down
    Cool Down Period"cool_down_period"The period to wait after the last trigger reported active before scaling the resource back to 0
    "available_applications": [
        {
            "name": "Ansys Mechanical APDL",
            "version": "2024 R1",
            "install_path": "/unified_install/v241/ansys/bin",
            "executable": "/unified_install/v241/ansys/bin/ansys241",
            "environment": {},
            "capabilities": null,
            "customization_hook": null,
            "resource_name": null,
            "scaling_max_eval_instances": 1,
            "scaling_min_eval_instances": 0,
            "scaling_threshold": 1,
            "cool_down_period": 60
        }
    ],