Skip to content
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

[monitoring] only start bulk uploader once #31307

Merged
merged 2 commits into from
Feb 21, 2019

Conversation

jbudz
Copy link
Member

@jbudz jbudz commented Feb 15, 2019

  1. start kibama
  2. start es
  3. stop/start es
  4. usage collectors are running * number of restarts

hypothesis: cluster becomes unavailable, license check fails, bulk check started again?

xpackMainInfo.onLicenseInfoChange(() => {

@jbudz jbudz added the Team:Monitoring Stack Monitoring team label Feb 15, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/stack-monitoring

@chrisronline
Copy link
Contributor

cc @tsullivan

@elasticmachine
Copy link
Contributor

💔 Build Failed

} else {
this._fetchAndUpload(filterThem(collectorSet)); // initial fetch
}

this._timer = setInterval(() => {
this._fetchAndUpload(filterThem(collectorSet));
}, this._interval);
Copy link
Member Author

Choose a reason for hiding this comment

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

we'll likely want to wait for completion of _fetchAndUpload before restarting the interval. this may make many requests, and could result in a fair amount of back pressure

Copy link
Member

@azasypkin azasypkin Feb 19, 2019

Choose a reason for hiding this comment

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

Yes, and Cloud already suffered from this once: #30058

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 opened #31498. quick fix for patching and we can address that separately.

@chrisronline
Copy link
Contributor

I'm going to test these changes later today, but code-wise, it seems to make sense, but @elastic/kibana-platform or @tsullivan would know more than me if this might not work for some edge case reason.

@jbudz
Copy link
Member Author

jbudz commented Feb 19, 2019

retest

@elasticmachine
Copy link
Contributor

💔 Build Failed

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

@jbudz jbudz added the blocker label Feb 20, 2019
@jbudz
Copy link
Member Author

jbudz commented Feb 20, 2019

@elastic/kibana-operations a little different :) anyone available for a review?

Copy link
Member

@mistic mistic left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@tsullivan tsullivan left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants