Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@
*/
public record ExecutorNames(String threadPoolForGet, String threadPoolForSearch, String threadPoolForWrite) {

/**
* The thread pools for typical indices and data streams.
*/
public static final ExecutorNames DEFAULT_INDEX_THREAD_POOLS = new ExecutorNames(
ThreadPool.Names.GET,
ThreadPool.Names.SEARCH,
ThreadPool.Names.WRITE
);

/**
* The thread pools for a typical system index.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,9 @@ private static SystemIndexDescriptor fleetIntegrationKnowledgeSystemIndexDescrip
.setType(Type.EXTERNAL_MANAGED)
.setAllowedElasticProductOrigins(ALLOWED_PRODUCTS)
.setOrigin(FLEET_ORIGIN)
// This is a regular search index so it uses the shared thread pools.
// The only difference is that its mappings and settings are managed internally by Elasticsearch.
.setThreadPools(ExecutorNames.DEFAULT_INDEX_THREAD_POOLS)
.setMappings(request.mappings())
.setSettings(request.settings())
.setPrimaryIndex(".integration_knowledge-" + CURRENT_INDEX_VERSION)
Expand Down