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

bosun: making save rely on fewer goroutines needing to acquire the lock. #1187

Merged
merged 2 commits into from
Jul 22, 2015

Conversation

captncraig
Copy link
Contributor

Uses a single, buffered channel to signal a save is needed. A single worker goroutine monitors this channel and saves as needed.

In the case of multiple saves in fast succession, this should reduce lock contention on the schedule lock.

@gbrayut
Copy link
Contributor

gbrayut commented Jul 22, 2015

code LGTM, but we need to rewrite the x/net/internal/iana package name now that go 1.5 doesn't let you import internal packages. See golang/go@d709434 and travisci failure:

imports bosun.org/_third_party/golang.org/x/net/internal/iana: use of internal package not allowed

captncraig added a commit that referenced this pull request Jul 22, 2015
bosun: making save rely on fewer goroutines needing to acquire the lock.
@captncraig captncraig merged commit 61bb887 into master Jul 22, 2015
@captncraig captncraig deleted the lessSaveContention branch July 22, 2015 19:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants