Skip to content

Commit

Permalink
[Obs AI Assistant] Disable ILM for conversations (elastic#168371)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Szabo <[email protected]>
  • Loading branch information
dgieselaar and delanni authored Oct 10, 2023
1 parent 570963b commit 99f20d9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 23 deletions.
20 changes: 0 additions & 20 deletions x-pack/plugins/observability_ai_assistant/server/service/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ export class ObservabilityAIAssistantService {
conversations: getResourceName('index-template-conversations'),
kb: getResourceName('index-template-kb'),
},
ilmPolicy: {
conversations: getResourceName('ilm-policy-conversations'),
},
pipelines: {
kb: getResourceName('kb-ingest-pipeline'),
},
Expand Down Expand Up @@ -112,23 +109,6 @@ export class ObservabilityAIAssistantService {
template: conversationComponentTemplate,
});

await esClient.ilm.putLifecycle({
name: this.resourceNames.ilmPolicy.conversations,
policy: {
phases: {
hot: {
min_age: '0s',
actions: {
rollover: {
max_age: '90d',
max_primary_shard_size: '50gb',
},
},
},
},
},
});

await esClient.indices.putIndexTemplate({
name: this.resourceNames.indexTemplate.conversations,
composed_of: [this.resourceNames.componentTemplate.conversations],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ export interface ObservabilityAIAssistantResourceNames {
conversations: string;
kb: string;
};
ilmPolicy: {
conversations: string;
};
aliases: {
conversations: string;
kb: string;
Expand Down

0 comments on commit 99f20d9

Please sign in to comment.