What is the correct way to provide your own ThreadPool for the java
Node client to use?
I notice that NodeClient can take a ThreadPool in the constructor, but
the normal way to obtain a NodeClient is from node.client() so you
don't get the option to provide one.
Alternatively, how can I change the settings of the thread pool to
use?
My use case is that I am setting up HBase to push new data into
ElasticSearch at quite high volumes, but I want to be able to control
how many index calls happen in parallel.
Or does a single NodeClient push all requests through a single thread
anyway, no matter how many threads it's shared between?
What is the correct way to provide your own ThreadPool for the java
Node client to use?
I notice that NodeClient can take a ThreadPool in the constructor, but
the normal way to obtain a NodeClient is from node.client() so you
don't get the option to provide one.
Alternatively, how can I change the settings of the thread pool to
use?
My use case is that I am setting up HBase to push new data into
Elasticsearch at quite high volumes, but I want to be able to control
how many index calls happen in parallel.
Or does a single NodeClient push all requests through a single thread
anyway, no matter how many threads it's shared between?
You can control if the call will be async or not based on the API (its
always "async" in a sense, to you can control if you want to wait for it or
not). You can still control the thread pools on the actual data nodes in
the cluster ofcourse using the thread pool configuration: Elasticsearch Platform — Find real-time answers at scale | Elastic.
What is the correct way to provide your own ThreadPool for the java
Node client to use?
I notice that NodeClient can take a ThreadPool in the constructor, but
the normal way to obtain a NodeClient is from node.client() so you
don't get the option to provide one.
Alternatively, how can I change the settings of the thread pool to
use?
My use case is that I am setting up HBase to push new data into
Elasticsearch at quite high volumes, but I want to be able to control
how many index calls happen in parallel.
Or does a single NodeClient push all requests through a single thread
anyway, no matter how many threads it's shared between?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.