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

Performance improvement: Drop identical repeating tasks from #8867

Closed
bluelu opened this issue Dec 10, 2014 · 1 comment
Closed

Performance improvement: Drop identical repeating tasks from #8867

bluelu opened this issue Dec 10, 2014 · 1 comment

Comments

@bluelu
Copy link

bluelu commented Dec 10, 2014

Some tasks can trigger expensive operations (e.g. allocating of the cluster which can take a lot of time on large clusters). (e.g. #8804)

It would be good if the master node would drop identical requests from client nodes as long as one request is still in the list, so they don't pile up?

Example:

  9931        1.3m HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9737        7.1m HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9951       35.2s HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9483         11m HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9962       11.8s HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9654        9.1m HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9354       12.1m HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9719        7.8m HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9702        8.4m HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9968       319ms HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
   9957       24.2s HIGH     shard-failed ([index][7], node[ers2nQsQSVyF_1UrBODBxA], [P], s[INITIALIZING]), reason [master [master][RsK0yRjUQUyS-bQWr5lXpw][master][inet[/ip:9300]]{trendiction_scluster=NO_ROLE, data=false, service=searchdata, max_local_storage_nodes=1, trendiction_cluster=HR51, river=_none_, master=true} marked shard as initializing, but shard is marked as failed, resend shard failure] 
@bleskes
Copy link
Contributor

bleskes commented Dec 10, 2014

Although it looks like these pile up they are actually executed in one go. One every the master needs to process a shard state tasks (failed or started) it drains the queue from all tasks of similar type and executes them together. This means there will also be one reroute for all them.

I'm closing this as it is already solved, albeit in a different way. Please re-open if I missed something...

@bleskes bleskes closed this as completed Dec 10, 2014
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

No branches or pull requests

2 participants