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

Add missing index for "session_id" in "sessions" collection #4070

Merged
merged 1 commit into from Aug 11, 2017

Conversation

@joschi
Copy link
Contributor

@joschi joschi commented Aug 9, 2017

In environments with a large number of concurrent sessions, the session lookups cause a heavy load on MongoDB if there is no index on sessions.session_id.

Refs https://community.graylog.org/t/mongodb-affecting-the-graylog-infra/2001/3

@joschi joschi force-pushed the mongodb-sessions-index branch from d06f3fa to c43af99 Aug 9, 2017
@dennisoelkers dennisoelkers changed the title Add misisng index for "session_id" in "sessions" collection Add missing index for "session_id" in "sessions" collection Aug 9, 2017
@bernd
bernd approved these changes Aug 11, 2017
Copy link
Member

@bernd bernd left a comment

LGTM 👍

@bernd bernd merged commit 89cb866 into master Aug 11, 2017
4 checks passed
4 checks passed
@garybot2
ci-web-linter Jenkins build graylog-pr-linter-check 1856 has succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
@garybot2
graylog-project/pr Jenkins build graylog-project-pr-snapshot 385 has succeeded
Details
@bernd bernd deleted the mongodb-sessions-index branch Aug 11, 2017
@bernd bernd self-assigned this Aug 11, 2017
joschi added a commit that referenced this pull request Aug 11, 2017
bernd added a commit that referenced this pull request Aug 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants