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

listenerThreaded in Elasticsearch 5.0 #21349

Closed
shivangshah opened this issue Nov 4, 2016 · 5 comments
Closed

listenerThreaded in Elasticsearch 5.0 #21349

shivangshah opened this issue Nov 4, 2016 · 5 comments

Comments

@shivangshah
Copy link

Elasticsearch version: 5.0

Plugins installed: [x-pack]

JVM version: 1.8

OS version: Mac OS

Description of the problem including expected versus actual behavior: We were doing some performance test with Gatling and XPack transport client on localhost. The results were poles apart when the number of concurrent requests were increased (about 60 tps).

On profiling (visualVM) we found out that the bottle neck was BaseFuture$Sync.get(). On digging more I found this post here: #10766

I wanted to try out the exact same scenario with listenerThreaded(true) but seems like it is not available in Elasticsearch 5.0 transport client?

So, is that API still around to try? or is there a workaround?

@shivangshah
Copy link
Author

so i see this being documented as breaking change in 2.x here: https://www.elastic.co/guide/en/elasticsearch/reference/2.3/breaking_20_java_api_changes.html#_automatically_thread_client_listeners

But we still run into the same problem as mentioned in #10766 where most of the time is actually spent on Sync.get(). Are there any particular configurations we need to look at in order to tune this ?

@shivangshah
Copy link
Author

Also we are using PreBuiltXPackTransportClient as our client (because our cluster is secured with x-pack security)

@nik9000
Copy link
Member

nik9000 commented Nov 5, 2016

On profiling (visualVM) we found out that the bottle neck was BaseFuture$Sync.get(). On digging more I found this post here: #10766

Threads in that state are basically parked, waiting for work to do.

This isn't a bug or a feature request so I'm closing it. If you'd like to discuss it further head to discuss.elastic.co.

@nik9000 nik9000 closed this as completed Nov 5, 2016
@shivangshah
Copy link
Author

Sure @nik9000 .. Let me take this over to discuss.elastic.co. The problem is not them being parked .. the problem is transport client being the bottle neck of not being able to handle many concurrent requests. VisualVM profiler tells us that almost all the time, the threads are waiting on the sync.get() call.

Here's the gatling report.
image
The calls are going to one index and one shard (no replica). Everything is local as well.
As you can see that the initial calls returned back almost instantaneously, but over time requests started getting queued up and eventually when you monitor through a profiler, you can see all threads are waiting (blocked?) on Sync.get(). I hope this sheds any light. And if anyone can point me to any performance tests that were done using transport client, that'd be great as well.

@FS1360472174
Copy link

I am sad that met with this problem.
the throughtput is just 2/sec.
and cannot find way to solve it.

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

3 participants