github.com/anth0d/nomad@v0.0.0-20221214183521-ae3a0a2cad06/website/content/tools/autoscaling/plugins/strategy/pass-through.mdx (about)

     1  ---
     2  layout: docs
     3  page_title: 'Autoscaling Plugins: Pass-Through'
     4  description: The "pass-through" strategy plugin passes the query result directly to the target.
     5  ---
     6  
     7  # Pass-Through Strategy Plugin
     8  
     9  The `pass-through` strategy is a very simple, yet useful strategy. It does not
    10  add any extra computation on top of the metric query result, and instead uses
    11  the APM query result as the scaling count. It doesn't have any configuration
    12  options.
    13  
    14  This allows the Nomad Autoscaler to be integrated into systems where the
    15  scaling computation is done externally like an edge router, or easily derived
    16  from a query such as running one allocation per item in a queue.
    17  
    18  ## Agent Configuration Options
    19  
    20  ```hcl
    21  strategy "pass-through" {
    22    driver = "pass-through"
    23  }
    24  ```
    25  
    26  ## Policy Configuration Options
    27  
    28  ```hcl
    29  check "pass-through-check" {
    30    # ...
    31    strategy "pass-through" {}
    32    # ...
    33  }
    34  ```
    35  
    36  The `pass-through` plugin doesn't have any configuration.