Skip to content

Add cluster state serialization stats#78816

Merged
DaveCTurner merged 5 commits into
elastic:masterfrom
DaveCTurner:2021-10-07-cluster-state-serialization-stats
Oct 15, 2021
Merged

Add cluster state serialization stats#78816
DaveCTurner merged 5 commits into
elastic:masterfrom
DaveCTurner:2021-10-07-cluster-state-serialization-stats

Conversation

@DaveCTurner

Copy link
Copy Markdown
Member

This commit adds stats tracking the number and compressed/uncompressed
size of cluster states that the master serializes.

This commit adds stats tracking the number and compressed/uncompressed
size of cluster states that the master serializes.
@DaveCTurner DaveCTurner added >enhancement :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. v8.0.0 v7.16.0 labels Oct 7, 2021
@elasticmachine elasticmachine added the Team:Distributed Meta label for distributed team. label Oct 7, 2021
@elasticmachine

Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed (Team:Distributed)

@fcofdez fcofdez self-requested a review October 14, 2021 09:55

@fcofdez fcofdez left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM, just a minor nit. 👍

public static final ClusterStateSerializationStats EMPTY = new ClusterStateSerializationStats(0L, 0L, 0L, 0L, 0L, 0L);

private final long fullStateCount;
private final long totalUncompressedFullStateSize;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nit: can we add the unit as a suffix in these variables?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I have vivid memories of losing marks in exams over this 🧑‍🏫 Done in 38422d2.

@DaveCTurner

Copy link
Copy Markdown
Member Author

@elasticmachine update branch

@DaveCTurner DaveCTurner merged commit bf5b2fa into elastic:master Oct 15, 2021
@DaveCTurner DaveCTurner deleted the 2021-10-07-cluster-state-serialization-stats branch October 15, 2021 13:06
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Oct 15, 2021
This commit adds stats tracking the number and compressed/uncompressed
size of cluster states that the master serializes.

Backport of elastic#78816
DaveCTurner added a commit that referenced this pull request Oct 15, 2021
DaveCTurner added a commit that referenced this pull request Oct 15, 2021
This commit adds stats tracking the number and compressed/uncompressed
size of cluster states that the master serializes.

Backport of #78816
DaveCTurner added a commit to DaveCTurner/elasticsearch that referenced this pull request Oct 15, 2021
elasticsearchmachine pushed a commit that referenced this pull request Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >enhancement Team:Distributed Meta label for distributed team. v7.16.0 v8.0.0-beta1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants