websoft9/appmanage/docs/architecture.md
2023-04-12 09:07:52 +08:00

38 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# appmanage
![image](https://user-images.githubusercontent.com/43192516/231104572-a57940b1-273b-4761-ae82-7139a8966f70.png)
## RQ
### 设计
RQ 用于异步处理**创建应用**的事务任务,需保证任务成功或失败后续处理。
它提供的状态有:
- creating: 创建中
- failed: 创建失败
### RQ status
RQ 主要解决创建应用的状态
![image](https://user-images.githubusercontent.com/43192516/231103506-22bbfc80-f31f-4ba0-a331-4a05a345ec25.png)
## docker compose status
- running: 运行中
- exited: 停止
- restarting: 重启
- created: 创建失败
## API status
- installing: 创建中 可进行操作[AppStatus]
- running: 运行中 可进行操作[AppStatus,AppStop,AppUninstall,AppRestart,容器日志查看进入容器terminal]
- exited: 停止 可进行操作[AppStatus,AppStart,AppUninstall,日志查看]
- restarting: 可进行操作[AppStatus,AppUninstall,日志查看]
- failed: 创建失败docker compose 中的 created || RQ 返回失败) 可进行操作[AppStatus,AppUninstall]