Skip to content

Latest commit

 

History

History
37 lines (34 loc) · 1.69 KB

proportional-derivative-controller.md

File metadata and controls

37 lines (34 loc) · 1.69 KB

Controller plugin - "proportional_derivative"

Start Scaling

Expected parameters

  • check_interval: Time between application state checks, in seconds. The controller checks the application state every check_interval seconds.
  • trigger_down: The absolute value of the difference between job progress and time progress that triggers the scale down.
  • trigger_up: The absolute value of the difference between job progress and time progress that triggers the scale up.
  • min_cap: The minimum possible value of resources that can be allocated to the application. Must be in range [0,100].
  • max_cap: The maximum possible value of resources that can be allocated to the application. Must be in range [0,100].
  • metric_rounding: The amount of decimal digits considered when taking scaling decisions. e.g.:If the scaler gets a metric value 0.567 from the metric source and metric_rounding = 2 then the value the scaler will use is 0.57.
  • heuristic_options: Options for the heuristic used in the controller. Must contain at least "heuristic-name".

Request example

{
    "username":"username",
    "password":"password",
    "plugin":"proportional_derivative",
    "plugin_info":{
        "actuator":"kvm",
        "metric_source":"monasca",
        "instances":["6f9fe95f-9072-4545-a62a-fc5fd7cae9a4", "45034c39-c280-4047-8b92-a8efb61bc589"],
        "check_interval":10,
        "trigger_down":10,
        "trigger_up":10,
        "min_cap":10,
        "max_cap":100,
        "metric_rounding":2,
        "heuristic_options":{
            "heuristic-name":"error_proportional_derivative",
            "proportional_factor":1.5,
            "derivative_factor":0.5
        }
    }
}