Skip to content

org.elasticsearch.xpack.logsdb.LogsdbIndexModeSettingsProvider#newIndexHasSyntheticSourceUsage uses more than 1/3 of index creation CPU time #119552

@original-brownbear

Description

@original-brownbear

org.elasticsearch.xpack.logsdb.LogsdbIndexModeSettingsProvider#newIndexHasSyntheticSourceUsage is one of the big contributors to the many shards benchmarks regressions we're seeing.
The reason for that is that it does a redundant mapping merge exactly like the one we do anyway. We need to find a more efficient solution here, this is severely impacting at least the productivity of working with the many-shards benchmarks but also has production impact on master node stability during mass index rollover events and the like.

See below profile (note this is 30% of CPU overall, including JIT and GC which are quite heavy here):

Image

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions