diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\260\203\344\274\230\351\203\250\347\275\262\346\214\207\345\215\227.md" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\260\203\344\274\230\351\203\250\347\275\262\346\214\207\345\215\227.md" deleted file mode 100644 index 161f0bbb859c2ca996ed2e944344ae26a488a183..0000000000000000000000000000000000000000 --- "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\260\203\344\274\230\351\203\250\347\275\262\346\214\207\345\215\227.md" +++ /dev/null @@ -1,55 +0,0 @@ -# 智能调优部署指南 - -## 准备工作 - -+ 提前安装 [openEuler Copilot System 命令行(智能 Shell)客户端](../../../使用指南/命令行客户端/命令行助手使用指南.md) - -+ 被调优机器需要为 openEuler 2203 LTS-SP3 - -+ 在需要被调优的机器上安装依赖 - -```bash -yum install -y sysstat perf -``` - -+ 被调优机器需要开启SSH 22端口 - -+ 修改 /xxxx/xxxx/values.yaml 文件的 `euler-copilot-tune` 部分,配置需要调优的机器,以及对应机器上的 mysql 的账号名以及密码 - -```yaml -ip:xxxxx -password:xxxx -mysql: - user:xxx - password:xxxx -``` - -+ 修改 /xxxx/xxxx/values.yaml 文件的 `euler-copilot-tune` 部分,将 `enable` 字段改为 `True` - -```bash -enable: True -``` - -+ 更新环境 - -```bash -helm upgrade euler-copilot . -``` - -+ 检查 euler-copilot-tune 目录下的 openapi.yaml 中 `servers.url` 字段,确保调优服务的启动地址被正确设置 - -+ 获取 `$plugin_dir` 插件文件夹的路径,该变量位于 euler-copilot-helm/chart/euler_copilot/values.yaml 中的 `framework`模块 - -+ 如果插件目录不存在,需新建该目录 - -+ 将该目录下的 euler-copilot-tune 文件夹放到 `$plugin_dir` 中 - -```bash -cp -r ./euler-copilot-tune $plugin_dir -``` - -+ 重建 framework pod,重载插件配置 - -```bash -kubectl delete pod framework-xxxx -n 命名空间 -``` diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/get_all_docker_images_flow.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/get_all_docker_images_flow.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/get_all_docker_images_flow.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/get_all_docker_images_flow.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/pull_images_flow.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/pull_images_flow.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/pull_images_flow.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/pull_images_flow.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/run_images_flow.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/run_images_flow.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/run_images_flow.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/flows/run_images_flow.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/openapi.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/openapi.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/openapi.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/openapi.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/plugin.json" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/plugin.json" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/plugin.json" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/Compatibility-AI-Infra/plugin.json" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/\346\217\222\344\273\266\342\200\224AI\345\256\271\345\231\250\346\240\210\351\203\250\347\275\262\346\214\207\345\215\227.md" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/\346\217\222\344\273\266\342\200\224AI\345\256\271\345\231\250\346\240\210\351\203\250\347\275\262\346\214\207\345\215\227.md" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/AI\345\256\271\345\231\250\346\240\210/\346\217\222\344\273\266\342\200\224AI\345\256\271\345\231\250\346\240\210\351\203\250\347\275\262\346\214\207\345\215\227.md" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/AI\345\256\271\345\231\250\346\240\210/\346\217\222\344\273\266\342\200\224AI\345\256\271\345\231\250\346\240\210\351\203\250\347\275\262\346\214\207\345\215\227.md" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/demarcation.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/demarcation.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/demarcation.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/demarcation.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/detection.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/detection.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/detection.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/detection.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/inspection.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/inspection.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/inspection.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/inspection.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/show_profiling.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/show_profiling.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/show_profiling.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/flows/show_profiling.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/openapi.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/openapi.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/openapi.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/openapi.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/plugin.json" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/plugin.json" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/plugin.json" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/euler-copilot-rca/plugin.json" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\257\212\346\226\255\351\203\250\347\275\262\346\214\207\345\215\227.md" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\257\212\346\226\255\351\203\250\347\275\262\346\214\207\345\215\227.md" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\257\212\346\226\255/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\257\212\346\226\255\351\203\250\347\275\262\346\214\207\345\215\227.md" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\257\212\346\226\255/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\257\212\346\226\255\351\203\250\347\275\262\346\214\207\345\215\227.md" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/data_collection.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/data_collection.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/data_collection.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/data_collection.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/performance_analysis.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/performance_analysis.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/performance_analysis.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/performance_analysis.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/performance_tuning.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/performance_tuning.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/performance_tuning.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/flows/performance_tuning.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/openapi.yaml" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/openapi.yaml" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/openapi.yaml" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/openapi.yaml" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/plugin.json" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/plugin.json" similarity index 100% rename from "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/plugin.json" rename to "docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/euler-copilot-tune/plugin.json" diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\260\203\344\274\230\351\203\250\347\275\262\346\214\207\345\215\227.md" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\260\203\344\274\230\351\203\250\347\275\262\346\214\207\345\215\227.md" new file mode 100644 index 0000000000000000000000000000000000000000..ed089233f04ebf96cf05a376ed68975309aeef9b --- /dev/null +++ "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\346\217\222\344\273\266\351\203\250\347\275\262\346\214\207\345\215\227/\346\231\272\350\203\275\350\260\203\344\274\230/\346\217\222\344\273\266\342\200\224\346\231\272\350\203\275\350\260\203\344\274\230\351\203\250\347\275\262\346\214\207\345\215\227.md" @@ -0,0 +1,123 @@ +# 智能调优部署指南 + +## 准备工作 + ++ 提前安装 [openEuler Copilot System 命令行(智能 Shell)客户端](../../../使用指南/命令行客户端/命令行助手使用指南.md) + ++ 被调优机器需要为 openEuler 22.03 LTS-SP3 + ++ 在需要被调优的机器上安装依赖 + +```bash +yum install -y sysstat perf +``` + ++ 被调优机器需要开启 SSH 22端口 + +## 编辑配置文件 +修改values.yaml文件的tune部分,将 `enable` 字段改为 `True` ,并配置大模型设置、 +Embedding模型文件地址、以及需要调优的机器和对应机器上的 mysql 的账号名以及密码 + +```bash +vim /home/euler-copilot-framework/euler-copilot-helm/chart/agents/values.yaml + ``` + +```yaml +tune: + # 【必填】是否启用智能调优Agent + enabled: true + # 镜像设置 + image: + # 镜像仓库。留空则使用全局设置。 + registry: "" + # 【必填】镜像名称 + name: euler-copilot-tune + # 【必填】镜像标签 + tag: "0.9.1" + # 拉取策略。留空则使用全局设置。 + imagePullPolicy: "" + # 【必填】容器根目录只读 + readOnly: false + # 性能限制设置 + resources: {} + # Service设置 + service: + # 【必填】Service类型,ClusterIP或NodePort + type: ClusterIP + nodePort: + # 大模型设置 + llm: + # 【必填】模型地址(需要包含v1后缀) + url: + # 【必填】模型名称 + name: "" + # 【必填】模型API Key + key: "" + # 【必填】模型最大Token数 + max_tokens: 8096 + # 【必填】Embedding模型文件地址 + embedding: "" + # 待优化机器信息 + machine: + # 【必填】IP地址 + ip: "" + # 【必填】Root用户密码 + # 注意:必需启用Root用户以密码形式SSH登录 + password: "" + # 待优化应用设置 + mysql: + # 【必填】数据库用户名 + user: "root" + # 【必填】数据库密码 + password: "" +``` + +## 安装智能调优插件 + +```bash +helm install -n euler-copilot agents . +``` +如果之前有执行过安装,则按下面指令更新插件服务 +```bash +helm upgrade-n euler-copilot agents . +``` + +如果 framework未重启,则需要重启framework配置 + +```bash +kubectl delete pod framework-deploy-service-bb5b58678-jxzqr -n eulercopilot +``` + +## 测试 +- 查看 tune 的 pod 状态 +```bash +NAME READY STATUS RESTARTS AGE +authhub-backend-deploy-authhub-64896f5cdc-m497f 2/2 Running 0 16d +authhub-web-deploy-authhub-7c48695966-h8d2p 1/1 Running 0 17d +pgsql-deploy-databases-86b4dc4899-ppltc 1/1 Running 0 17d +redis-deploy-databases-f8866b56-kj9jz 1/1 Running 0 17d +mysql-deploy-databases-57f5f94ccf-sbhzp 2/2 Running 0 17d +framework-deploy-service-bb5b58678-jxzqr 2/2 Running 0 16d +rag-deploy-service-5b7887644c-sm58z 2/2 Running 0 110m +vectorize-deploy-service-57f5f94ccf-sbhzp 2/2 Running 0 17d +web-deploy-service-74fbf7999f-r46rg 1/1 Running 0 2d +tune-deploy-agents-5d46bfdbd4-xph7b 1/1 Running 0 2d +``` +- pod启动失败排查办法 + - 检查 euler-copilot-tune 目录下的 openapi.yaml 中 `servers.url` 字段,确保调优服务的启动地址被正确设置 + - 检查 `$plugin_dir` 插件文件夹的路径是否配置正确,该变量位于 `euler-copilot-helm/chart/euler_copilot/values.yaml` 中的 `framework`模块,如果插件目录不存在,需新建该目录,并需要将该目录下的 euler-copilot-tune 文件夹放到 `$plugin_dir` 中。 + - 检查sglang的地址和key填写是否正确,该变量位于 `vim /home/euler-copilot-framework/euler-copilot-helm/chart/euler_copilot/values.yaml` + ```yaml + # 用于Function Call的模型 + scheduler: + # 推理框架类型 + backend: sglang + # 模型地址 + url: "" + # 模型 API Key + key: "" + # 数据库设置 + ``` +- 命令行客户端使用智能调优 + + 具体使用可参考[openEuler Copilot System 命令行(智能插件:智能调优)](../../../使用指南/命令行客户端/智能调优.md) \ No newline at end of file diff --git "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\347\275\221\347\273\234\347\216\257\345\242\203\344\270\213\351\203\250\347\275\262\346\214\207\345\215\227.md" "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\347\275\221\347\273\234\347\216\257\345\242\203\344\270\213\351\203\250\347\275\262\346\214\207\345\215\227.md" index fc9b76a11fda6be03a7a4070f440495329d7be05..bd91834ca52615723b9d4e6aef66b2d2d2df3566 100644 --- "a/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\347\275\221\347\273\234\347\216\257\345\242\203\344\270\213\351\203\250\347\275\262\346\214\207\345\215\227.md" +++ "b/docs/user-guide/\351\203\250\347\275\262\346\214\207\345\215\227/\347\275\221\347\273\234\347\216\257\345\242\203\344\270\213\351\203\250\347\275\262\346\214\207\345\215\227.md" @@ -432,7 +432,7 @@ cd /home/euler-copilot-framework/euler-copilot-helm/scripts && tree 5. 按照如下方式配置文件,并更新服务。 - ```bash + ```bash vim euler-copilot-helm/chart/euler_copilot/values.yaml ``` diff --git a/euler-copilot-helm/chart/agents/values.yaml b/euler-copilot-helm/chart/agents/values.yaml index 770c9f969445ab47ba9a915c4177c9388f6108b6..0ae954263fbe7a5f2056c52085163ca107d7cd6f 100644 --- a/euler-copilot-helm/chart/agents/values.yaml +++ b/euler-copilot-helm/chart/agents/values.yaml @@ -84,7 +84,7 @@ agents: # 【必填】模型最大Token数 max_tokens: 8096 # 【必填】Embedding地址 - embedding: "" + embedding: "http://$ip:8001/embedding" # 将IP修改为vectorize服务的内网IP # 待优化机器信息 machine: # 【必填】IP地址 diff --git a/plugins/.gitignore b/euler-copilot-plugins/.gitignore similarity index 100% rename from plugins/.gitignore rename to euler-copilot-plugins/.gitignore diff --git a/plugins/README.en.md b/euler-copilot-plugins/README.en.md similarity index 100% rename from plugins/README.en.md rename to euler-copilot-plugins/README.en.md diff --git a/plugins/README.md b/euler-copilot-plugins/README.md similarity index 100% rename from plugins/README.md rename to euler-copilot-plugins/README.md diff --git a/plugins/euler-copilot-rca/flows/demarcation.yaml b/euler-copilot-plugins/euler-copilot-rca/flows/demarcation.yaml similarity index 100% rename from plugins/euler-copilot-rca/flows/demarcation.yaml rename to euler-copilot-plugins/euler-copilot-rca/flows/demarcation.yaml diff --git a/plugins/euler-copilot-rca/flows/detection.yaml b/euler-copilot-plugins/euler-copilot-rca/flows/detection.yaml similarity index 100% rename from plugins/euler-copilot-rca/flows/detection.yaml rename to euler-copilot-plugins/euler-copilot-rca/flows/detection.yaml diff --git a/plugins/euler-copilot-rca/flows/inspection.yaml b/euler-copilot-plugins/euler-copilot-rca/flows/inspection.yaml similarity index 100% rename from plugins/euler-copilot-rca/flows/inspection.yaml rename to euler-copilot-plugins/euler-copilot-rca/flows/inspection.yaml diff --git a/plugins/euler-copilot-rca/flows/show_profiling.yaml b/euler-copilot-plugins/euler-copilot-rca/flows/show_profiling.yaml similarity index 100% rename from plugins/euler-copilot-rca/flows/show_profiling.yaml rename to euler-copilot-plugins/euler-copilot-rca/flows/show_profiling.yaml diff --git a/plugins/euler-copilot-rca/openapi.yaml b/euler-copilot-plugins/euler-copilot-rca/openapi.yaml similarity index 100% rename from plugins/euler-copilot-rca/openapi.yaml rename to euler-copilot-plugins/euler-copilot-rca/openapi.yaml diff --git a/plugins/euler-copilot-rca/plugin.json b/euler-copilot-plugins/euler-copilot-rca/plugin.json similarity index 100% rename from plugins/euler-copilot-rca/plugin.json rename to euler-copilot-plugins/euler-copilot-rca/plugin.json diff --git a/plugins/euler-copilot-tune/flows/data_collection.yaml b/euler-copilot-plugins/euler-copilot-tune/flows/data_collection.yaml similarity index 100% rename from plugins/euler-copilot-tune/flows/data_collection.yaml rename to euler-copilot-plugins/euler-copilot-tune/flows/data_collection.yaml diff --git a/plugins/euler-copilot-tune/flows/performance_analysis.yaml b/euler-copilot-plugins/euler-copilot-tune/flows/performance_analysis.yaml similarity index 100% rename from plugins/euler-copilot-tune/flows/performance_analysis.yaml rename to euler-copilot-plugins/euler-copilot-tune/flows/performance_analysis.yaml diff --git a/plugins/euler-copilot-tune/flows/performance_tuning.yaml b/euler-copilot-plugins/euler-copilot-tune/flows/performance_tuning.yaml similarity index 100% rename from plugins/euler-copilot-tune/flows/performance_tuning.yaml rename to euler-copilot-plugins/euler-copilot-tune/flows/performance_tuning.yaml diff --git a/plugins/euler-copilot-tune/openapi.yaml b/euler-copilot-plugins/euler-copilot-tune/openapi.yaml similarity index 100% rename from plugins/euler-copilot-tune/openapi.yaml rename to euler-copilot-plugins/euler-copilot-tune/openapi.yaml diff --git a/plugins/euler-copilot-tune/plugin.json b/euler-copilot-plugins/euler-copilot-tune/plugin.json similarity index 100% rename from plugins/euler-copilot-tune/plugin.json rename to euler-copilot-plugins/euler-copilot-tune/plugin.json