Skip to content

Separate IndexingSlowlogSettings from regular search SlowlogSettings #2220

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

Merged
merged 1 commit into from
Aug 3, 2023
Merged
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
24 changes: 17 additions & 7 deletions specification/indices/_types/IndexSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export class IndexSettings
* Enable or disable dynamic mapping for an index.
*/
mapping?: MappingLimitSettings
'indexing.slowlog'?: SlowlogSettings
'indexing.slowlog'?: IndexingSlowlogSettings
/**
* Configure indexing back pressure limits.
*/
Expand Down Expand Up @@ -479,12 +479,6 @@ export class SlowlogSettings {
export class SlowlogTresholds {
query?: SlowlogTresholdLevels
fetch?: SlowlogTresholdLevels
/**
* The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.
* Log and the thresholds are configured in the same way as the search slowlog.
* @doc_id index-modules-slowlog-slowlog
*/
index?: SlowlogTresholdLevels
}

export class SlowlogTresholdLevels {
Expand Down Expand Up @@ -549,3 +543,19 @@ export class IndexingPressureMemory {
*/
limit?: integer
}

export class IndexingSlowlogSettings {
level?: string
source?: integer
reformat?: boolean
threshold?: IndexingSlowlogTresholds
}

export class IndexingSlowlogTresholds {
/**
* The indexing slow log, similar in functionality to the search slow log. The log file name ends with `_index_indexing_slowlog.json`.
* Log and the thresholds are configured in the same way as the search slowlog.
* @doc_id index-modules-slowlog-slowlog
*/
index?: SlowlogTresholdLevels
}