Class HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ThreadPoolConfig
- java.lang.Object
-
- io.quarkus.hibernate.search.orm.elasticsearch.runtime.HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ThreadPoolConfig
-
- Enclosing class:
- HibernateSearchElasticsearchRuntimeConfigPersistenceUnit
public static class HibernateSearchElasticsearchRuntimeConfigPersistenceUnit.ThreadPoolConfig extends Object
-
-
Field Summary
Fields Modifier and Type Field Description (package private) OptionalInt
size
The size of the thread pool assigned to the backend.
-
Constructor Summary
Constructors Constructor Description ThreadPoolConfig()
-
-
-
Field Detail
-
size
@ConfigItem OptionalInt size
The size of the thread pool assigned to the backend.Note that number is per backend, not per index. Adding more indexes will not add more threads.
As all operations happening in this thread-pool are non-blocking, raising its size above the number of processor cores available to the JVM will not bring noticeable performance benefit. The only reason to alter this setting would be to reduce the number of threads; for example, in an application with a single index with a single indexing queue, running on a machine with 64 processor cores, you might want to bring down the number of threads.
Defaults to the number of processor cores available to the JVM on startup.
-
-