-
Notifications
You must be signed in to change notification settings - Fork 7
Support Deployments #21
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/177909652 The labels on this github issue will be updated when the story is started. |
@gcapizzi is there a particular reason it needs to be translated to an integer instead of just keeping the alphanumeric ID? I feel that may lead to more confusion since it will look like a fragmented amount of indices for the app. Like I'm imagining an operator seeing indices that appear valid but don't start at 0 and jump around and being confused. A hard switch to the alphanumeric ID may give them a better idea that these IDs are not stable and have no inherent meaning. Cloud Controller should be able to handle this fine as long as the indices are consistent between I guess the CLI may have issues with it, though. 😞 |
cc our product-minded folks @emalm, @piyalibanerjee, @angelachin, @rainmaker 🙂 |
I see the benefits of moving to a more general alphanumeric identifier for app instances, and it would certainly reduce confusion compared to non-contiguous integer IDs. (It could even apply to Diego-based apps today, with the existing GUID-format instance IDs!) I had talked to @gcapizzi and @mnitchev about the idea of providing the alphanumeric identifier in an additional response field, but also providing the corresponding pure-numeric one in the existing field so as not to break clients that expect it to be an integer type, so that might be an interesting option to pursue. |
Related Cloud Controller issue: cloudfoundry/cloud_controller_ng#2247 |
@gcapizzi We just wanted to follow up on this to see if there was anything you needed us to do at this time, or whether you are still discussing the best solution? We also wanted to make sure that you were including log-cache in the list of components that would require a change. It uses the same API as metric-proxy, so we think that it would need similar changes. Our understanding is that Cloud Controller would get confused if the instance index was not in sync between logging and metrics. |
It looks like we need to do some more research here, including testing alphanumeric indexes. I'm going to close these issues for now! |
The Eirini team is planning to support Kubernetes
Deployment
s in addition toStatefulSet
s for workloads. In order to do so,metric-proxy
would have to supportDeployment
s too.This would mean introducing a feature flag and changing the way the instance indexes are determined when it is turned on. In particular, this function:
Pod
s created byDeployment
s don't have a numeric index in their name, but an 5 characters alphanumeric ID. This can be translated to a numeric ID by treating it as a base 36 number, leading to indexes ranging from 1 to 60,466,177. These indexes would still be unique, but they wouldn't be stable (they would change every time an instance is recreated for any reason), ordered or contiguous.We couldn't find any contraindications to this in
metric-proxy
, what do you think? We'd be happy to PR this as part of our track of work is the team agrees!For more context, see cloudfoundry/eirini-release#207.
Thanks!
/cc @cloudfoundry/eirini
The text was updated successfully, but these errors were encountered: