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

Index throttling should not apply to recovery #9394

Closed
mikemccand opened this issue Jan 23, 2015 · 2 comments
Closed

Index throttling should not apply to recovery #9394

mikemccand opened this issue Jan 23, 2015 · 2 comments
Assignees

Comments

@mikemccand
Copy link
Contributor

@boaz thought of this:

When merges are falling too far behind, we now throttle (bottleneck) the incoming indexing to a single thread to let them catch up. It seems to work well in general, and it's very important to keep the index shard healthy (contain segment count) otherwise all sorts of other problems will cascade.

However, during recovery, we replay the indexing operations from the transaction log to catch up, it's dangerous that we also throttle that thread along with ongoing indexing operations, and it could mean recovery takes a very long time.

It seems like we should somehow fix index throttling to give priority to the indexing thread doing recovery?

@bleskes
Copy link
Contributor

bleskes commented Jan 23, 2015

Maybe the simplest solution is to allow the operations that come from the translog (via org.elasticsearch.index.shard.IndexShard#performRecoveryOperation ) to be applied without acquiring the throttling lock.

@clintongormley clintongormley added :Core/Infra/Core Core issues without another label >enhancement labels Jan 23, 2015
@mikemccand mikemccand self-assigned this Jan 23, 2015
@mikemccand
Copy link
Contributor Author

Thanks, I'll try that approach @bleskes

mikemccand added a commit that referenced this issue Jan 23, 2015
mikemccand added a commit that referenced this issue Jan 23, 2015
@bleskes bleskes changed the title Index throttling should not apply to recovery? Index throttling should not apply to recovery Jan 25, 2015
mute pushed a commit to mute/elasticsearch that referenced this issue Jul 29, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants