> ## Documentation Index
> Fetch the complete documentation index at: https://docs.siflow.cn/llms.txt
> Use this file to discover all available pages before exploring further.

# 服务管理

## 服务上线/下线

* **上线**：启动服务，使其可供外部访问。
* **下线**：停止服务并释放所占用的资源。

<img src="https://mintcdn.com/siflow/vap4jT3tfBA1sSQZ/products/siverse/general_service/media/gs5.png?fit=max&auto=format&n=vap4jT3tfBA1sSQZ&q=85&s=7d308d583df06061c80d84d9a9b1b3ce" alt="gs" width="3078" height="304" data-path="products/siverse/general_service/media/gs5.png" />

## 服务重启

* 你可以对运行中的服务执行重启操作，通常用于配置变更或版本升级。
* 平台重启采用滚动升级方式，而非原地重启：

  * 升级过程中可能出现资源不足，导致服务在重启后调度失败。
  * 若调度失败，旧版本服务仍保持可用，从而确保业务不中断。
  * 当资源充足时，系统会自动完成升级；你也可以通过购买/申请额外资源来加快调度。

<img src="https://mintcdn.com/siflow/vap4jT3tfBA1sSQZ/products/siverse/general_service/media/gs6.png?fit=max&auto=format&n=vap4jT3tfBA1sSQZ&q=85&s=f3eac3faefa2d0b0aec504d90f9d417e" alt="gs" width="3132" height="440" data-path="products/siverse/general_service/media/gs6.png" />

## 定时任务

平台支持定时上线/下线服务以及定时重启，便于实现服务的自动化管理。

* **配置方式**：在服务管理页面，你可以通过输入相应的 Cron 表达式为服务设置定时任务。
* **支持的操作**：
  * 定时上线：在指定时间自动启动服务
  * 定时下线：在指定时间自动停止服务以释放资源
  * 定时重启：在指定时间执行服务重启（采用滚动升级），适用于周期性更新或配置变更

<Note>
  1. Cron 表达式必须符合标准格式（秒 分 时 日 月 周）
  2. 在定时任务执行期间，操作可能因资源不足或调度问题而延迟或失败。
</Note>

<img src="https://mintcdn.com/siflow/vap4jT3tfBA1sSQZ/products/siverse/general_service/media/gs7.png?fit=max&auto=format&n=vap4jT3tfBA1sSQZ&q=85&s=b7544fac4a7d49d04cf5d636a8faf352" alt="gs" width="3156" height="440" data-path="products/siverse/general_service/media/gs7.png" />
