opentelemetry-operator icon indicating copy to clipboard operation
opentelemetry-operator copied to clipboard

Rethink what "Replicas" mean in the status object

Open jpkrohling opened this issue 5 years ago • 8 comments
trafficstars

We might want to think again what "replicas" mean, especially when talking about mode: sidecar. Also, do we count all currently running replicas, or the desired ones? Should we have multiple values, like desired/current that the Deployment has?

jpkrohling avatar Sep 24 '20 08:09 jpkrohling

As replicas could be dynamic, would it be better to just expose as metric instead of via status?

objectiser avatar Sep 24 '20 08:09 objectiser

For an operations person using kubectl, it might be easier to expose the number of replicas on kubectl get otelcols. Nothing prevents us from adding that as a metrics as well, though.

jpkrohling avatar Sep 24 '20 09:09 jpkrohling

Guess so - although how often would the "current replicas" be updated. Desired count is more stable so easer to include.

objectiser avatar Sep 24 '20 09:09 objectiser

Current replicas might have a high variance in case of mode: sidecar, if we are to count them, as it would basically reflect the number of pods that include the sidecar.

jpkrohling avatar Sep 24 '20 09:09 jpkrohling

Also when using horizontal pod autoscaling.

objectiser avatar Sep 24 '20 10:09 objectiser

@jpkrohling, Is this issue duplicated with #775? Or are they related?

yuriolisa avatar Mar 22 '22 12:03 yuriolisa

One might affect the other, but they are different problems. Here, we want to tell the users how many replicas there are for a given CR. For sidecars, it would be the count of sidecars that were injected for a given CR. For a daemonset or deployment, it's the current number of replicas for the underlying daemonset/deployment, which is what #775 is handling.

jpkrohling avatar Mar 22 '22 13:03 jpkrohling

For sidecars, it would be the count of sidecars that were injected for a given CR.

This sounds like different information than replicas. It is somehow similar to the instrumentation CR status, where we want to tell the user how many or to which workloads the auto-instrumentation was injected.

pavolloffay avatar Mar 25 '22 10:03 pavolloffay

Closed by #1789

jaronoff97 avatar Nov 28 '23 21:11 jaronoff97