Skip to content

disable repository indicators to reduce Git overhead - #5311

Merged
iAmWillShepherd merged 3 commits into
masterfrom
roll-back-repo-indicators
Aug 1, 2018
Merged

iAmWillShepherd merged 3 commits into
masterfrom
roll-back-repo-indicators

Conversation

@shiftkey

@shiftkey shiftkey commented Aug 1, 2018

Copy link
Copy Markdown
Member

This is some mitigation for the issue reported in #5310 because we don't really do any sort of throttling for the background indicators.

The setup is basically:

  • check for all the non-missing repositories
  • create a promise for each and store them in an array
  • await all the work

I wanted to for loop over these so they were done sequentially #4770 (comment) but it looks like we ended with a Promise.all which fires them all concurrently and creates a large amount of Git work.

The log file attached here is pretty indicative of the worst case this can introduce: #5310 (comment)

I've also set this to run every 15 minutes to reduce the overhead further.

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Aug 1, 2018
@shiftkey shiftkey added this to the 1.3.2 milestone Aug 1, 2018
@iAmWillShepherd iAmWillShepherd self-assigned this Aug 1, 2018
@iAmWillShepherd
iAmWillShepherd merged commit 7c8a30c into master Aug 1, 2018
@iAmWillShepherd
iAmWillShepherd deleted the roll-back-repo-indicators branch August 1, 2018 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants