同步操作将从 openEuler/A-Tune 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
English | 简体中文
A-Tune is an OS tuning engine based on AI. A-Tune uses AI technologies to enable the OS to understand services, simplify IT system optimization, and maximize optimal application performance.
Supported OS: openEuler 20.03 LTS or later
yum install -y atune
For openEuler 20.09 or later, atune-engine is needed
yum install -y atune-engine
yum install -y golang-bin python3 perf sysstat hwloc-gui
yum install -y python3-dict2xml python3-flask-restful python3-pandas python3-scikit-optimize python3-xgboost python3-pyyaml
Or
pip3 install dict2xml Flask-RESTful pandas scikit-optimize xgboost scikit-learn pyyaml
Once user has already installed database application and wants to store A-Tune collection and tuning data to the database, following packages should also be installed:
yum install -y python3-sqlalchemy python3-cryptography
Or
pip3 install sqlalchemy cryptography
To use database, user should also select either of the following methods to install dependency based on the database applications.
Database | Install using yum | Install using pip |
---|---|---|
PostgreSQL | yum install -y python3-psycopg2 | pip3 install psycopg2 |
git clone https://gitee.com/openeuler/A-Tune.git
cd A-Tune
make models
make
make collector-install
make install
You can run the following command to query the NIC that need to be specified for data collecting or optimizing NIC and change the network configuration item in the /etc/atuned/atuned.cnf to the specified NIC.
ip addr
You can run the following command to query the disk that need to be specified for data collection or disk optimization and change the disk configuration item in the /etc/atuned/atuned.cnf to the specified disk.
fdisk -l | grep dev
systemctl daemon-reload
systemctl start atuned
systemctl start atune-engine
systemctl status atuned
systemctl status atune-engine
You can save the newly collected data to the A-Tune/analysis/dataset directory and run the model generation tool to update the AI model in the A-Tune/analysis/models directory.
Format
python3 generate_models.py
Parameter Description
Parameter | Description |
---|---|
--csv_path, -d | Path for storing CSV files required for model training. The default directory is A-Tune/analysis/dataset. |
--model_path, -m | Path for storing the new models generated during training. The default path is A-Tune/analysis/models. |
--select, -s | Indicates whether to generate feature models. The default value is false. |
--search, -g | Indicates whether to enable parameter space search. The default value is false. |
Example:
python3 generate_models.py
This command is used to list the supported profiles, and the values of active.
Format:
atune-adm list
Example:
atune-adm list
Manually activate the profile to make it in the active state.
Format:
atune-adm profile
Example: Activate the profile corresponding to the web-nginx-http-long-connection.
atune-adm profile web-nginx-http-long-connection
This command is used to collect real-time statistics from the system to identify and automatically optimize workload types.
Format:
atune-adm analysis [OPTIONS]
Example 1: Use the default model to identify applications and perform automatic tuning.
atune-adm analysis
Example 2: Use the user-defined training model for recognition.
atune-adm analysis --model /usr/libexec/atuned/analysis/models/new-model.m
Use the specified project file to search the dynamic space for parameters and find the optimal solution under the current environment configuration.
Format:
atune-adm tuning [OPTIONS] <PROJECT_YAML>
Example: See the A-Tune offline tuning example. Each example has a corresponding README guide.
For details about other commands, see the atune-adm help information or A-Tune User Guide.
A-Tune-UI is a web project base on A-Tune. Please check A-Tune-UI README for details.
We welcome new contributors to participate in the project. And we are happy to provide guidance for new contributors. You need to sign CLA before contribution.
Any question or discussion please contact A-Tune.
Holding SIG Meeting at 10:00-12:00 AM on Friday every two weeks. You can apply topic by A-Tune mail list.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。