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

Improve discovery scalabiltiy #389

Merged
merged 5 commits into from
Apr 20, 2016

Conversation

ConorGriffin37
Copy link

Also add locking and unlocking to avoid threading issues. Locking both for all pools when adding a pool per pool in general.
Add and remove operations are now O(SizeOfPool), not O(TotalNodes).

@ConorGriffin37 ConorGriffin37 force-pushed the feature/conor/discoveryscalability branch from beecce7 to 2968359 Compare April 13, 2016 20:09
@ConorGriffin37 ConorGriffin37 force-pushed the feature/conor/discoveryscalability branch from 2968359 to 6f607d2 Compare April 13, 2016 20:41
"strconv"
"testing"
)

func TestMain(m *testing.M) {
Log = logger.New("discoveryTest", "discoveryTest", "/dev/null")
Log.SetLogLevel(logger.ERROR)
Pools = make(map[string]*Pool)
StateDirectoryPath = path.Join(os.TempDir(), "server_state_bench")
Copy link
Member

Choose a reason for hiding this comment

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

Would be nicer if we stored all /tmp tests in some more defined way, so for example all tests would be in /tmp/paranoid-tests/$component

Copy link
Author

Choose a reason for hiding this comment

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

Would definitely be better. You should make an issue, I doubt we will end up fixing it before the end of the sprint though.

Copy link
Member

Choose a reason for hiding this comment

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

I made a issue for it: #401

@GoldenBadger
Copy link
Contributor

LGTM

@GoldenBadger GoldenBadger merged commit add4590 into master Apr 20, 2016
@GoldenBadger GoldenBadger deleted the feature/conor/discoveryscalability branch April 20, 2016 13:07
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.

3 participants