jsiebens / nomad-droplets-autoscaler Goto Github PK
View Code? Open in Web Editor NEWDigitalOcean Droplets target plugin for HashiCorp Nomad Autoscaler
License: MIT License
DigitalOcean Droplets target plugin for HashiCorp Nomad Autoscaler
License: MIT License
Hi @jsiebens
First of all, thank you so much for creating this plugin.
We are testing this plugin to scale droplets in DigitalOcean. The droplet is getting scaled as per the defined policy but after scaling down and draining the node the plugin starts giving the below warning continuously. The plugin is actually trying to monitor the health of the drained droplet and also the droplet is not getting removed from DigitalOcean.
2022-09-30T13:55:08.537Z [WARN] external_plugin.do-droplets: node pool status readiness check failed: error="node c92595ac-08f2-7686-75fc-5fb90e29f478 is ineligible" timestamp=2022-09-30T13:55:08.537Z
Scaling policy:
scaling "app-redis-slave" {
enabled = true
min = 1
max = 2
policy {
cooldown = "1m"
evaluation_interval = "10s"
check "redis_jobs_in_progess" {
source = "prometheus"
query = "sum(nomad_nomad_job_summary_queued{exported_job=~\"app\",task_group=\"redis-slave\"} + nomad_nomad_job_summary_running{exported_job=~\"app\",task_group=\"redis-slave\"}) OR on() vector(0)"
strategy "pass-through" {}
}
target "do-droplets" {
name = "app-redis-slave"
region = "xxx1"
size = "s-1vcpu-1gb"
snapshot_id = "XXXXXX"
user_data = "local/do-user_data.sh"
tags = "hashi-stack,job:app,group:redis-slave"
datacenter = "do"
node_drain_deadline = "15m"
node_drain_ignore_system_jobs = true
node_selector_strategy = "empty_ignore_system"
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.