Skip to content

Commit

Permalink
feat(compute): add resize op
Browse files Browse the repository at this point in the history
  • Loading branch information
thezzisu committed Nov 12, 2024
1 parent 8d1e2f2 commit 9c5c5b0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .vitepress/config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,8 @@ export default defineConfig({
items: [
{ text: '快速开始', link: '/docs/getting-started/introduction' },
{
text: '网络',
items: [
{ text: '自组网', link: '/docs/networking/private-network' },
{ text: 'Router和浮动IP', link: '/docs/networking/router-and-floating-ip' },
{ text: '安全组', link: '/docs/networking/security-group' }
]
text: '计算',
items: [{ text: '实例操作', link: '/docs/compute/instance-operations' }]
},
{
text: '网络',
Expand Down
Binary file added assets/compute/resize-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/compute/resize-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/compute/resize-notify.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions docs/compute/instance-operations.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
title: 实例操作
---

# 更改实例类型(缩小或扩大实例)

有时候,我们希望更改实例的类型,比如将一个性能较低的实例扩大为性能较高的实例,或者将一个性能较高的实例缩小为性能较低的实例。这种情况下,我们可以通过更改实例的类型来实现。

进入 **控制台>计算>云主机** 如下图所示操作:

![resize-1](/assets/compute/resize-1.png)

将打开修改配置弹窗如下图。在区域 1 选择适合你的配置,在区域 2 勾选同意,然后点击确定即可。

![resize-2](/assets/compute/resize-2.png)

> [!WARNING] 警告
> 更改配置将对正在运行的实例进行强制关机。\
> 若有重要数据,请提前保存,并自行关机后再进行配置更改。
确认后将可以看到如下通知,同时实例状态变更为 **正在修改配置/迁移**

![resize-notify](/assets/compute/resize-notify.png)

稍等片刻后,实例状态将变更为 **运行中**,此时配置已经更改完成。

0 comments on commit 9c5c5b0

Please sign in to comment.