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
We have a very strange issue and we cannot find out what is wrong we are doing.
We have 2 datacenters in nomad: aws-eun-1 and aws-euw-1 but we have the same node_class set for a set of nodes.
Now when we are trying to configure an autoscaling policy and try filtering by both settings it takes into consideration all the servers from node_class, it does also make any difference in calculations when we are using the only node_class which proves it does not take the datacenter configuration while calculating the count of nodes.
So here is the example configuration we are trying to apply:
BUT if we change the node_class to something very unique between the 2 datacenters it works properly, it is also visible by allocatable_cpu and allocatable_memory values:
Is this some limitation of nomad-apm and we just have to use other more advanced queries where we would use the datacenter filtering instead? or is this something we are doing wrong?
Thank you in advance for any answer.
The text was updated successfully, but these errors were encountered:
Could you clarify your setup a little please? Specifically "We have 2 datacenters in nomad: aws-eun-1 and aws-euw-1 but we have the same node_class set for a set of nodes." When you mention two datacenters, are these Nomad datacenters that are within the same region?
It looks like this is currently a limitation with the Nomad APM which can only discover and calculate resource utilisation based on "node_class" as it only has it setup option internally. This is something that we should certainly try and enhance, so that we can support the use-case you have described and bring this closer to how target node identification works. I'll therefore mark this for roadmapping.
For future readers, we do have a warning within our docs noting this, although it is slightly ambiguous and clearly at odds with other configuration options.
We have a very strange issue and we cannot find out what is wrong we are doing.
We have 2 datacenters in nomad: aws-eun-1 and aws-euw-1 but we have the same node_class set for a set of nodes.
Now when we are trying to configure an autoscaling policy and try filtering by both settings it takes into consideration all the servers from node_class, it does also make any difference in calculations when we are using the only node_class which proves it does not take the datacenter configuration while calculating the count of nodes.
So here is the example configuration we are trying to apply:
The result of this would be:
If we delete the datacenter setting the result is still "the same" if we check the allocatable_cpu and allocatable_memory:
BUT if we change the node_class to something very unique between the 2 datacenters it works properly, it is also visible by allocatable_cpu and allocatable_memory values:
Is this some limitation of nomad-apm and we just have to use other more advanced queries where we would use the datacenter filtering instead? or is this something we are doing wrong?
Thank you in advance for any answer.
The text was updated successfully, but these errors were encountered: