Skip to content

Improve slow logging in MasterService#45241

Merged
DaveCTurner merged 2 commits intoelastic:7.xfrom
DaveCTurner:2019-08-06-tighter-timeout-warning-in-master-service-7x
Aug 6, 2019
Merged

Improve slow logging in MasterService#45241
DaveCTurner merged 2 commits intoelastic:7.xfrom
DaveCTurner:2019-08-06-tighter-timeout-warning-in-master-service-7x

Conversation

@DaveCTurner
Copy link
Copy Markdown
Member

Adds a tighter threshold for logging a warning about slowness in the
MasterService instead of relying on the cluster service's 30-second warning
threshold. This new threshold applies to the computation of the cluster state
update in isolation, so we get a warning if computing a new cluster state
update takes longer than 10 seconds even if it is subsequently applied quickly.
It also applies independently to the length of time it takes to notify the
cluster state tasks on completion of publication, in case any of these
notifications holds up the master thread for too long.

Relates #45007
Backport of #45086

Adds a tighter threshold for logging a warning about slowness in the
`MasterService` instead of relying on the cluster service's 30-second warning
threshold. This new threshold applies to the computation of the cluster state
update in isolation, so we get a warning if computing a new cluster state
update takes longer than 10 seconds even if it is subsequently applied quickly.
It also applies independently to the length of time it takes to notify the
cluster state tasks on completion of publication, in case any of these
notifications holds up the master thread for too long.

Relates elastic#45007
@DaveCTurner DaveCTurner added >enhancement :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. backport v7.4.0 labels Aug 6, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-distributed

@DaveCTurner DaveCTurner merged commit 355713b into elastic:7.x Aug 6, 2019
@DaveCTurner DaveCTurner deleted the 2019-08-06-tighter-timeout-warning-in-master-service-7x branch August 8, 2019 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Distributed/Cluster Coordination Cluster formation and cluster state publication, including cluster membership and fault detection. >enhancement v7.4.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants