Skip to content

Deprecate size in cluster state response #39951

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

Conversation

DaveCTurner
Copy link
Contributor

Today when we respond to a cluster:monitor/state action we serialize the
current cluster state on the network thread in order to return its size when
compressed. This serialization can be expensive if the cluster state is very
large. Yet the size we return is not a useful number to report to clients.

We plan to remove the size from the cluster state response because it is not a
useful number to report to clients. This is the first step, in which the size
computation becomes optional and deprecated.

Relates #39806

Today when we respond to a `cluster:monitor/state` action we serialize the
current cluster state on the network thread in order to return its size when
compressed. This serialization can be expensive if the cluster state is very
large. Yet the size we return is not a useful number to report to clients.

We plan to remove the size from the cluster state response because it is not a
useful number to report to clients. This is the first step, in which the size
computation becomes optional and deprecated.

Relates elastic#39806
@DaveCTurner DaveCTurner added >deprecation v7.0.0 :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v6.7.0 v8.0.0 v7.2.0 labels Mar 12, 2019
@DaveCTurner DaveCTurner requested a review from jasontedor March 12, 2019 11:00
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-distributed

Copy link
Contributor

@ywelsch ywelsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the right path forward and will lead to a very poor experience when upgrading as a user.

@jasontedor
Copy link
Member

We are taking a different approach. See #40016 and #40061. Thank you @DaveCTurner for identifying the underlying issue and kickstarting the thinking and effort that got us to a solution we are comfortable with.

@jasontedor jasontedor closed this Mar 14, 2019
@DaveCTurner DaveCTurner deleted the 2019-03-12-deprecate-compressed-cluster-state-size branch July 23, 2022 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>deprecation :Distributed Coordination/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v6.7.0 v7.0.0-rc1 v7.2.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants