You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this is a simple config error somewhere, but I couldn't find it. So the Autoscaler agent is working fine if I don't use Threshold strategy. As soon as I add this strategy the following error would appear (This plugin is installed by default, right?)
2021-10-15T22:08:10.731Z [ERROR] agent: failed to start agent: error="failed to setup plugins: 1 error occurred:
* failed to dispense plugin threshold: failed to instantiate plugin threshold client: fork/exec /plugins/threshold: no such file or directory
This is the use case: I want Autoscaler to monitor the free memory of each node and make sure there is enough memory for future allocations, also kill nodes if too much memory is available. So I chose threshold strategy for this with these two conditions: (data is provided by Datadog)
The maximum free memory in any node is less than X -> more resource needed, the max free memory on any node is not enough for a new allocation.
Or maximum free memory on any node is more than Y -> there are nodes with full free memory, so kill them.
If you think I can handle this by other strategies, please guide. Thanks so much for this product and your help :)
The text was updated successfully, but these errors were encountered:
Which version are you running? I just tried with v0.3.3 (which released the "threshold" strategy) and it works fine. As you did, I configured the agent using this block:
strategy"threshold" {
driver="threshold"
}
Nevertheless, I lost quite some time before thinking about adding this block. I already configured some autoscaling with the "target-value" strategy without having to configure it in the agent and naively thought other official strategies documented here would work too.
Apparently, the only strategy enabled by default is "target-value":
// Default is used to generate a new default agent configuration.funcDefault() (*Agent, error) {
[...]
return&Agent{
[...]
Strategies: []*Plugin{{Name: plugins.InternalStrategyTargetValue, Driver: plugins.InternalStrategyTargetValue}},
}, nil
}
The documentation could be clearer about that and/or other strategies ("threshold", "pass-through", "fixed-value") should be enabled in the default agent config too.
Hi @sizief, as pointed out the threshold plugin needs to be configured within the Nomad Autoscaler agent for running currently. I'll mark this issue to improve the documentation.
The suggestion of adding this to the default list of launched plugins is also a fair comment and something we can discuss internally.
Hi!
I think this is a simple config error somewhere, but I couldn't find it. So the Autoscaler agent is working fine if I don't use
Threshold
strategy. As soon as I add this strategy the following error would appear (This plugin is installed by default, right?)And here is my agent template:
This is the use case: I want Autoscaler to monitor the free memory of each node and make sure there is enough memory for future allocations, also kill nodes if too much memory is available. So I chose threshold strategy for this with these two conditions: (data is provided by Datadog)
If you think I can handle this by other strategies, please guide. Thanks so much for this product and your help :)
The text was updated successfully, but these errors were encountered: