hashicorp / nomad-autoscaler

Nomad Autoscaler brings autoscaling to your Nomad workloads.
Mozilla Public License 2.0
427 stars 84 forks source link

Provide custom execution on Target Plugins #232

Open myugan opened 4 years ago

myugan commented 4 years ago

Since Nomad autoscaler only can be used by AWS Autoscaling Group, with custom execution we can define autoscaling function to execute some script or automation like sciprting file from different language or Terraform to add more nodes also this things can be used in many cloud provider which doesn't provide the services for Autoscaling (AWS, Azure, GCP), similar to Terraform thats provide null_resource. I just imagine how this things can be defined in our nomad job for example:

target "something" {
  driver = "something"
  config = {
    path = "/path/to/tf/"
    triggers = "terraform apply "
  }
}
jrasell commented 4 years ago

Hi @myugan and thanks for raising this issue. I think this type of target makes sense and as you point out would help cover providers which maybe don't have autoscaling services or APIs in a generic manner. I won't be able to provide any estimate when this work may be conducted but PR's are certainly welcome if you or anyone else wishes to tackle this in the mean time.

myugan commented 4 years ago

Thanks for the response @jrasell