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

Rename ECS Service node ids to be cluster;serviceName #2186

Merged
merged 2 commits into from
Feb 7, 2017

Conversation

ekimekim
Copy link
Contributor

@ekimekim ekimekim commented Feb 3, 2017

This is important for two reasons:

  • It prevents nasty false-equality bugs when two different services from different ECS clusters
    are present in the same report
  • It allows us to retrieve the cluster and service name - all the info we need to look up the service -
    using only the node ID. This matters, for example, when trying to handle a control request.

We deal with maintaining backwards compatability with a special case when parsing the IDs.

Partially fixes #2063

@ekimekim ekimekim force-pushed the mike/ecs/clusterise-service-ids branch from 04b0682 to 00ba689 Compare February 3, 2017 03:03
@ekimekim
Copy link
Contributor Author

ekimekim commented Feb 3, 2017

Failing test is due to integration test that's broken on master.

return "", "", false
}
// In previous versions, ECS Service node IDs were of form serviceName + "<ecs_service>".
// For backwards compatibility, we should still return a sensical serviceName for these cases.

This comment was marked as abuse.

This comment was marked as abuse.

This is important for two reasons:
* It prevents nasty false-equality bugs when two different services from different ECS clusters
  are present in the same report
* It allows us to retrieve the cluster and service name - all the info we need to look up the service -
  using only the node ID. This matters, for example, when trying to handle a control request.
@ekimekim ekimekim force-pushed the mike/ecs/clusterise-service-ids branch from 00ba689 to fad3e88 Compare February 3, 2017 21:45
@ekimekim
Copy link
Contributor Author

ekimekim commented Feb 3, 2017

ptal

@ekimekim ekimekim merged commit f8cf32c into master Feb 7, 2017
@ekimekim ekimekim deleted the mike/ecs/clusterise-service-ids branch February 7, 2017 22:56
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

Successfully merging this pull request may close these issues.

Improve how ECS reporting code handles clusters
2 participants