mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
# Backport This will backport the following commits from `main` to `8.x`: - [[ML] Update vCPUs ranges for start model deployment (#195617)](https://github.com/elastic/kibana/pull/195617) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Dima Arnautov","email":"dmitrii.arnautov@elastic.co"},"sourceCommit":{"committedDate":"2024-10-14T14:38:26Z","message":"[ML] Update vCPUs ranges for start model deployment (#195617)\n\n## Summary\r\n\r\n#### Different vCPUs ranges and enabling support for static allocations\r\nbased on the serverless project type\r\n\r\n- Each serverless config yml, e.g.\r\n[search.es.yml](84b3b79a15/config/serverless.es.yml (L61)
)\r\nnow contains parameters required for start model deployment:\r\n\r\n```yml\r\nxpack.ml.nlp:\r\n enabled: true\r\n modelDeployment:\r\n allowStaticAllocations: true\r\n vCPURange:\r\n low:\r\n min: 0\r\n max: 2\r\n static: 2\r\n medium:\r\n min: 1\r\n max: 32\r\n static: 32\r\n high:\r\n min: 1\r\n max: 512\r\n static: 512\r\n```\r\n\r\nNote: _There will be no static allocations option for serverless O11y\r\nand serverless Security._\r\n\r\n#### The minimum values of vCPUs\r\n\r\n- 0 for the Low usage level on both serverless and ESS.\r\n- 1 for the Medium and High usage levels on both serverless and ESS.\r\n \r\n#### The default vCPUs usage levels\r\n- Low in serverless.\r\n- Medium in ESS and on-prem\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"13897083dc8c465a16ddb3856d4e4904b9629610","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:enhancement",":ml","v9.0.0","Feature:3rd Party Models","Team:ML","ci:project-deploy-elasticsearch","ci:project-deploy-observability","v8.16.0","backport:version"],"title":"[ML] Update vCPUs ranges for start model deployment ","number":195617,"url":"https://github.com/elastic/kibana/pull/195617","mergeCommit":{"message":"[ML] Update vCPUs ranges for start model deployment (#195617)\n\n## Summary\r\n\r\n#### Different vCPUs ranges and enabling support for static allocations\r\nbased on the serverless project type\r\n\r\n- Each serverless config yml, e.g.\r\n[search.es.yml](84b3b79a15/config/serverless.es.yml (L61)
)\r\nnow contains parameters required for start model deployment:\r\n\r\n```yml\r\nxpack.ml.nlp:\r\n enabled: true\r\n modelDeployment:\r\n allowStaticAllocations: true\r\n vCPURange:\r\n low:\r\n min: 0\r\n max: 2\r\n static: 2\r\n medium:\r\n min: 1\r\n max: 32\r\n static: 32\r\n high:\r\n min: 1\r\n max: 512\r\n static: 512\r\n```\r\n\r\nNote: _There will be no static allocations option for serverless O11y\r\nand serverless Security._\r\n\r\n#### The minimum values of vCPUs\r\n\r\n- 0 for the Low usage level on both serverless and ESS.\r\n- 1 for the Medium and High usage levels on both serverless and ESS.\r\n \r\n#### The default vCPUs usage levels\r\n- Low in serverless.\r\n- Medium in ESS and on-prem\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"13897083dc8c465a16ddb3856d4e4904b9629610"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/195617","number":195617,"mergeCommit":{"message":"[ML] Update vCPUs ranges for start model deployment (#195617)\n\n## Summary\r\n\r\n#### Different vCPUs ranges and enabling support for static allocations\r\nbased on the serverless project type\r\n\r\n- Each serverless config yml, e.g.\r\n[search.es.yml](84b3b79a15/config/serverless.es.yml (L61)
)\r\nnow contains parameters required for start model deployment:\r\n\r\n```yml\r\nxpack.ml.nlp:\r\n enabled: true\r\n modelDeployment:\r\n allowStaticAllocations: true\r\n vCPURange:\r\n low:\r\n min: 0\r\n max: 2\r\n static: 2\r\n medium:\r\n min: 1\r\n max: 32\r\n static: 32\r\n high:\r\n min: 1\r\n max: 512\r\n static: 512\r\n```\r\n\r\nNote: _There will be no static allocations option for serverless O11y\r\nand serverless Security._\r\n\r\n#### The minimum values of vCPUs\r\n\r\n- 0 for the Low usage level on both serverless and ESS.\r\n- 1 for the Medium and High usage levels on both serverless and ESS.\r\n \r\n#### The default vCPUs usage levels\r\n- Low in serverless.\r\n- Medium in ESS and on-prem\r\n\r\n### Checklist\r\n\r\n- [x] [Unit or functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere updated or added to match the most common scenarios","sha":"13897083dc8c465a16ddb3856d4e4904b9629610"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Dima Arnautov <dmitrii.arnautov@elastic.co>
47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
/*
|
|
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
|
|
* or more contributor license agreements. Licensed under the Elastic License
|
|
* 2.0; you may not use this file except in compliance with the Elastic License
|
|
* 2.0.
|
|
*/
|
|
|
|
import type { PluginConfigDescriptor, PluginInitializerContext } from '@kbn/core/server';
|
|
import { type ConfigSchema } from '../common/constants/app';
|
|
import { configSchema } from './config_schema';
|
|
export type { MlPluginSetup, MlPluginStart } from './plugin';
|
|
export type {
|
|
DatafeedStats as MlDatafeedStats,
|
|
Job as MlJob,
|
|
MlSummaryJob,
|
|
SummaryJobState as MlSummaryJobState,
|
|
AlertingService as MlAlertingService,
|
|
AnomalyDetectors as MlAnomalyDetectors,
|
|
JobService as MlJobService,
|
|
MlSystem as MlMlSystem,
|
|
Modules as MlModules,
|
|
ResultsService as MlResultsService,
|
|
TrainedModels as MlTrainedModels,
|
|
} from './shared';
|
|
export {
|
|
UnknownMLCapabilitiesError,
|
|
InsufficientMLCapabilities,
|
|
MLPrivilegesUninitialized,
|
|
} from './shared';
|
|
|
|
export const config: PluginConfigDescriptor<ConfigSchema> = {
|
|
schema: configSchema,
|
|
exposeToBrowser: {
|
|
ad: true,
|
|
dfa: true,
|
|
nlp: {
|
|
enabled: true,
|
|
modelDeployment: true,
|
|
},
|
|
experimental: true,
|
|
},
|
|
};
|
|
|
|
export const plugin = async (ctx: PluginInitializerContext<ConfigSchema>) => {
|
|
const { MlServerPlugin } = await import('./plugin');
|
|
return new MlServerPlugin(ctx);
|
|
};
|