Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This WILL break ECS during upgrades #9

Open
anarchy9388 opened this issue Sep 3, 2021 · 1 comment
Open

This WILL break ECS during upgrades #9

anarchy9388 opened this issue Sep 3, 2021 · 1 comment

Comments

@anarchy9388
Copy link

https://github.com/paychex/prometheus-emcecs-exporter/blob/master/pkg/ecsclient/ecsclient.go

// RetrieveNodeStateParallel pulls all the dtstate from nodes in the cluster all at once
func (c *EcsClient) RetrieveNodeStateParallel() []NodeState {
var NodeStates []NodeState
ch := make(chan NodeState)
for _, node := range c.nodeListMgmtIP {
go c.retrieveNodeState(node, ch)
}
for range c.nodeListMgmtIP {
NodeStates = append(NodeStates, <-ch)
}
return NodeStates
}

RetrieveNodeStateParallel needs to be removed it will cause massive outage during an upgrade

DTState only needs to be pulled from Rack1 node1 in the cluster.

Also please use this API so it uses cached results /stats/dt/DTAutoCheckResult

@shaunmp
Copy link

shaunmp commented Feb 4, 2025

Hey,

Been looking at using this binary, but this issue makes me hesitate.

Are you able to elaborate on why this would cause an outage, and if this is still the case on more recent ECS versions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants