23. از غیر نصب روش بررسی به ادامه در
scl
: پرداخت خواهیم
برای دیتابیس هست نیاز منظور
نای برای
rally
. شود ساخته
mysql -u root -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or g.
Your MariaDB connection id is 263
Server version: 10.3.10-MariaDB MariaDB Server
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
create database rally;
Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on rally.* to rally@'localhost' identified by 'password';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on rally.* to rally@'%' identified by 'password';
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
flush privileges;
Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
exit
24. نود در
rally
: میگیرد انجام موارد
yum -y install openstack-rally openstack-rally-plugins python-fixtures
vi /etc/rally/rally.conf
# line 32: uncomment and change
log_file = rally.log
# line 37: uncomment and change
log_dir =/var/log/rally
# line 189: MariaDB connection info
connection = mysql+pymysql://rally:password@ip/rally
mkdir /var/log/rally
rally db create
Creating database: mysql+pymysql://rally:password@ip/rally
Database created successfully
قسمت در : نکته
ip
میبایستی
ip
. شود وارد کنترلر
برای ریجستری که هست نیاز : دوم نکته
rally
. کنید ایجاد
که هست نیاز مفهوم این برای
env
: نمونه برای . کنید ست را خود
export OS_USERNAME=”admin”
export OS_TENANT_NAME=”admin”
export OS_PASSWORD=”admin”
export OS_AUTH_URL=”http://your_cloud.url:5000/v2”
25. اجرای برای
Rally BenchMarking Tasks
برای را محیطی متغیرهای ،
Openstack
به
Rally
.کنید اضافه
rally deployment create --fromenv --name=mycloud
+--------------------------------------+---------------------+----------+------------------+--------+
| uuid | created_at | name | status | active |
+--------------------------------------+---------------------+----------+------------------+--------+
| 9320b988-ad3b-4318-b683-80a28326a718 | 2021-10-29T01:13:25 | mycloud | deploy->finished | |
+--------------------------------------+---------------------+----------+------------------+--------+
Using deployment: 9320b988-ad3b-4318-b683-80a28326a718
~/.rally/openrc was updated
HINTS:
* To use standard OpenStack clients, set up your env by running:
source ~/.rally/openrc
OpenStack clients are now configured, e.g run:
openstack image list
source ~/.rally/openrc
rally deployment show mycloud
+--------------------------+----------+----------+-------------+-------------+---------------+
| auth_url | username | password | tenant_name | region_name | endpoint_type |
+--------------------------+----------+----------+-------------+-------------+---------------+
| http://ip:5000/v3 | admin | *** | admin | | None |
+--------------------------+----------+----------+-------------+-------------+---------------+
rally deployment check
--------------------------------------------------------------------------------
Platform openstack:
--------------------------------------------------------------------------------
Available services:
+-------------+----------------+-----------+
| Service | Service Type | Status |
+-------------+----------------+-----------+