Preemptible VMs, also known as spot VMs or spot instances, are virtual machines that Compute may stop at any time. This can happen, for example, when the system needs resources to launch a regular VM in the same region, or if the current spot price exceeds the maximum price set in the pricing policy associated with the preemptible VM.Compute sends a SIGTERM signal 60 seconds before stopping the VM. If your system does not respond in time, Compute sends a SIGKILL signal to force shutdown.Compute preserves all data on the volumes attached to a stopped preemptible VM. It does not preserve dynamic resources, such as dynamic public IP addresses.Preemptible VMs can help reduce computing costs for workloads that tolerate interruptions, but they don’t provide guaranteed availability. Preemptible VMs are charged at the current spot price. To manage the cost of preemptible VMs, you can:
Set the maximum spot price at which your VMs can start and keep running by using a pricing policy.
Run your VMs at the current spot price without a maximum by choosing Follows spot price.
You can’t convert an existing VM from regular to preemptible or the other way around. To get a preemptible VM, create a new one.
Supported platforms
You can run preemptible VMs on all VM platforms with GPUs.To get an up-to-date list of platforms, run the nebius compute platform listcommand. The platforms available for preemptible VMs are marked as allowed_for_preemptibles: true.
Prerequisites
If you use the web console, you don’t need to complete any prerequisites.
When you create a preemptible VM, configure one of the spot pricing settings. You can select a pricing policy to set the maximum price, or follow the spot price to have the VM run at the current spot price.
Web console
CLI
Terraform
Go SDK
Python SDK
JavaScript SDK
In the sidebar, go to Compute → Virtual machines.
Click Create resource → Virtual machine.
If you have capacity block groups, on the General step, select Pay-as-you-go VM. If you do not have capacity block groups, the wizard skips the General step and opens Compute instead.
On the Compute step, select With GPUs or Without GPUs, set the VM type to Preemptible, and select a platform and preset.
Add one of the following spot pricing parameters. The example command below uses --follows-spot-price:
--spot-pricing-policy-id <pricing_policy_ID>: Select a pricing policy that sets the maximum spot price. For information on how to get a pricing policy ID or create a new policy, see Managing pricing policies.
--follows-spot-price: Accept the current spot price without setting a maximum spot price.
Add the following parameters to the nebius compute instance create command:
In this configuration, the following values are specified:
recovery_policy defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the FAIL value, which stops the VM. They do not support the RECOVER value, which tries to restart the VM. Setting RECOVER for a preemptible VM results in an error.
on_preemption specifies what happens when the VM is preempted. The only supported value is STOP: Compute stops the VM without deleting or restarting it.
... stands for the other attributes of the VM configuration. In this configuration, the following values are specified:
recovery_policy defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the FAIL value, which stops the VM. They do not support the RECOVER value, which tries to restart the VM. Setting RECOVER for a preemptible VM results in an error.
on_preemption specifies what happens when the VM is preempted. The only supported value is STOP: Compute stops the VM without deleting or restarting it.
follows_spot_price accepts the current spot price without setting a maximum price. To set a maximum price, use spot_pricing_policy = { id = "<pricing_policy_ID>" } with the ID of a pricing policy instead.
In this configuration, the following values are specified:
RecoveryPolicy defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the FAIL value, which stops the VM. They do not support the RECOVER value, which tries to restart the VM. Setting RECOVER for a preemptible VM results in an error.
OnPreemption specifies what happens when the VM is preempted. The only supported value is STOP: Compute stops the VM without deleting or restarting it.
FollowsSpotPrice accepts the current spot price without setting a maximum price. To set a maximum price, use SpotPricingPolicy with the ID of a pricing policy instead.
In this configuration, the following values are specified:
recovery_policy defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the FAIL value, which stops the VM. They do not support the RECOVER value, which tries to restart the VM. Setting RECOVER for a preemptible VM results in an error.
on_preemption specifies what happens when the VM is preempted. The only supported value is STOP: Compute stops the VM without deleting or restarting it.
follows_spot_price accepts the current spot price without setting a maximum price. To set a maximum price, use spot_pricing_policy with the ID of a pricing policy instead.
In this configuration, the following values are specified:
recoveryPolicy defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the FAIL value, which stops the VM. They do not support the RECOVER value, which tries to restart the VM. Setting RECOVER for a preemptible VM results in an error.
onPreemption specifies what happens when the VM is preempted. The only supported value is STOP: Compute stops the VM without deleting or restarting it.
followsSpotPrice accepts the current spot price without setting a maximum price. To set a maximum price, use spotPricingPolicy with the ID of a pricing policy instead.
A dynamic IP address is released when a preemptible VM stops. To keep your workload stable, consider using a static IP address instead.
How to continue working with a stopped preemptible VM
When Compute stops a preemptible VM, it preserves all data on the attached volumes. If the max price in the VM’s pricing policy is lower than the current spot price, change the VM’s spot pricing setting or wait for the price to drop. To resume work, start the VM again. If you used a dynamic IP address, update all systems that depended on the old IP address.If the VM uses local SSD disks, use them with caution. Local SSD disks are ephemeral, meaning any data stored on them will be lost when the preemptible VM stops.You can also create a regular VM with the same attached volumes.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Nebius AI Cloud","colors":{"primary":"#6057f7","light":"#6057f7","dark":"#6057f7"},"logo":{"light":"https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/logo/logo.svg?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8dd637468a6b53f6c1af6387d11e76c7","dark":"https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/logo/logo.svg?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8dd637468a6b53f6c1af6387d11e76c7"},"favicon":"https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/favicon.ico?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8a5c39792808860e8902cbf209ba4843","appearance":{"default":"system"},"background":{"color":{"dark":"#26262A"}},"navbar":{"links":[{"href":"https://nebius.com/#ai-contact-form","label":"Contact us"}],"primary":{"type":"button","label":"Open web console","href":"https://console.nebius.com/"}},"footer":{"socials":{"youtube":"https://www.youtube.com/@nebiusofficial","facebook":"https://www.facebook.com/nebiusofficial","linkedin":"https://www.linkedin.com/company/nebius","x":"https://x.com/nebiusai"}},"seo":{"metatags":{"google-site-verification":"p7dnMrsuoFlnyF9Oo0Ys0xPbeRCpQ9MedGsgi7nBOaI"}},"integrations":{"ga4":{"measurementId":"G-DHKV2ZED15"}},"contextual":{"options":["mcp","copy","view","vscode","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"nebius-ai-cloud","hasAudioNarration":false,"actualSubdomain":"nebius-ai-cloud","customDomains":["docs.nebius.com"],"gitSource":{"type":"github","owner":"nebius","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"ENABLED"},"CONTEXTUAL_FEEDBACK":{"status":"ENABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"ENABLED","enabled":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b05011620d83e4a6efcb33f","clientVersion":"0.0.4286","searchFilterCounts":[{"language":"default","tag":"Developer tools","count":1769},{"language":"default","tag":"Reference","count":1723},{"language":"default","tag":"CLI","count":1008},{"language":"default","tag":"REST API","count":614},{"language":"default","tag":"v1","count":472},{"language":"default","tag":"iam","count":371},{"language":"default","tag":"vpc","count":263},{"language":"default","tag":"v1alpha1","count":259},{"language":"default","tag":"operation","count":252},{"language":"default","tag":"Infrastructure","count":217}],"searchSettings":{"isFiltersEnabled":false}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[{"filePath":"_assets/css/styles.css","content":".inline_svg svg{display:inline}.custom-card-icon{width:fit-content!important}.custom-card-icon>div{padding:32px;height:100%}.getting_started_wrapper .custom-card-icon:hover{border:1px solid rgba(27, 45, 79, 0.15)!important}.dark .getting_started_wrapper .custom-card-icon,.dark .getting_started_wrapper .custom-card-icon:hover{border:1px solid rgba(255, 255, 255, 0.15)!important}.getting_started_wrapper .custom-card-icon>div:hover{background:rgba(0, 0, 0, 0.03)}.dark .getting_started_wrapper .custom-card-icon>div:hover{background:rgba(255, 255, 255, 0.03)}.platform_services_wrapper .custom-card-icon{border:none;border-radius:24px;box-shadow:1px 3px 13px 0px rgba(0, 0, 0, 0.05), 0px 1px 6px 0px rgba(0, 0, 0, 0.05)}.platform_services_wrapper .custom-card-icon:hover{box-shadow:0px 3px 10px 0px rgba(0, 0, 0, 0.15)}.dark .platform_services_wrapper .custom-card-icon{background:rgba(48, 48, 53, 1)}.dark .platform_services_wrapper .custom-card-icon>div:hover{background:rgba(255, 255, 255, 0.03)}.custom-card-icon a{background-color:#fff!important}.dark .custom-card-icon a{background-color:#303035!important;border-color:#303035!important}nav ul .navbar-link a,nav ul #topbar-cta-button a span{border-radius:50px!important;color:#fff}nav ul .navbar-link a:hover{color:#fff}#navbar>div.relative{width:100%;max-width:100%}#navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>div>div,#navbar>div.max-w-8xl.mx-auto.relative>div>div.hidden.lg\\:flex.px-12.h-12{max-width:92rem!important;margin:auto;padding-left:3rem;padding-right:3rem}#navbar>div.relative>div>div.relative,#navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>div>div>div.relative.hidden.lg\\:flex.items-center.flex-1.z-20.justify-center button{background-color:#31343c;width:100%;color:#ffffffcc!important;--tw-ring-color: #ffffffcc !important}.dark #navbar>div.relative>div>div.relative,.dark #navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>div>div>div.relative.hidden.lg\\:flex.items-center.flex-1.z-20.justify-center button{background-color:#26262a}#navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>button div{color:#fff!important}#navbar,#navbar>div,#navbar>div>div{overflow:visible!important}.hidden.lg\\:flex.px-12.h-12{position:relative!important;padding-left:1rem!important;padding-right:1rem!important;overflow-x:auto!important;overflow-y:hidden!important;max-width:100vw!important;scroll-behavior:smooth;scrollbar-width:thin;scrollbar-color:rgba(96, 87, 247, 0.6) transparent}.hidden.lg\\:flex.px-12.h-12::-webkit-scrollbar{height:6px}.hidden.lg\\:flex.px-12.h-12::-webkit-scrollbar-track{background:transparent;margin:0 1rem}.hidden.lg\\:flex.px-12.h-12::-webkit-scrollbar-thumb{background:rgba(96, 87, 247, 0.6);border-radius:3px}.hidden.lg\\:flex.px-12.h-12::-webkit-scrollbar-thumb:hover{background:rgba(96, 87, 247, 0.9)}html[data-current-path^=\"/legal\"]:not([data-current-path=\"/legal/agreement\"]):not([data-current-path=\"/legal/dpa\"]):not([data-current-path=\"/legal/dpa-inc\"]):not([data-current-path=\"/legal/dpa-il\"]) #content-area>#header>div>div>:not(h1){display:none!important}.nav-tabs{gap:1rem!important;flex-wrap:nowrap!important;width:max-content!important;min-width:100%!important;padding-left:2rem!important}.nav-tabs::after{content:\"\";min-width:1rem!important;flex-shrink:0!important;display:block!important}.nav-tabs-item{white-space:nowrap!important;flex-shrink:0!important}.nav-scroll-caret-left{background:linear-gradient(\n to right,\n rgba(255, 255, 255, 1) 0%,\n rgba(255, 255, 255, 1) 50%,\n rgba(255, 255, 255, 0) 100%\n )!important;color:#666!important}.nav-scroll-caret-right{background:linear-gradient(\n to left,\n rgba(255, 255, 255, 1) 0%,\n rgba(255, 255, 255, 1) 50%,\n rgba(255, 255, 255, 0) 100%\n )!important;color:#666!important}.dark .nav-scroll-caret-left{background:linear-gradient(to right, #26262a 0%, #26262a 50%, rgba(38, 38, 42, 0) 100%)!important;color:#999!important}.dark .nav-scroll-caret-right{background:linear-gradient(to left, #26262a 0%, #26262a 50%, rgba(38, 38, 42, 0) 100%)!important;color:#999!important}#content blockquote{border-color:#5282ff!important}@media screen and (max-width: 1486px){#navbar>div.max-w-8xl.mx-auto.relative>div>div.relative>div{padding-left:0!important;padding-right:0!important}.homepage_wrapper>div{padding-left:2rem!important;padding-right:2rem!important}}@media screen and (max-width: 1024px){.homepage_wrapper>div{padding-left:0.5rem!important;padding-right:0.5rem!important}}.getting_started_wrapper .card{border-radius:24px;border-width:1px}img.inline{margin:0}img.icon[src*=\"/_assets/\"]{filter:invert(0.1)}.dark img.icon[src*=\"/_assets/\"]{filter:invert(0.96)}img.icon.keep-colors,.dark img.icon.keep-colors{filter:none}img.icon[src*=\"/_assets/sidebar/\"]{filter:brightness(0) invert(0.1)}.dark img.icon[src*=\"/_assets/sidebar/\"]{filter:none}img[src*=\"/_assets/icons/\"]{filter:brightness(0) invert(6%) sepia(58%) saturate(1475%) hue-rotate(195deg) brightness(103%) contrast(91%)}.dark img[src*=\"/_assets/icons/\"]{filter:none}.frame{width:fit-content;margin:auto}@media print{#navbar,#sidebar,#content-side-layout,#footer,#pagination,.feedback-toolbar,.media-print-none{display:none}#content-area{width:100%;margin-left:0;padding-left:.25rem}}.chat-assistant-floating-input{display:none!important}.sticky-table [data-table-wrapper]{--page-padding: 0px}.sticky-table table :is(th,td):first-child{position:sticky;left:0;z-index:1;background:rgb(var(--background-light))}.sticky-table table :is(th,td):first-child,.sticky-table table :is(th,td):first-child *{overflow-wrap:anywhere}html.dark .sticky-table table :is(th,td):first-child{background:rgb(var(--background-dark))}.compact-matrix table{width:max-content;min-width:0}.compact-matrix table :is(th,td){min-width:0;padding:8px;vertical-align:middle}.compact-matrix table :is(th,td):not(:first-child){width:auto;text-align:center;white-space:nowrap}.compact-matrix table :is(th,td):first-child{width:150px;white-space:normal}.compact-matrix table th code{padding-inline:2px}.merged-first-column table tbody tr{border-bottom-width:0}.merged-first-column table tbody td{border-bottom:1px solid rgb(var(--gray-100))}html.dark .merged-first-column table tbody td{border-bottom-color:#94a3b81a}.merged-first-column table tbody tr:has(+tr>td:first-child:empty)>td:first-child{border-bottom-color:transparent}.merged-first-column table :is(th,td):first-child{width:260px}.first-expanded-column table :is(th,td):first-child{width:24%;white-space:normal}"}]}
{"page":{"pagePath":"compute/virtual-machines/preemptible","slug":"/compute/virtual-machines/preemptible","pageMetadata":{"title":"Preemptible virtual machines","sidebarTitle":"Preemptible VMs","description":null,"href":"/compute/virtual-machines/preemptible"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,ol:`ol`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Icon,Tab,Tabs,Tip}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Icon)_missingMdxReference(`Icon`,true);if(!Tab)_missingMdxReference(`Tab`,true);if(!Tabs)_missingMdxReference(`Tabs`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[_jsx(_components.em,{children:`Preemptible VMs`}),`, also known as spot VMs or spot instances, are virtual machines that Compute may stop at any time. This can happen, for example, when the system needs resources to launch a regular VM in the same region, or if the current spot price exceeds the maximum price set in the pricing policy associated with the preemptible VM.`]}),`\n`,_jsxs(_components.p,{children:[`Compute sends a `,_jsx(_components.code,{children:`SIGTERM`}),` signal 60 seconds before stopping the VM. If your system does not respond in time, Compute sends a `,_jsx(_components.code,{children:`SIGKILL`}),` signal to force shutdown.`]}),`\n`,_jsx(_components.p,{children:`Compute preserves all data on the volumes attached to a stopped preemptible VM. It does not preserve dynamic resources, such as dynamic public IP addresses.`}),`\n`,_jsxs(_components.p,{children:[`Preemptible VMs can help reduce computing costs for workloads that tolerate interruptions, but they don’t provide guaranteed availability. Preemptible VMs are charged at the current `,_jsx(_components.a,{href:`/signup-billing/pricing-policy`,children:`spot price`}),`. To manage the cost of preemptible VMs, you can:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.a,{href:`/signup-billing/spot-prices`,children:`Check current spot prices and their history`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Set the maximum spot price at which your VMs can start and keep running by using a `,_jsx(_components.a,{href:`/signup-billing/manage-pricing-policy`,children:`pricing policy`}),`.`]}),`\n`,_jsxs(_components.li,{children:[`Run your VMs at the current spot price without a maximum by choosing `,_jsx(_components.strong,{children:`Follows spot price`}),`.`]}),`\n`]}),`\n`,_jsx(_components.p,{children:`You can’t convert an existing VM from regular to preemptible or the other way around. To get a preemptible VM, create a new one.`}),`\n`,_jsx(Heading,{level:`2`,id:`supported-platforms`,children:`Supported platforms`}),`\n`,_jsxs(_components.p,{children:[`You can run preemptible VMs on all `,_jsx(_components.a,{href:`/compute/virtual-machines/types`,children:`VM platforms with GPUs`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`To get an up-to-date list of platforms, run the `,_jsx(_components.code,{children:`nebius compute platform list`}),` `,_jsx(_components.a,{href:`/cli/reference/compute/platform/list`,children:`command`}),`. The platforms available for preemptible VMs are marked as `,_jsx(_components.code,{children:`allowed_for_preemptibles: true`}),`.`]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsx(_components.p,{children:`If you use the web console, you don’t need to complete any prerequisites.`}),`\n`,_jsxs(Tabs,{group:`interfaces`,children:[_jsx(Tab,{title:`CLI`,id:`cli`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/cli/install`,children:`Install and configure`}),` the Nebius AI Cloud CLI.`]})}),_jsx(Tab,{title:`Terraform`,id:`terraform`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/terraform-provider/install`,children:`Install and configure`}),` the Nebius AI Cloud provider for Terraform.`]})}),_jsx(Tab,{title:`Go SDK`,id:`go-sdk`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/sdk/go/install-auth`,children:`Install and initialize the Nebius SDK for Go`}),`.`]})}),_jsx(Tab,{title:`Python SDK`,id:`python-sdk`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/sdk/python/install-auth`,children:`Install and initialize the Nebius SDK for Python`}),`.`]})}),_jsx(Tab,{title:`JavaScript SDK`,id:`javascript-sdk`,children:_jsxs(_components.p,{children:[_jsx(_components.a,{href:`/sdk/javascript/install-auth`,children:`Install and initialize the Nebius SDK for JavaScript`}),`.`]})})]}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-create-a-preemptible-vm`,children:`How to create a preemptible VM`}),`\n`,_jsxs(_components.p,{children:[`When you create a preemptible VM, configure one of the `,_jsx(_components.a,{href:`/signup-billing/pricing-policy`,children:`spot pricing`}),` settings. You can select a pricing policy to set the maximum price, or follow the spot price to have the VM run at the current spot price.`]}),`\n`,_jsxs(Tabs,{group:`interfaces`,children:[_jsx(Tab,{title:`Web console`,id:`web-console`,children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In the sidebar, go to `,_jsx(Icon,{icon:`https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/sidebar/compute.svg?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=52c92e3599dad24d0df16eab24e50577`,\"data-og-width\":`16`,width:`16`,\"data-og-height\":`16`,height:`16`,\"data-path\":`_assets/sidebar/compute.svg`,\"data-optimize\":`true`,\"data-opv\":`3`,srcset:`https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/sidebar/compute.svg?w=280\u0026fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8d844dadca250dbb58323a092e2f53fc 280w, https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/sidebar/compute.svg?w=560\u0026fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=f0ed3d7b165f2c1174704bdf1ed6c327 560w, https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/sidebar/compute.svg?w=840\u0026fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=c1f6d4851fe7850cc810e7b0e4f23e36 840w, https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/sidebar/compute.svg?w=1100\u0026fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=e93f4575f43bcf65c4d2f0fb09d5984e 1100w, https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/sidebar/compute.svg?w=1650\u0026fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=b39443035cb3a48006800086a345b3bd 1650w, https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/sidebar/compute.svg?w=2500\u0026fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=7beddf2e06093d42ccfd6159ae9c71e9 2500w`}),` `,_jsx(_components.strong,{children:`Compute`}),` → `,_jsx(_components.strong,{children:`Virtual machines`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Click `,_jsx(_components.strong,{children:`Create resource`}),` → `,_jsx(_components.strong,{children:`Virtual machine`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`If you have `,_jsx(_components.a,{href:`/overview/limits/capacity-block-groups`,children:`capacity block groups`}),`, on the `,_jsx(_components.strong,{children:`General`}),` step, select `,_jsx(_components.strong,{children:`Pay-as-you-go VM`}),`. If you do not have capacity block groups, the wizard skips the `,_jsx(_components.strong,{children:`General`}),` step and opens `,_jsx(_components.strong,{children:`Compute`}),` instead.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`On the `,_jsx(_components.strong,{children:`Compute`}),` step, select `,_jsx(_components.strong,{children:`With GPUs`}),` or `,_jsx(_components.strong,{children:`Without GPUs`}),`, set the VM type to `,_jsx(_components.strong,{children:`Preemptible`}),`, and select a `,_jsx(_components.a,{href:`/compute/virtual-machines/types`,children:`platform and preset`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`In `,_jsx(_components.strong,{children:`Max price`}),`, select or create a `,_jsx(_components.a,{href:`/signup-billing/manage-pricing-policy`,children:`pricing policy`}),`, or choose `,_jsx(_components.strong,{children:`Follows spot price`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`For more information about the full wizard, see `,_jsx(_components.a,{href:`/compute/virtual-machines/create#create-a-vm-web-console`,children:`How to create a virtual machine`}),`.`]}),`\n`]}),`\n`]})}),_jsxs(Tab,{title:`CLI`,id:`cli-2`,children:[_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/compute/virtual-machines/create`,children:`creating a VM`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select a `,_jsx(_components.a,{href:`#supported-platforms`,children:`platform that supports preemptible VMs`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Add one of the following `,_jsx(_components.a,{href:`/signup-billing/pricing-policy`,children:`spot pricing`}),` parameters. The example command below uses `,_jsx(_components.code,{children:`--follows-spot-price`}),`:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--spot-pricing-policy-id \u003cpricing_policy_ID>`}),`: Select a pricing policy that sets the maximum spot price. For information on how to get a pricing policy ID or create a new policy, see `,_jsx(_components.a,{href:`/signup-billing/manage-pricing-policy`,children:`Managing pricing policies`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`--follows-spot-price`}),`: Accept the current spot price without setting a maximum spot price.`]}),`\n`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Add the following parameters to the `,_jsx(_components.code,{children:`nebius compute instance create`}),` command:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`5`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`5`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`nebius`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` compute`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` instance`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` create`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` ...`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --recovery-policy`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` fail`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --preemptible-on-preemption`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` stop`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --follows-spot-price`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`In this configuration, the following values are specified:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`recovery_policy`}),` defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the `,_jsx(_components.code,{children:`FAIL`}),` value, which stops the VM. They do not support the `,_jsx(_components.code,{children:`RECOVER`}),` value, which tries to restart the VM. Setting `,_jsx(_components.code,{children:`RECOVER`}),` for a preemptible VM results in an error.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`on_preemption`}),` specifies what happens when the VM is preempted. The only supported value is `,_jsx(_components.code,{children:`STOP`}),`: Compute stops the VM without deleting or restarting it.`]}),`\n`]}),`\n`]}),`\n`]}),_jsxs(_components.p,{children:[`For details about the `,_jsx(`code`,{children:`nebius compute instance create`}),` command, see the `,_jsx(_components.a,{href:`/cli/reference/compute/instance/create`,children:`Nebius AI Cloud CLI reference`}),`.`]})]}),_jsx(Tab,{title:`Terraform`,id:`terraform-2`,children:_jsxs(_components.ol,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`When creating a VM, select a `,_jsx(_components.a,{href:`#supported-platforms`,children:`platform that supports preemptible VMs`}),` and set the following parameters in the `,_jsx(_components.code,{children:`nebius_compute_v1_instance`}),` resource:`]}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`8`,language:`hcl`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`hcl`,children:_jsxs(_components.code,{language:`hcl`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`resource`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"nebius_compute_v1_instance\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` \"\u003cVM_name>\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` ...`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` recovery_policy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"FAIL\"`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` preemptible`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` on_preemption`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"STOP\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` follows_spot_price`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {}`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.code,{children:`...`}),` stands for the other attributes of the VM configuration. In this configuration, the following values are specified:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`recovery_policy`}),` defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the `,_jsx(_components.code,{children:`FAIL`}),` value, which stops the VM. They do not support the `,_jsx(_components.code,{children:`RECOVER`}),` value, which tries to restart the VM. Setting `,_jsx(_components.code,{children:`RECOVER`}),` for a preemptible VM results in an error.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`on_preemption`}),` specifies what happens when the VM is preempted. The only supported value is `,_jsx(_components.code,{children:`STOP`}),`: Compute stops the VM without deleting or restarting it.`]}),`\n`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`follows_spot_price`}),` accepts the current spot price without setting a maximum price. To set a maximum price, use `,_jsx(_components.code,{children:`spot_pricing_policy = { id = \"\u003cpricing_policy_ID>\" }`}),` with the ID of a `,_jsx(_components.a,{href:`/signup-billing/manage-pricing-policy`,children:`pricing policy`}),` instead.`]}),`\n`]}),`\n`,_jsxs(_components.p,{children:[`For the full resource reference, see `,_jsx(_components.a,{href:`/terraform-provider/reference/resources/compute_v1_instance`,children:`nebius_compute_v1_instance`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Check that the configuration is correct:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`terraform`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` validate`})]}),`\n`]})})}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Apply the changes:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`1`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`1`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`terraform`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` apply`})]}),`\n`]})})}),`\n`]}),`\n`]})}),_jsxs(Tab,{title:`Go SDK`,id:`go-sdk-2`,children:[_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/compute/virtual-machines/create`,children:`creating a VM`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select a `,_jsx(_components.a,{href:`#supported-platforms`,children:`platform that supports preemptible VMs`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Set the preemptible VM parameters in the code:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`50`,language:`go`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`go`,children:_jsxs(_components.code,{language:`go`,numberOfLines:`50`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resources`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ResourcesSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Platform`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpu-l40s-a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Size`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ResourcesSpec_Preset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Preset`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1gpu-24vcpu-96gb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bootDisk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`AttachedDiskSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AttachMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`AttachedDiskSpec_READ_WRITE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Type`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`AttachedDiskSpec_ExistingDisk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExistingDisk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ExistingDisk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Id`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bootDiskID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`networkInterface`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`NetworkInterfaceSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eth0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` SubnetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`subnetID`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` IpAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`IPAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PublicIpAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PublicIPAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instanceSpec`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`InstanceSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Resources`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`resources`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` BootDisk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`bootDisk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` NetworkInterfaces`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`*`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`NetworkInterfaceSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` networkInterface`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` RecoveryPolicy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`InstanceRecoveryPolicy_FAIL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Preemptible`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`PreemptibleSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` OnPreemption`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`PreemptibleSpec_STOP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PricingModel`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`InstanceSpec_FollowsSpotPrice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` FollowsSpotPrice`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`FollowsSpotPriceSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`preemptibleOperation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` :=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Services`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`V1`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` Instance`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`().`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ctx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` \u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`compute`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`CreateInstanceRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Metadata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`\u0026`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`common`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#4EC9B0`},children:`ResourceMetadata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Name`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"preemptible-instance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` Spec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`instanceSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` )`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`if`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` _`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` preemptibleOperation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`Wait`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`ctx`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`); `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`err`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` !=`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` nil`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` return`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` err`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`In this configuration, the following values are specified:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`RecoveryPolicy`}),` defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the `,_jsx(_components.code,{children:`FAIL`}),` value, which stops the VM. They do not support the `,_jsx(_components.code,{children:`RECOVER`}),` value, which tries to restart the VM. Setting `,_jsx(_components.code,{children:`RECOVER`}),` for a preemptible VM results in an error.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`OnPreemption`}),` specifies what happens when the VM is preempted. The only supported value is `,_jsx(_components.code,{children:`STOP`}),`: Compute stops the VM without deleting or restarting it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`FollowsSpotPrice`}),` accepts the current spot price without setting a maximum price. To set a maximum price, use `,_jsx(_components.code,{children:`SpotPricingPolicy`}),` with the ID of a `,_jsx(_components.a,{href:`/signup-billing/manage-pricing-policy`,children:`pricing policy`}),` instead.`]}),`\n`]}),`\n`]}),`\n`]})]}),_jsxs(Tab,{title:`Python SDK`,id:`python-sdk-2`,children:[_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/compute/virtual-machines/create`,children:`creating a VM`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select a `,_jsx(_components.a,{href:`#supported-platforms`,children:`platform that supports preemptible VMs`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Set the preemptible VM parameters in the code:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`36`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`36`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`instance_service `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` InstanceServiceClient(sdk)`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`preemptible_operation `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` instance_service.create(`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` CreateInstanceRequest(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` metadata`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ResourceMetadata(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"preemptible-instance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` spec`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`InstanceSpec(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` resources`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ResourcesSpec(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` platform`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"gpu-l40s-a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` preset`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"1gpu-24vcpu-96gb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` boot_disk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`AttachedDiskSpec(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` attach_mode`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` AttachedDiskSpec.AttachMode.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`READ_WRITE`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` existing_disk`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`ExistingDisk(`}),_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:`id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`boot_disk_id),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` network_interfaces`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`[`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` NetworkInterfaceSpec(`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` name`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"eth0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` subnet_id`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`subnet_id,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` ip_address`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`IPAddress(),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` public_ip_address`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`PublicIPAddress(),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` recovery_policy`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`InstanceRecoveryPolicy.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`FAIL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` preemptible`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`PreemptibleSpec(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` on_preemption`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` PreemptibleSpec.PreemptionPolicy.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#D4D4D4`},children:`STOP`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` follows_spot_price`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`FollowsSpotPriceSpec(),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` preemptible_operation.wait()`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`In this configuration, the following values are specified:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`recovery_policy`}),` defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the `,_jsx(_components.code,{children:`FAIL`}),` value, which stops the VM. They do not support the `,_jsx(_components.code,{children:`RECOVER`}),` value, which tries to restart the VM. Setting `,_jsx(_components.code,{children:`RECOVER`}),` for a preemptible VM results in an error.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`on_preemption`}),` specifies what happens when the VM is preempted. The only supported value is `,_jsx(_components.code,{children:`STOP`}),`: Compute stops the VM without deleting or restarting it.`]}),`\n`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`follows_spot_price`}),` accepts the current spot price without setting a maximum price. To set a maximum price, use `,_jsx(_components.code,{children:`spot_pricing_policy`}),` with the ID of a `,_jsx(_components.a,{href:`/signup-billing/manage-pricing-policy`,children:`pricing policy`}),` instead.`]}),`\n`]}),`\n`]}),`\n`]})]}),_jsxs(Tab,{title:`JavaScript SDK`,id:`javascript-sdk-2`,children:[_jsxs(_components.p,{children:[`When `,_jsx(_components.a,{href:`/compute/virtual-machines/create`,children:`creating a VM`}),`:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[`Select a `,_jsx(_components.a,{href:`#supported-platforms`,children:`platform that supports preemptible VMs`}),`.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsx(_components.p,{children:`Set the preemptible VM parameters in the code:`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`45`,language:`typescript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`typescript`,children:_jsxs(_components.code,{language:`typescript`,numberOfLines:`45`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` instanceService`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:` new`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` InstanceService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`sdk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` preemptibleOperation`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` instanceService`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` CreateInstanceRequest`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` metadata:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ResourceMetadata`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"preemptible-instance\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` spec:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` InstanceSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` resources:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ResourcesSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` platform:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"gpu-l40s-a\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` size:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $case:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"preset\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` preset:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"1gpu-24vcpu-96gb\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bootDisk:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AttachedDiskSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` attachMode:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` AttachedDiskSpec_AttachMode`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`READ_WRITE`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` type:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $case:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"existingDisk\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` existingDisk:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ExistingDisk`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` id:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` bootDiskId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` networkInterfaces:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` NetworkInterfaceSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` name:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"eth0\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subnetId`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` ipAddress:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` IPAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({}),`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` publicIpAddress:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PublicIPAddress`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({}),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` recoveryPolicy:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` InstanceRecoveryPolicy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`FAIL`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` preemptible:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PreemptibleSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` onPreemption:`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` PreemptibleSpec_PreemptionPolicy`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:`STOP`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` pricingModel:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` $case:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"followsSpotPrice\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` followsSpotPrice:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` FollowsSpotPriceSpec`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`create`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({}),`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`).`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`;`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` preemptibleOperation`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`wait`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`In this configuration, the following values are specified:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`recoveryPolicy`}),` defines what Compute does with a VM after it’s preempted or fails. Preemptible VMs support only the `,_jsx(_components.code,{children:`FAIL`}),` value, which stops the VM. They do not support the `,_jsx(_components.code,{children:`RECOVER`}),` value, which tries to restart the VM. Setting `,_jsx(_components.code,{children:`RECOVER`}),` for a preemptible VM results in an error.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`onPreemption`}),` specifies what happens when the VM is preempted. The only supported value is `,_jsx(_components.code,{children:`STOP`}),`: Compute stops the VM without deleting or restarting it.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`followsSpotPrice`}),` accepts the current spot price without setting a maximum price. To set a maximum price, use `,_jsx(_components.code,{children:`spotPricingPolicy`}),` with the ID of a `,_jsx(_components.a,{href:`/signup-billing/manage-pricing-policy`,children:`pricing policy`}),` instead.`]}),`\n`]}),`\n`]}),`\n`]})]})]}),`\n`,_jsx(Tip,{children:_jsx(_components.p,{children:`A dynamic IP address is released when a preemptible VM stops. To keep your workload stable, consider using a static IP address instead.`})}),`\n`,_jsx(Heading,{level:`2`,id:`how-to-continue-working-with-a-stopped-preemptible-vm`,children:`How to continue working with a stopped preemptible VM`}),`\n`,_jsxs(_components.p,{children:[`When Compute stops a preemptible VM, it preserves all data on the attached volumes. If the max price in the VM’s pricing policy is lower than the current spot price, change the VM’s spot pricing setting or wait for the price to drop. To resume work, `,_jsx(_components.a,{href:`/compute/virtual-machines/stop-start`,children:`start the VM`}),` again. If you used a dynamic IP address, update all systems that depended on the old IP address.`]}),`\n`,_jsx(_components.p,{children:`If the VM uses local SSD disks, use them with caution. Local SSD disks are ephemeral, meaning any data stored on them will be lost when the preemptible VM stops.`}),`\n`,_jsxs(_components.p,{children:[`You can also `,_jsx(_components.a,{href:`/compute/virtual-machines/create`,children:`create a regular VM`}),` with the same attached volumes.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Preemptible virtual machines","sidebarTitle":"Preemptible VMs","description":null,"href":"/compute/virtual-machines/preemptible"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Supported platforms","slug":"supported-platforms","depth":2,"children":[]},{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"How to create a preemptible VM","slug":"how-to-create-a-preemptible-vm","depth":2,"children":[]},{"title":"How to continue working with a stopped preemptible VM","slug":"how-to-continue-working-with-a-stopped-preemptible-vm","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":["/_mintlify/custom/nebius-ai-cloud/15a5fe135c50f620/_assets/js/fix_index.js","/_mintlify/custom/nebius-ai-cloud/3370e3d5d76d525a/_assets/js/nav-tabs-scroll.js","/_mintlify/custom/nebius-ai-cloud/0d2783b7f04d92f8/_assets/js/onetrust.js","/_mintlify/custom/nebius-ai-cloud/d7115c46a3daa627/_assets/js/reo-dev.js"],"subdomain":"nebius-ai-cloud","siteName":"Nebius AI Cloud","title":"Preemptible virtual machines - Nebius AI Cloud","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-16T13:11:17.461Z","originalFileLocation":"compute/virtual-machines/preemptible.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Nebius AI Cloud\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Preemptible virtual machines - Nebius AI Cloud\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Nebius AI Cloud\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.nebius.com/compute/virtual-machines/preemptible\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://nebius-ai-cloud.mintlify.site/_mintlify/api/og/v2?division=Creating+virtual+machines\u0026amp;title=Preemptible+virtual+machines\u0026amp;theme=387b6c74eb6a08dbde74605f\u0026amp;signature=34e7871e506ce9a463b0b40af2d851becd7cd09a4270c5535ef33bba6d6dfa3f\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Preemptible virtual machines - Nebius AI Cloud\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://nebius-ai-cloud.mintlify.site/_mintlify/api/og/v2?division=Creating+virtual+machines\u0026amp;title=Preemptible+virtual+machines\u0026amp;theme=387b6c74eb6a08dbde74605f\u0026amp;signature=34e7871e506ce9a463b0b40af2d851becd7cd09a4270c5535ef33bba6d6dfa3f\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/nebius-ai-cloud/0Ek9sP7Ja4is5z8_/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Nebius AI Cloud\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6057f7\">\u003cmeta data-mint-head name=\"google-site-verification\" content=\"p7dnMrsuoFlnyF9Oo0Ys0xPbeRCpQ9MedGsgi7nBOaI\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.nebius.com/compute/virtual-machines/preemptible\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/compute/virtual-machines/preemptible.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.nebius.com/#organization\",\"name\":\"Nebius AI Cloud\",\"url\":\"https://docs.nebius.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/nebius-ai-cloud/Ig0U9IUMcvPL0NXJ/_assets/logo/logo.svg?fit=max\u0026auto=format\u0026n=Ig0U9IUMcvPL0NXJ\u0026q=85\u0026s=8dd637468a6b53f6c1af6387d11e76c7\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.nebius.com#website\",\"name\":\"Nebius AI Cloud\",\"url\":\"https://docs.nebius.com\",\"publisher\":{\"@id\":\"https://docs.nebius.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.nebius.com/compute/virtual-machines/preemptible#webpage\",\"url\":\"https://docs.nebius.com/compute/virtual-machines/preemptible\",\"name\":\"Preemptible virtual machines\",\"dateModified\":\"2026-11-16T13:11:17.461Z\",\"isPartOf\":{\"@id\":\"https://docs.nebius.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.nebius.com/compute/virtual-machines/preemptible#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.nebius.com/compute/virtual-machines/preemptible#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Virtual machines\",\"item\":\"https://docs.nebius.com/compute\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Creating virtual machines\",\"item\":\"https://docs.nebius.com/compute/virtual-machines/create\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Preemptible virtual machines\",\"item\":\"https://docs.nebius.com/compute/virtual-machines/preemptible\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.nebius.com/compute/virtual-machines/preemptible#article\",\"headline\":\"Preemptible virtual machines\",\"name\":\"Preemptible virtual machines\",\"url\":\"https://docs.nebius.com/compute/virtual-machines/preemptible\",\"mainEntityOfPage\":{\"@id\":\"https://docs.nebius.com/compute/virtual-machines/preemptible#webpage\"},\"dateModified\":\"2026-11-16T13:11:17.461Z\",\"publisher\":{\"@id\":\"https://docs.nebius.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.nebius.com#website\"}}]}\u003c/script>","agentPointerHref":"/compute/virtual-machines/preemptible.md","siteName":"Nebius AI Cloud","nav":{"global":null,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":""}]},{"tab":"Infrastructure","menu":[{"item":"Compute","pages":[{"group":"Virtual machines","pages":[{"title":"Compute","sidebarTitle":"Overview","href":"/compute"},{"group":"Getting started","pages":[{"title":"Getting started with Compute: Create your first Nebius AI Cloud virtual machine","sidebarTitle":"General work with VMs","href":"/compute/quickstart"},{"title":"Getting started with Compute: Host an LLM on Nebius AI Cloud","sidebarTitle":"Hosting an AI model","href":"/compute/quickstart-host-model"}]},{"group":"Types of virtual machines and GPUs","pages":[{"title":"Types of virtual machines and GPUs in Nebius AI Cloud","sidebarTitle":"All platforms and presets","href":"/compute/virtual-machines/types"},{"title":"How to find out platforms and presets available in a project","sidebarTitle":"Listing platforms and presets in a project","href":"/compute/virtual-machines/list-platforms"}]},{"group":"Creating virtual machines","pages":[{"title":"How to create a virtual machine in Nebius AI Cloud","sidebarTitle":"Regular VMs","description":null,"href":"/compute/virtual-machines/create"},{"title":"Preemptible virtual machines","sidebarTitle":"Preemptible VMs","href":"/compute/virtual-machines/preemptible"}]},{"group":"Managing virtual machines","pages":[{"title":"How to update settings of a virtual machine in Nebius AI Cloud","sidebarTitle":"Updating VMs","description":null,"href":"/compute/virtual-machines/update"},{"title":"Deleting a Compute virtual machine","sidebarTitle":"Deleting VMs","href":"/compute/virtual-machines/delete"},{"title":"How to access VM metadata","sidebarTitle":"Getting VM metadata","href":"/compute/virtual-machines/instance-metadata"},{"title":"Parameters of a virtual machine configuration in Compute","sidebarTitle":"Parameters of a VM configuration","href":"/compute/virtual-machines/params"}]},{"group":"Maintenance","pages":[{"title":"Maintenance of Compute virtual machines","sidebarTitle":"Overview","href":"/compute/virtual-machines/maintenance"},{"title":"Maintenance reasons in Nebius AI Cloud","sidebarTitle":"Maintenance reason codes","href":"/compute/virtual-machines/maintenance-reasons"},{"title":"How to stop and start Compute virtual machines","sidebarTitle":"Stopping and starting VMs","href":"/compute/virtual-machines/stop-start"},{"title":"Lifecycle of a Compute virtual machine","sidebarTitle":"Lifecycle and statuses of VMs","href":"/compute/virtual-machines/lifecycle"},{"title":"How to enable automatic security updates","sidebarTitle":"Enabling automatic security updates","href":"/compute/storage/automatic-updates"}]},{"group":"VM networking","pages":[{"title":"Private and public IP addresses of Compute virtual machines","sidebarTitle":"IP addresses","href":"/compute/virtual-machines/network"},{"title":"Tuning TCP window sizes on Linux virtual machines","sidebarTitle":"TCP window tuning","href":"/compute/virtual-machines/tcp-window-tuning"},{"title":"FQDN and hostname of a virtual machine","sidebarTitle":"FQDN and hostname","href":"/compute/virtual-machines/fqdn"},{"title":"How to generate SSH keys","sidebarTitle":"Generating SSH keys","href":"/compute/virtual-machines/ssh-keys"},{"title":"How to connect to virtual machines in Nebius AI Cloud","sidebarTitle":"Connecting to VMs","href":"/compute/virtual-machines/connect"},{"title":"Creating a jump server with WireGuard installed on it","sidebarTitle":"🧑🏫 Tutorial: Creating a WireGuard jump server","href":"/compute/virtual-machines/wireguard"}]},{"group":"Clustering VMs with InfiniBand™","pages":[{"title":"InfiniBand™ networking for Compute virtual machines with GPUs","sidebarTitle":"Overview","href":"/compute/clusters/gpu/index"},{"title":"How to test a GPU cluster physical state in Compute","sidebarTitle":"Testing InfiniBand connection","href":"/compute/clusters/gpu/test"},{"group":"InfiniBand topology","pages":[{"title":"InfiniBand™ topology of a GPU cluster","sidebarTitle":"Overview","href":"/compute/clusters/gpu/topology/index"},{"title":"Working with InfiniBand™ topology of a GPU cluster","sidebarTitle":"Working with topology","href":"/compute/clusters/gpu/topology/manage"}]}]},{"group":"Capacity","pages":[{"title":"Capacity advisor for GPU availability in Nebius AI Cloud","sidebarTitle":"Capacity advisor","href":"/compute/virtual-machines/capacity-advisor"},{"title":"Capacity reservations for Compute virtual machines","sidebarTitle":"Capacity reservations","href":"/compute/virtual-machines/reservations"}]},{"title":"Running AI workloads on VMs","sidebarTitle":"Running AI workloads on VMs","href":"/compute/clusters/ai-workloads"},{"group":"Storage on VMs","pages":[{"title":"Types of storage volumes in Compute","sidebarTitle":"Volume types","href":"/compute/storage/types"},{"title":"Managing Compute volumes","sidebarTitle":"Managing volumes","href":"/compute/storage/manage"},{"group":"Boot disk images","pages":[{"title":"Boot disk images for Compute virtual machines","sidebarTitle":"Overview","href":"/compute/storage/boot-disk-images"},{"title":"Creating custom boot disk images","sidebarTitle":"Creating custom disk images","href":"/compute/storage/custom-disk-images"},{"title":"Creating boot disk images with Packer","sidebarTitle":"Creating images with Packer","href":"/compute/storage/packer"},{"title":"Importing your own image into Compute","sidebarTitle":"Importing images","href":"/compute/storage/import-image"},{"title":"Recommendations for configuring custom images in Compute","sidebarTitle":"Recommendations for custom images","href":"/compute/storage/image-recommendations"}]},{"title":"Managing disk snapshots in Compute","sidebarTitle":"Disk snapshots","href":"/compute/storage/disk-snapshots"},{"title":"Attaching and mounting Compute volumes to VMs","sidebarTitle":"Attaching and mounting volumes to VMs","href":"/compute/storage/use"},{"title":"How to detach additional volumes from virtual machines","sidebarTitle":"Detaching volumes from VMs","href":"/compute/storage/detach-volume"},{"title":"Exporting data from Compute disks and shared filesystems","sidebarTitle":"Exporting data from volumes","href":"/compute/storage/export"},{"title":"Using local SSD disks on Compute virtual machines","sidebarTitle":"Using local SSD disks","href":"/compute/storage/local-disks"}]},{"group":"Monitoring","pages":[{"group":"Monitoring virtual machines","pages":[{"title":"Monitoring virtual machines in Nebius AI Cloud","sidebarTitle":"VM metrics","href":"/compute/monitoring/virtual-machines"},{"title":"Viewing serial logs of virtual machines","sidebarTitle":"VM serial logs","href":"/compute/monitoring/serial-logs"}]},{"title":"Monitoring volumes in Nebius AI Cloud","sidebarTitle":"Monitoring volumes","href":"/compute/monitoring/volumes"}]},{"group":"Troubleshooting","pages":[{"title":"Using the serial console for virtual machines in Nebius AI Cloud","sidebarTitle":"Serial console","href":"/compute/virtual-machines/serial-console"},{"title":"\"Not enough resources\" error for virtual machines in Nebius AI Cloud","sidebarTitle":"\"Not enough resources\" error","href":"/compute/virtual-machines/not-enough-resources"},{"title":"CUDA initialization error on virtual machines in Nebius AI Cloud","sidebarTitle":"CUDA initialization error","href":"/compute/virtual-machines/cuda-init-error"},{"title":"Charging for a virtual machine that was stopped by using Linux commands","sidebarTitle":"Charging for a VM stopped with Linux commands","href":"/compute/virtual-machines/stopped-with-linux-commands"},{"title":"How to collect diagnostic logs from Compute virtual machines","sidebarTitle":"Collecting diagnostic logs","href":"/compute/virtual-machines/logs"},{"title":"Virtual machine is unreachable due to a Docker subnet conflict","sidebarTitle":"Docker subnet conflict","href":"/compute/virtual-machines/docker-subnet-conflict"},{"title":"How to inspect a VM and attach its boot disk to another VM","sidebarTitle":"Inspect a boot disk from another VM","href":"/compute/virtual-machines/inspect-boot-disk"}]},{"group":"Resources","pages":[{"title":"Quotas in Compute","sidebarTitle":"Quotas","href":"/compute/resources/quotas-limits"},{"title":"Compute pricing in Nebius AI Cloud","sidebarTitle":"Pricing","href":"/compute/resources/pricing"}]}]},{"group":"Slurm and Soperator in Nebius AI Cloud","pages":[{"title":"Slurm and Soperator in Nebius AI Cloud","sidebarTitle":"Overview","href":"/slurm-soperator/index"},{"group":"About Slurm and Soperator","pages":[{"title":"Combining Slurm and Kubernetes by using Soperator","sidebarTitle":"Why Slurm and Soperator?","href":"/slurm-soperator/overview/why-slurm-soperator"},{"title":"Soperator cluster architecture","sidebarTitle":"Soperator cluster architecture","href":"/slurm-soperator/overview/architecture"}]},{"title":"Deploying Soperator clusters","sidebarTitle":"Deployment methods","href":"/slurm-soperator/deploy/overview"},{"group":"Capacity management","pages":[{"title":"Ephemeral nodes in Soperator","sidebarTitle":"Ephemeral nodes","href":"/slurm-soperator/capacity/ephemeral-nodes"},{"title":"Moving capacity between training and inference workloads","sidebarTitle":"Moving capacity","href":"/slurm-soperator/capacity/move-capacity"}]},{"group":"Managed Service for Soperator","pages":[{"title":"Creating and deleting Soperator clusters in Managed Service for Soperator","sidebarTitle":"Creating and deleting clusters","href":"/slurm-soperator/managed-soperator/manage"},{"title":"Stopping and starting Soperator clusters in Managed Service for Soperator","sidebarTitle":"Stopping and starting clusters","href":"/slurm-soperator/managed-soperator/stop-start"},{"title":"Managed Service for Soperator service nodes","sidebarTitle":"Service nodes","href":"/slurm-soperator/managed-soperator/service-nodes"}]},{"title":"Connecting to login and worker nodes","sidebarTitle":"Connecting to login and worker nodes","href":"/slurm-soperator/clusters/connect"},{"group":"Jobs","pages":[{"title":"Running Slurm batch jobs","sidebarTitle":"Running batch jobs","href":"/slurm-soperator/jobs/index"},{"group":"Running containerized jobs","pages":[{"title":"Running jobs in containers in Soperator clusters","sidebarTitle":"Overview","href":"/slurm-soperator/jobs/containers/index"},{"title":"Running jobs in containers by using Enroot and Pyxis","sidebarTitle":"Enroot and Pyxis","href":"/slurm-soperator/jobs/containers/pyxis-enroot"},{"title":"Running jobs in containers by using Apptainer","sidebarTitle":"Apptainer","href":"/slurm-soperator/jobs/containers/apptainer"},{"title":"Running jobs in containers by using Docker","sidebarTitle":"Docker","href":"/slurm-soperator/jobs/containers/docker"}]},{"title":"Managing jobs in Soperator clusters","sidebarTitle":"Managing jobs and queue","href":"/slurm-soperator/jobs/manage"}]},{"group":"Performance and reliability","pages":[{"title":"Running the all-reduce NCCL performance test in Soperator clusters","sidebarTitle":"Running the all-reduce NCCL test","href":"/slurm-soperator/jobs/examples/nccl-all-reduce"},{"title":"Health management of worker nodes in Soperator clusters","sidebarTitle":"Health management of worker nodes","href":"/slurm-soperator/worker-nodes-health"}]},{"title":"Downloading data in Soperator clusters","sidebarTitle":"Downloading data","href":"/slurm-soperator/storage/download-data"},{"title":"Managing file access in a Soperator cluster","sidebarTitle":"Managing file access","href":"/slurm-soperator/storage/manage-access"},{"title":"Managing users in a Soperator cluster","sidebarTitle":"Managing users","href":"/slurm-soperator/users/manage"},{"group":"Monitoring","pages":[{"title":"How to monitor job and node statuses in a Soperator cluster","sidebarTitle":"Monitoring job and node statuses","href":"/slurm-soperator/monitoring/statuses"},{"title":"Monitoring metrics of Soperator clusters","sidebarTitle":"Monitoring metrics","href":"/slurm-soperator/monitoring/metrics"},{"title":"Viewing logs of Soperator clusters","sidebarTitle":"Viewing logs","href":"/slurm-soperator/monitoring/logs"}]},{"group":"Resources","pages":[{"title":"Quotas in Managed Service for Soperator","sidebarTitle":"Managed Soperator quotas","href":"/slurm-soperator/managed-soperator/resources/quotas"},{"title":"Pricing in Managed Service for Soperator","sidebarTitle":"Managed Soperator pricing","href":"/slurm-soperator/managed-soperator/resources/pricing"}]}]},{"group":"Managed Service for Kubernetes®","pages":[{"title":"Managed Service for Kubernetes®","sidebarTitle":"Overview","href":"/kubernetes/index"},{"title":"How to get started with Managed Service for Kubernetes®: Create your first cluster for Kubernetes","sidebarTitle":"Getting started","href":"/kubernetes/quickstart"},{"title":"Components in Managed Service for Kubernetes®","sidebarTitle":"Cluster components","href":"/kubernetes/components"},{"group":"Kubernetes versions","pages":[{"title":"Kubernetes® versions in Managed Service for Kubernetes","sidebarTitle":"Overview","href":"/kubernetes/versions"},{"title":"Setting and upgrading Kubernetes® versions in Managed Service for Kubernetes","sidebarTitle":"Managing versions","href":"/kubernetes/manage-versions"},{"title":"Kubernetes® version deprecation policy in Managed Service for Kubernetes","sidebarTitle":"Version deprecation","href":"/kubernetes/version-deprecation"}]},{"group":"Working with clusters and nodes","pages":[{"title":"How to create and modify Managed Service for Kubernetes® clusters","sidebarTitle":"Creating and modifying clusters","href":"/kubernetes/clusters/manage"},{"title":"Creating and modifying Managed Service for Kubernetes® node groups","sidebarTitle":"Creating and modifying node groups","href":"/kubernetes/node-groups/manage"},{"title":"kubeReserved values on worker nodes in Managed Service for Kubernetes®","sidebarTitle":"kubeReserved values on worker nodes","href":"/kubernetes/node-groups/kube-reserved"},{"title":"Capacity reservations for Managed Service for Kubernetes® node groups","sidebarTitle":"Capacity reservations for node groups","href":"/kubernetes/node-groups/reservations"}]},{"group":"Maintenance","pages":[{"title":"Maintenance in Managed Service for Kubernetes®","sidebarTitle":"Overview","href":"/kubernetes/maintenance/index"},{"title":"Managing maintenance in Managed Service for Kubernetes®","sidebarTitle":"Managing maintenance","href":"/kubernetes/maintenance/manage"},{"title":"Health checks and automatic recovery of Managed Service for Kubernetes® nodes","sidebarTitle":"Health checks and automatic recovery of nodes","href":"/kubernetes/maintenance/health-checks"},{"title":"How to enable or disable health checks in a Managed Service for Kubernetes® cluster","sidebarTitle":"Enabling or disabling health checks","href":"/kubernetes/maintenance/enable-disable-health-checks"}]},{"group":"Networking","pages":[{"title":"How to connect to Managed Service for Kubernetes® clusters using kubectl","sidebarTitle":"Connecting to clusters with kubectl","href":"/kubernetes/connect"},{"title":"Network requirements for Managed Service for Kubernetes® clusters","sidebarTitle":"Network requirements","href":"/kubernetes/networking/requirements"},{"title":"Access restriction for a public endpoint of a Managed Service for Kubernetes® cluster","sidebarTitle":"Access restriction for the cluster's public endpoint","href":"/kubernetes/networking/limit-access-to-public-endpoint"},{"group":"Security groups","pages":[{"title":"Security groups in Managed Service for Kubernetes®","sidebarTitle":"Overview","href":"/kubernetes/networking/security-groups"},{"title":"How to attach security groups to a node group in Managed Service for Kubernetes®","sidebarTitle":"Attaching security groups","href":"/kubernetes/networking/manage-security-groups"}]},{"title":"Exposing services with load balancers","sidebarTitle":"Exposing services with load balancers","href":"/kubernetes/clusters/load-balancer"},{"title":"How to use a non-default subnet for Managed Service for Kubernetes® clusters and node groups","sidebarTitle":"Using a non-default subnet","href":"/kubernetes/networking/non-default-subnet"},{"title":"How to create a fixed set of public IP addresses for a node group","sidebarTitle":"Assigning public IP addresses from a fixed set","href":"/kubernetes/networking/defined-ips"},{"title":"How to convert a dynamically assigned public IP address to a reusable allocation","sidebarTitle":"Converting dynamic IP addresses to reusable allocations","href":"/kubernetes/networking/dynamic-to-static"},{"title":"Networking add-ons in Managed Service for Kubernetes®","sidebarTitle":"CoreDNS and Cilium add-ons","href":"/kubernetes/networking/add-ons"},{"title":"Setting up NodeLocal DNSCache with Cilium network policy controller in Managed Service for Kubernetes®","sidebarTitle":"🧑🏫 Tutorial: Setting up NodeLocal DNSCache with Cilium network policy controller","href":"/kubernetes/networking/nodelocal-dns-cache"}]},{"group":"Access from identity providers","pages":[{"title":"Authentication with external OIDC providers in Managed Service for Kubernetes®","sidebarTitle":"Overview","href":"/kubernetes/authentication/oidc-providers"},{"title":"How to configure external OIDC providers in Managed Service for Kubernetes®","sidebarTitle":"Configuring OIDC providers","href":"/kubernetes/authentication/oidc-authentication"},{"title":"Troubleshooting authentication with external OIDC providers in Managed Service for Kubernetes®","sidebarTitle":"Troubleshooting","href":"/kubernetes/authentication/troubleshoot-oidc-providers"},{"title":"Using an OIDC public endpoint in Managed Service for Kubernetes® clusters","sidebarTitle":"Using an OIDC endpoint","href":"/kubernetes/networking/oidc-public-endpoint"}]},{"group":"Workloads","pages":[{"title":"Pulling images from Container Registry for workloads in Managed Service for Kubernetes® clusters","sidebarTitle":"Pulling images from Container Registry","href":"/kubernetes/workloads/images-container-registry"}]},{"group":"GPUs and ML/AI workloads","pages":[{"title":"Working with GPUs in the Managed Service for Kubernetes®","sidebarTitle":"Setting up GPUs","href":"/kubernetes/gpu/set-up"},{"title":"Interconnecting GPUs in Managed Service for Kubernetes® clusters using InfiniBand™","sidebarTitle":"Interconnecting GPUs with InfiniBand™","href":"/kubernetes/gpu/clusters"},{"title":"Dynamic resource allocation in Managed Service for Kubernetes®","sidebarTitle":"Dynamic resource allocation","href":"/kubernetes/gpu/dynamic-resource-allocation"},{"title":"Topology-aware scheduling for GPU workloads in Managed Service for Kubernetes®","sidebarTitle":"Topology-aware scheduling","href":"/kubernetes/gpu/topology-aware-scheduling"},{"title":"Running NCCL tests in a Managed Service for Kubernetes® cluster with InfiniBand™-connected GPUs","sidebarTitle":"🧑🏫 Tutorial: Running NCCL tests for InfiniBand","href":"/kubernetes/gpu/nccl-test"},{"title":"Managing AI workloads across Managed Service for Kubernetes® clusters with SkyPilot","sidebarTitle":"🧑🏫 Tutorial: Orchestration with SkyPilot","href":"/kubernetes/skypilot"}]},{"group":"Storage","pages":[{"title":"Mounting disks to Pods in a Managed Service for Kubernetes® cluster","sidebarTitle":"🧑🏫 Tutorial: Mounting disks to Pods","href":"/kubernetes/storage/disk-over-csi"},{"title":"Mounting shared filesystems to Pods in a Managed Service for Kubernetes® cluster","sidebarTitle":"🧑🏫 Tutorial: Mounting shared filesystems to Pods","href":"/kubernetes/storage/filesystem-over-csi"}]},{"title":"Deploying and deleting applications for Managed Service for Kubernetes®","sidebarTitle":"Applications for Managed Kubernetes","href":"/kubernetes/manage-applications"},{"group":"Observability","pages":[{"title":"Monitoring clusters and nodes in Managed Service for Kubernetes®","sidebarTitle":"Monitoring","href":"/kubernetes/monitoring"},{"title":"Logs in Managed Service for Kubernetes®","sidebarTitle":"Logs","href":"/kubernetes/logs"}]},{"group":"Optimizing nodes","pages":[{"title":"Autoscaling in Managed Service for Kubernetes","sidebarTitle":"Autoscaling","href":"/kubernetes/node-groups/autoscaling"},{"title":"Moving workload from the existing node group","sidebarTitle":"Moving workload","href":"/kubernetes/node-groups/moving-workload"}]},{"group":"Troubleshooting","pages":[{"title":"\"Unable to allocate CIDR from the pool\" error","sidebarTitle":"Unable to allocate CIDR from the pool error","href":"/kubernetes/troubleshooting/cidr-allocation-error"},{"title":"How to collect diagnostic logs from Managed Service for Kubernetes® nodes","sidebarTitle":"Collecting diagnostic logs","href":"/kubernetes/troubleshooting/logs"}]},{"group":"Resources","pages":[{"title":"Managed Service for Kubernetes® quotas and constraints","sidebarTitle":"Quotas and constraints","href":"/kubernetes/resources/quotas-limits"},{"title":"Pricing in Managed Service for Kubernetes®","sidebarTitle":"Pricing","href":"/kubernetes/resources/pricing"}]}]}]},{"item":"Storage","pages":[{"title":"Storage","href":"/object-storage"}]},{"item":"Network","pages":[{"title":"Network","href":"/vpc"}]}]},{"tab":"AI services","pages":[{"title":"AI services","href":"/ai-services"}]},{"tab":"Observability","pages":[{"title":"Observability","href":"/observability"}]},{"tab":"Management","pages":[{"title":"Management","href":"/signup-billing"}]},{"tab":"Security and cryptography","pages":[{"title":"Security and cryptography","href":"/security/encryption"}]},{"tab":"Developer tools","pages":[{"title":"Developer tools","href":"/developer-tools"}]},{"tab":"Changelog","pages":[{"title":"Changelog","href":"/changelog"}]},{"tab":"Managed Service for Apache Spark™","hidden":true,"pages":[{"title":"Managed Service for Apache Spark™","href":"/spark"}]},{"tab":"Legal","pages":[{"title":"Legal","href":"/legal"}]}]},"basePath":"","title":"Preemptible virtual machines - Nebius AI Cloud","deploymentId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","buildId":"dpl_G6E2ur2Zjq51xGTVZPSFXsWoTxCu","dynamics":[],"chunks":[]}