diff --git a/Docs/02-getting-started/quick-deployment/quick-deployment-57.md b/Docs/02-getting-started/quick-deployment/quick-deployment-57.md index c9613b61faf4c945253d2c48ddcd780a963d5284..612aa3fe3adfcd012da0492021f3369f954104f8 100644 --- a/Docs/02-getting-started/quick-deployment/quick-deployment-57.md +++ b/Docs/02-getting-started/quick-deployment/quick-deployment-57.md @@ -14,7 +14,7 @@ To simplify deployment, the installation package provided here is pre-compiled t cd / tar -zxvf stonedb-ce-5.7-v1.0.0.el7.x86_64.tar.gz ``` -You can upload the installation package to the server. The name of the folder extracted from the package is **stonedb56**. In this topic, **/stonedb56** is used as the installation package. +You can upload the installation package to the server. The name of the folder extracted from the package is **stonedb57**. In this topic, **/stonedb57** is used as the installation package. ## 3. Check dependencies ```shell cd /stonedb57/install/bin @@ -81,7 +81,7 @@ Differences between **reinstall.sh** and **install.sh**: ### 5. Log in to StoneDB ```shell -cat /stonedb57/install/log/mysqld.log |grep passwd +cat /stonedb57/install/log/mysqld.log |grep passwrod [Note] A temporary password is generated for root@localhost: ceMuEuj6l4+! /stonedb57/install/bin/mysql -uroot -p -S /stonedb57/install/tmp/mysql.sock diff --git a/Docs/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-56.md b/Docs/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-56.md index 3b7d1048d3da99dc3936eacefce8446184b18817..e3d3709435878dec80cc33743dbed4647d0d9bb8 100644 --- a/Docs/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-56.md +++ b/Docs/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-56.md @@ -195,7 +195,7 @@ install_target=/stonedb56/install ### Execute the compilation script. sh stonedb_build.sh ``` -If your OS is CentOS or RHEL, you must comment out **os_dis** and **os_dist_release**, and modify the setting of **build_tag** to exclude the **os_dist** and **os_dist_release** parts. This is because the the values of **Distributor**, **Release**, and **Codename **output of the **lsb_release -a** command are **n/a**. Commenting out **os_dist** and **os_dist_release** only affects the names of the log file and the TAR package and has no impact on the compilation results. +If your OS is CentOS or RHEL, you must comment out **os_dis** and **os_dist_release**, and modify the setting of **build_tag** to exclude the **os_dist** and **os_dist_release** parts. This is because the the values of **Distributor**, **Release**, and **Codename** output of the **lsb_release -a** command are **n/a**. Commenting out **os_dist** and **os_dist_release** only affects the names of the log file and the TAR package and has no impact on the compilation results. ## **Step 5. Start StoneDB** Users can start StoneDB in two ways: manual installation and automatic installation. @@ -208,7 +208,7 @@ passwd mysql 2. Manually install StoneDB. -If the installation directory after compilation is not **/stonedb56**, files **reinstall.sh**, **install.sh**, and **my.cnf **will not automatically generated. You need to manually create directories, and then initialize and start StoneDB. You also need to configure parameters in file **my.cnf**, including the installation directories and port. +If the installation directory after compilation is not **/stonedb56**, files **reinstall.sh**, **install.sh**, and **my.cnf** will not automatically generated. You need to manually create directories, and then initialize and start StoneDB. You also need to configure parameters in file **my.cnf**, including the installation directories and port. ```shell ### Create directories. mkdir -p /data/stonedb56/install/data/innodb @@ -246,7 +246,7 @@ cd /stonedb56/install Differences between **reinstall.sh** and **install.sh**: - **reinstall.sh** is the script for automatic installation. When the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup of StoneDB. Otherwise, all directories will be deleted and StoneDB will be initialized again. -- **install.sh **is the script for manual installation. You can specify the installation directories based on your needs and then execute the script. Same as **reinstall.sh**, when the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup. Otherwise, all directories will be deleted and StoneDB will be initialized again. +- **install.sh** is the script for manual installation. You can specify the installation directories based on your needs and then execute the script. Same as **reinstall.sh**, when the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup. Otherwise, all directories will be deleted and StoneDB will be initialized again. ::: 4. Log in to StoneDB. diff --git a/Docs/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-57.md b/Docs/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-57.md index 766940d25d52e6b87d5e7bbadddb6533bd4abe9c..9dc57ee7adfa0d034e4896bb6e7329c3ce4c1b00 100644 --- a/Docs/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-57.md +++ b/Docs/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-57.md @@ -262,12 +262,12 @@ cd /stonedb57/install Differences between **reinstall.sh** and **install.sh**: - **reinstall.sh** is the script for automatic installation. When the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup of StoneDB. Otherwise, all directories will be deleted and StoneDB will be initialized again. -- **install.sh **is the script for manual installation. You can specify the installation directories based on your needs and then execute the script. Same as **reinstall.sh**, when the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup. Otherwise, all directories will be deleted and StoneDB will be initialized again. +- **install.sh** is the script for manual installation. You can specify the installation directories based on your needs and then execute the script. Same as **reinstall.sh**, when the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup. Otherwise, all directories will be deleted and StoneDB will be initialized again. ::: 4. Log in to StoneDB. ```shell -cat /stonedb57/install/log/mysqld.log |grep passwd +cat /stonedb57/install/log/mysqld.log |grep password [Note] A temporary password is generated for root@localhost: ceMuEuj6l4+! /stonedb57/install/bin/mysql -uroot -p -S /stonedb57/install/tmp/mysql.sock diff --git a/Docs/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-56.md b/Docs/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-56.md index 8782e631efbc7cd8d8d06e0e3a198cff461713e6..df98414ad5aa7f0742c373aa83c3a594f7629d25 100644 --- a/Docs/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-56.md +++ b/Docs/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-56.md @@ -190,7 +190,7 @@ install_target=/stonedb56/install ### Execute the compilation script. sh stonedb_build.sh ``` -If your OS is CentOS or RHEL, you must comment out **os_dis** and **os_dist_release**, and modify the setting of **build_tag** to exclude the **os_dist** and **os_dist_release** parts. This is because the the values of **Distributor**, **Release**, and **Codename **output of the **lsb_release -a** command are **n/a**. Commenting out **os_dist** and **os_dist_release** only affects the names of the log file and the TAR package and has no impact on the compilation results. +If your OS is CentOS or RHEL, you must comment out **os_dis** and **os_dist_release**, and modify the setting of **build_tag** to exclude the **os_dist** and **os_dist_release** parts. This is because the the values of **Distributor**, **Release**, and **Codename** output of the **lsb_release -a** command are **n/a**. Commenting out **os_dist** and **os_dist_release** only affects the names of the log file and the TAR package and has no impact on the compilation results. ### Step 5. Start StoneDB Users can start StoneDB in two ways: manual installation and automatic installation. @@ -204,7 +204,7 @@ passwd mysql 2. Manually install StoneDB. -If the installation directory after compilation is not **/stonedb56**, files **reinstall.sh**, **install.sh**, and **my.cnf **will not automatically generated. You need to manually create directories, and then initialize and start StoneDB. You also need to configure parameters in file **my.cnf**, including the installation directories and port. +If the installation directory after compilation is not **/stonedb56**, files **reinstall.sh**, **install.sh**, and **my.cnf** will not automatically generated. You need to manually create directories, and then initialize and start StoneDB. You also need to configure parameters in file **my.cnf**, including the installation directories and port. ```shell ### Create directories. mkdir -p /data/stonedb56/install/data/innodb @@ -242,7 +242,7 @@ cd /stonedb56/install Differences between **reinstall.sh** and **install.sh**: - **reinstall.sh** is the script for automatic installation. When the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup of StoneDB. Otherwise, all directories will be deleted and StoneDB will be initialized again. -- **install.sh **is the script for manual installation. You can specify the installation directories based on your needs and then execute the script. Same as **reinstall.sh**, when the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup. Otherwise, all directories will be deleted and StoneDB will be initialized again. +- **install.sh** is the script for manual installation. You can specify the installation directories based on your needs and then execute the script. Same as **reinstall.sh**, when the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup. Otherwise, all directories will be deleted and StoneDB will be initialized again. ::: 4. Log in to StoneDB. diff --git a/Docs/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-57.md b/Docs/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-57.md index 73469053f4ac915a19a2c637cde989ece0738bb1..8a9083186a3cd87f794ec6909c2dd72b477365e4 100644 --- a/Docs/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-57.md +++ b/Docs/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-57.md @@ -269,7 +269,7 @@ Differences between **reinstall.sh** and **install.sh**: 4. Log in to StoneDB. ```shell -cat /stonedb57/install/log/mysqld.log |grep passwd +cat /stonedb57/install/log/mysqld.log |grep password [Note] A temporary password is generated for root@localhost: ceMuEuj6l4+! /stonedb57/install/bin/mysql -uroot -p -S /stonedb57/install/tmp/mysql.sock diff --git a/Docs/04-developer-guide/00-compiling-methods/compile-using-ubuntu2004/compile-using-ubuntu2004-for-57.md b/Docs/04-developer-guide/00-compiling-methods/compile-using-ubuntu2004/compile-using-ubuntu2004-for-57.md index 561fc5248f38c038a1c5e5dd81975a16876f9d83..1b3bd0885bab884886f12d982e781b967be5786e 100644 --- a/Docs/04-developer-guide/00-compiling-methods/compile-using-ubuntu2004/compile-using-ubuntu2004-for-57.md +++ b/Docs/04-developer-guide/00-compiling-methods/compile-using-ubuntu2004/compile-using-ubuntu2004-for-57.md @@ -251,9 +251,9 @@ Differences between **reinstall.sh** and **install.sh**: - **install.sh** is the script for manual installation. You can specify the installation directories based on your needs and then execute the script. Same as **reinstall.sh**, when the script is being executed, directories are created, and StoneDB is initialized and started. Therefore, do not execute the script unless for the initial startup. Otherwise, all directories will be deleted and StoneDB will be initialized again. ::: -4. Log in to StoneDB. +4. Login to StoneDB. ```shell -cat /stonedb57/install/log/mysqld.log |grep passwd +cat /stonedb57/install/log/mysqld.log |grep password [Note] A temporary password is generated for root@localhost: ceMuEuj6l4+! /stonedb57/install/bin/mysql -uroot -p -S /stonedb57/install/tmp/mysql.sock diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/click-memory.png b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/click-memory.png new file mode 100644 index 0000000000000000000000000000000000000000..b2edaf33a5824b688e7dca760b054c381dec694c Binary files /dev/null and b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/click-memory.png differ diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-cpu.png b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-cpu.png new file mode 100644 index 0000000000000000000000000000000000000000..7d79cbba1e1646ca124766cc63d46c6c50eb77f2 Binary files /dev/null and b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-cpu.png differ diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-disk-iops.png b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-disk-iops.png new file mode 100644 index 0000000000000000000000000000000000000000..820f0070c1f5e0366cac23a39235fc3ab4925d37 Binary files /dev/null and b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-disk-iops.png differ diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-system-load.png b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-system-load.png new file mode 100644 index 0000000000000000000000000000000000000000..24f03a903b77d6c53750e262aca113165171450f Binary files /dev/null and b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-system-load.png differ diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-cpu.png b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-cpu.png new file mode 100644 index 0000000000000000000000000000000000000000..114e5dc28e3ba949382b118ec63b8128e9b27876 Binary files /dev/null and b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-cpu.png differ diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-disk-iops.png b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-disk-iops.png new file mode 100644 index 0000000000000000000000000000000000000000..e04bb3c63f764d9c6be92ac2b44403f6482c5619 Binary files /dev/null and b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-disk-iops.png differ diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-memory.png b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-memory.png new file mode 100644 index 0000000000000000000000000000000000000000..92de01c903a2895c7117a51d4cc406231b9a27ec Binary files /dev/null and b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-memory.png differ diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-system-load.png b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-system-load.png new file mode 100644 index 0000000000000000000000000000000000000000..931c2dac5a8ac2e1570ca4186adcf6848466a6a7 Binary files /dev/null and b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-system-load.png differ diff --git a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/tcph-test-report.md b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/tcph-test-report.md index 13f352276d6e6b00c7e59eed7aa4126572d8c7e7..5830daa215e997409f64bddd7daaf5b751862499 100644 --- a/Docs/06-performance-tuning/06-performance-tests/00-OLAP/tcph-test-report.md +++ b/Docs/06-performance-tuning/06-performance-tests/00-OLAP/tcph-test-report.md @@ -1757,13 +1757,34 @@ Compare the performance data between ClickHouse and StoneDB. ## **OS resource usage comparison** StoneDB provides better performance than ClickHouse, when comparing OS resource overhead, such as disk I/O, CPU utilization, system load, and IOPS. ### CPU -StoneDB
![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568598543-214925cf-590b-428e-b91b-7ab246358731.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=277&id=u50016df5&margin=%5Bobject%20Object%5D&name=image.png&originHeight=416&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=103201&status=done&style=none&taskId=uf40b8a8e-0dc7-44a3-a721-d4f1d233e8b&title=&width=576.6666666666666)
ClickHouse
![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568611137-b982bc1f-9a4b-43a3-b046-8e36bc69bd22.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=277&id=u938b1f0f&margin=%5Bobject%20Object%5D&name=image.png&originHeight=416&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=110865&status=done&style=none&taskId=u0ad44ad9-ced0-45ed-be50-40461cbb04e&title=&width=576.6666666666666) +**StoneDB** + +![stonedb-cpu](./stonedb-cpu.png) + +**ClickHouse** + +![clickhouse-cpu.png](./clickhouse-cpu.png) ### Disk IOPS -StoneDB
![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568637102-2e714ace-fece-43a3-9d83-2a08cccdb178.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=279&id=u196cc277&margin=%5Bobject%20Object%5D&name=image.png&originHeight=418&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=129235&status=done&style=none&taskId=u43a5f00d-c561-4341-956a-f630cd0ef4b&title=&width=576.6666666666666)
ClickHouse
![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568649723-b2639bd3-ccc4-4bec-84a4-d984cf65de90.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=277&id=u2a40ff0d&margin=%5Bobject%20Object%5D&name=image.png&originHeight=416&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=87178&status=done&style=none&taskId=u20cb5854-d12a-403e-8b68-86f3d27b363&title=&width=576.6666666666666) +**StoneDB** +![stonedb-disk-iops.pn](./stonedb-disk-iops.png) + +**ClickHouse** + +![clickhouse-disk-iops.png](./clickhouse-disk-iops.png) ### Memory -StoneDB
![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568670524-30f85a75-1578-474a-8f4c-a16deb71575b.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=279&id=u3fa26688&margin=%5Bobject%20Object%5D&name=image.png&originHeight=418&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=67793&status=done&style=none&taskId=u2c29a120-9e0e-4495-bf87-7647af82d34&title=&width=576.6666666666666)
ClickHouse
![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568682032-7a384cd6-04ea-475d-b4d2-7b67f9a35031.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=279&id=uc95e26c7&margin=%5Bobject%20Object%5D&name=image.png&originHeight=418&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=91026&status=done&style=none&taskId=u7a6f7472-f4c1-42d9-8f86-43ab252a21b&title=&width=576.6666666666666) -### System load -StoneDB
![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568786483-4d4971a3-a937-4d3a-a457-0fe5b7eb3a88.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=277&id=ub4de92c7&margin=%5Bobject%20Object%5D&name=image.png&originHeight=416&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=118979&status=done&style=none&taskId=u1d0cba81-4461-4ccf-b34e-b8230549e56&title=&width=576.6666666666666)
ClickHouse
![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568820117-3336183b-5c85-4b40-b13f-b77b7eeb5e89.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=279&id=u84462ee6&margin=%5Bobject%20Object%5D&name=image.png&originHeight=418&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=168860&status=done&style=none&taskId=u12c19798-3577-4ed1-9aba-5ed93a2ded8&title=&width=576.6666666666666) +**StoneDB** + +![stonedb-memory.png](./stonedb-memory.png) + +**ClickHouse** + +![click-memory.png](./click-memory.png) +### System Load +**StoneDB** +![stonedb-system-load.png](./stonedb-system-load.png) + +**ClickHouse** +![clickhouse-system-load.png](./clickhouse-system-load.png) ## **Scripts used in the tests** ### CREATE TABLE diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/02-getting-started/quick-deployment/quick-deployment-57.md b/website/i18n/zh/docusaurus-plugin-content-docs/current/02-getting-started/quick-deployment/quick-deployment-57.md index a973d2e3d0161edf0be3a4353df0b63da83ca7e9..1777658e37d087f2097e5fa425c7344041360fc5 100644 --- a/website/i18n/zh/docusaurus-plugin-content-docs/current/02-getting-started/quick-deployment/quick-deployment-57.md +++ b/website/i18n/zh/docusaurus-plugin-content-docs/current/02-getting-started/quick-deployment/quick-deployment-57.md @@ -90,7 +90,7 @@ reinstall.sh 与 install.sh 的区别: ### 4. 执行登录 ```shell -cat /stonedb57/install/log/mysqld.log |grep passwd +cat /stonedb57/install/log/mysqld.log |grep password [Note] A temporary password is generated for root@localhost: ceMuEuj6l4+! /stonedb57/install/bin/mysql -uroot -p -S /stonedb57/install/tmp/mysql.sock diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-57.md b/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-57.md index 34d383ae74e60db17febb44a73bf6cb365d4b773..9b54b8e58e445c6bec99396981f589f1068491b9 100644 --- a/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-57.md +++ b/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-centos7/compile-using-centos7-for-57.md @@ -247,7 +247,7 @@ reinstall.sh 与 install.sh 的区别?
reinstall.sh 是自动化安装脚 ::: ### 4. 执行登录 ```shell -cat /stonedb57/install/log/mysqld.log |grep passwd +cat /stonedb57/install/log/mysqld.log |grep password [Note] A temporary password is generated for root@localhost: ceMuEuj6l4+! /stonedb57/install/bin/mysql -uroot -p -S /stonedb57/install/tmp/mysql.sock diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-57.md b/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-57.md index e8effdb7473522fe337b8e256e4df8ecdde4784d..317059c1e4e929bc2f77ad46c3acf783622ac6f1 100644 --- a/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-57.md +++ b/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-redhat7/compile-using-redhat7-for-57.md @@ -247,7 +247,7 @@ reinstall.sh 与 install.sh 的区别?
reinstall.sh 是自动化安装脚 ### 4. 执行登录 ```shell -cat /stonedb57/install/log/mysqld.log |grep passwd +cat /stonedb57/install/log/mysqld.log |grep password [Note] A temporary password is generated for root@localhost: ceMuEuj6l4+! /stonedb57/install/bin/mysql -uroot -p -S /stonedb57/install/tmp/mysql.sock diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-ubuntu2004/compile-using-ubuntu2004-for-57.md b/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-ubuntu2004/compile-using-ubuntu2004-for-57.md index a362de837d893fa30b9b4af31b8bdb585bb30cb9..fdd37d6d8223925f2aff839798779599cf9de47d 100644 --- a/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-ubuntu2004/compile-using-ubuntu2004-for-57.md +++ b/website/i18n/zh/docusaurus-plugin-content-docs/current/04-developer-guide/00-compiling-methods/compile-using-ubuntu2004/compile-using-ubuntu2004-for-57.md @@ -238,7 +238,7 @@ reinstall.sh 与 install.sh 的区别?
reinstall.sh 是自动化安装脚 ### 4. 执行登录 ```shell -cat /stonedb57/install/log/mysqld.log |grep passwd +cat /stonedb57/install/log/mysqld.log |grep password [Note] A temporary password is generated for root@localhost: ceMuEuj6l4+! /stonedb57/install/bin/mysql -uroot -p -S /stonedb57/install/tmp/mysql.sock diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/click-memory.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/click-memory.png new file mode 100644 index 0000000000000000000000000000000000000000..b2edaf33a5824b688e7dca760b054c381dec694c Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/click-memory.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-cpu.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-cpu.png new file mode 100644 index 0000000000000000000000000000000000000000..7d79cbba1e1646ca124766cc63d46c6c50eb77f2 Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-cpu.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-disk-iops.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-disk-iops.png new file mode 100644 index 0000000000000000000000000000000000000000..820f0070c1f5e0366cac23a39235fc3ab4925d37 Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-disk-iops.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-system-load.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-system-load.png new file mode 100644 index 0000000000000000000000000000000000000000..24f03a903b77d6c53750e262aca113165171450f Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/clickhouse-system-load.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-cpu.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-cpu.png new file mode 100644 index 0000000000000000000000000000000000000000..114e5dc28e3ba949382b118ec63b8128e9b27876 Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-cpu.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-disk-iops.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-disk-iops.png new file mode 100644 index 0000000000000000000000000000000000000000..e04bb3c63f764d9c6be92ac2b44403f6482c5619 Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-disk-iops.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-memory.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-memory.png new file mode 100644 index 0000000000000000000000000000000000000000..92de01c903a2895c7117a51d4cc406231b9a27ec Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-memory.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-system-load.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-system-load.png new file mode 100644 index 0000000000000000000000000000000000000000..931c2dac5a8ac2e1570ca4186adcf6848466a6a7 Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-system-load.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-vs-clickhouse.png b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-vs-clickhouse.png new file mode 100644 index 0000000000000000000000000000000000000000..c54eb88144f0edb717519f06c6b2d9d71dc8ae28 Binary files /dev/null and b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/stonedb-vs-clickhouse.png differ diff --git a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/tcph-test-report.md b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/tcph-test-report.md index c9ca6c3eab1770c9c73fd1d1f3cc129b54631bf5..526f235fa22862d8cd86f54b35f654e4ac8ae17c 100644 --- a/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/tcph-test-report.md +++ b/website/i18n/zh/docusaurus-plugin-content-docs/current/06-performance-tuning/06-performance-tests/00-OLAP/tcph-test-report.md @@ -27,7 +27,7 @@ TPC-H通过在受控条件下对标准数据库执行一组查询来评估各种 StoneDB 是由石原子公司自主设计、研发的国内首款基于 MySQL 的开源 HTAP(Hybrid Transactional and Analytical Processing)数据库,是一款同时支持在线事务处理与在线分析处理的融合型分布式数据库产品,可实现与 MySQL 数据库的无缝切换。StoneDB具备超高性能、金融级高可用、实时分析、分布式数据库、兼容 MySQL 5.6、MySQL 5.7 协议和 MySQL 生态等重要特性。目标是通过插件化的方式解决 MySQL 数据库本身不具备分析能力的问题,为用户提供一站式 OLTP (Online Transactional Processing)、OLAP (Online Analytical Processing)、HTAP 解决方案。 ### 3、ClickHouse简介 ClickHouse是一个完全的列式数据库管理系统,允许在运行时创建表和数据库,加载数据和运行查询,而无需重新配置和重新启动服务器,支持线性扩展,简单方便,高可靠性,容错。采用 Local attached storage 作为存储,它的系统在生产环境中可以应用到比较大的规模,还提供了一些 SQL 直接接口,有比较丰富的原生 client。 -## **二、**测试环境 +## 二、测试环境 下表列出了本次性能测试所使用的环境信息。 | **产品** | **架构** | **CPU** | **MEM** | **版本** | @@ -35,11 +35,10 @@ ClickHouse是一个完全的列式数据库管理系统,允许在运行时创 | StoneDB | 单节点 | Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz * 64 | 256GB | 5.7_0.1 | | ClickHouse | 单节点 | Intel(R) Xeon(R) CPU E5-2683 v4 @ 2.10GHz * 64 | 256GB | 22.5.1.2079 | -## **三、**测试结论 +## 三、测试结论 StoneDB与ClickHouse数据量同为100G,在相同的配置,相同的查询语句条件下,**依据TPC-H的基准性能指标22条SQL进行两款产品的对比测试,**根据测试数据汇总得出结论如下: -| **对比维度** | **StoneDB** | **ClickHouse** | **StoneDB比ClickHouse的优势(倍)** | **ClickHouse比StoneDB的优势** -**(倍)** | ** 备注** | +| **对比维度** | **StoneDB** | **ClickHouse** | **StoneDB比ClickHouse的优势(倍)** | **ClickHouse比StoneDB的优势(倍)** | **备注** | | --- | --- | --- | --- | --- | --- | | 查询耗时总时长 | 3387.86s | 11537.41s | **3.4** | - | 耗时越小越有优势 | | CPU(最大值) | 5.27% | 50.24% | ** 9.5** | - | CPU越小越有优势 | @@ -52,9 +51,9 @@ StoneDB与ClickHouse数据量同为100G,在相同的配置,相同的查询 | 查询成功率 | 95% | 82% | **1.17** | - | 成功率越大越有优势 | | 磁盘占用 | 59G | 42G | ** -** | ** 1.4** | 磁盘占用越小越有优势 | -![](https://cdn.nlark.com/yuque/0/2022/png/483217/1654669196963-4dfd5b26-88af-4187-836b-32dbfc5bb069.png#crop=0&crop=0&crop=1&crop=1&from=url&id=UxsI4&margin=%5Bobject%20Object%5D&originHeight=411&originWidth=1575&originalType=binary&ratio=1&rotation=0&showTitle=false&status=done&style=none&title=) +![](./stonedb-vs-clickhouse.png) -## **四、**测试结果明细 +## 四、测试结果明细 **解释说明:**每个SQL执行3次,最终计算平均值,以平均值进行性能对比。StoneDB,ClickHouse执行查询22个SQL的测试数据记录如下: 注: 相同配置下部分sql查询超时,没有在加载总耗时里统计(Q1,Q9,Q16,Q19,Q22) @@ -82,19 +81,19 @@ StoneDB与ClickHouse数据量同为100G,在相同的配置,相同的查询 -## **五、**测试过程 +## 五、测试过程 1. 安装所测产品并配置环境 -1. 构建数据结构 - 1. StoneDB - 1. Clickhouse +2. 构建数据结构 + - StoneDB + - Clickhouse 3. 数据初始化 - 1. 构建数据 - 1. 导入数据 - 1. 验证数据 + - 构建数据 + - 导入数据 + - 验证数据 4. 编写测试执行脚本 -4. TPC-H测试集 -- 单次执行22条query +5. TPC-H测试集 + - 单次执行22条query 以下为StoneDB和ClickHouse的参数配置: @@ -1770,25 +1769,34 @@ nohup ./start_benchmark.sh & ## 九、操作系统资源使用对比 StoneDB在IO性能消耗,CPU使用率,系统负载,IOPS上的性能明显优于ClickHouse ### CPU -StoneDB -![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568598543-214925cf-590b-428e-b91b-7ab246358731.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=277&id=u50016df5&margin=%5Bobject%20Object%5D&name=image.png&originHeight=416&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=103201&status=done&style=none&taskId=uf40b8a8e-0dc7-44a3-a721-d4f1d233e8b&title=&width=576.6666666666666) -ClickHouse -![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568611137-b982bc1f-9a4b-43a3-b046-8e36bc69bd22.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=277&id=u938b1f0f&margin=%5Bobject%20Object%5D&name=image.png&originHeight=416&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=110865&status=done&style=none&taskId=u0ad44ad9-ced0-45ed-be50-40461cbb04e&title=&width=576.6666666666666) +**StoneDB** + +![stonedb-cpu](./stonedb-cpu.png) + +**ClickHouse** + +![clickhouse-cpu.png](./clickhouse-cpu.png) ### Disk IOPS -StoneDB -![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568637102-2e714ace-fece-43a3-9d83-2a08cccdb178.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=279&id=u196cc277&margin=%5Bobject%20Object%5D&name=image.png&originHeight=418&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=129235&status=done&style=none&taskId=u43a5f00d-c561-4341-956a-f630cd0ef4b&title=&width=576.6666666666666) -ClickHouse -![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568649723-b2639bd3-ccc4-4bec-84a4-d984cf65de90.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=277&id=u2a40ff0d&margin=%5Bobject%20Object%5D&name=image.png&originHeight=416&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=87178&status=done&style=none&taskId=u20cb5854-d12a-403e-8b68-86f3d27b363&title=&width=576.6666666666666) +**StoneDB** +![stonedb-disk-iops.pn](./stonedb-disk-iops.png) + +**ClickHouse** + +![clickhouse-disk-iops.png](./clickhouse-disk-iops.png) ### Memory -StoneDB -![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568670524-30f85a75-1578-474a-8f4c-a16deb71575b.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=279&id=u3fa26688&margin=%5Bobject%20Object%5D&name=image.png&originHeight=418&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=67793&status=done&style=none&taskId=u2c29a120-9e0e-4495-bf87-7647af82d34&title=&width=576.6666666666666) -ClickHouse -![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568682032-7a384cd6-04ea-475d-b4d2-7b67f9a35031.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=279&id=uc95e26c7&margin=%5Bobject%20Object%5D&name=image.png&originHeight=418&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=91026&status=done&style=none&taskId=u7a6f7472-f4c1-42d9-8f86-43ab252a21b&title=&width=576.6666666666666) +**StoneDB** + +![stonedb-memory.png](./stonedb-memory.png) + +**ClickHouse** + +![click-memory.png](./click-memory.png) ### System Load -StoneDB -![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568786483-4d4971a3-a937-4d3a-a457-0fe5b7eb3a88.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=277&id=ub4de92c7&margin=%5Bobject%20Object%5D&name=image.png&originHeight=416&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=118979&status=done&style=none&taskId=u1d0cba81-4461-4ccf-b34e-b8230549e56&title=&width=576.6666666666666) -ClickHouse -![image.png](https://cdn.nlark.com/yuque/0/2022/png/483217/1654568820117-3336183b-5c85-4b40-b13f-b77b7eeb5e89.png#clientId=u0c3dfa41-dda0-4&crop=0&crop=0&crop=1&crop=1&from=paste&height=279&id=u84462ee6&margin=%5Bobject%20Object%5D&name=image.png&originHeight=418&originWidth=865&originalType=binary&ratio=1&rotation=0&showTitle=false&size=168860&status=done&style=none&taskId=u12c19798-3577-4ed1-9aba-5ed93a2ded8&title=&width=576.6666666666666) +**StoneDB** +![stonedb-system-load.png](./stonedb-system-load.png) + +**ClickHouse** +![clickhouse-system-load.png](./clickhouse-system-load.png) ## 十、测试脚本 ### Create Table