From 2fee89f96e13811f54f269f74b5417d6f115e756 Mon Sep 17 00:00:00 2001 From: repent Date: Mon, 21 Apr 2025 07:09:54 +0000 Subject: [PATCH] =?UTF-8?q?=E6=8F=8F=E8=BF=B0=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: repent --- ...344\272\216MySQL\346\214\207\345\257\274.md" | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git "a/docs/zh/docs/astream/astream\345\272\224\347\224\250\344\272\216MySQL\346\214\207\345\257\274.md" "b/docs/zh/docs/astream/astream\345\272\224\347\224\250\344\272\216MySQL\346\214\207\345\257\274.md" index 8cd078914..1615a0a71 100644 --- "a/docs/zh/docs/astream/astream\345\272\224\347\224\250\344\272\216MySQL\346\214\207\345\257\274.md" +++ "b/docs/zh/docs/astream/astream\345\272\224\347\224\250\344\272\216MySQL\346\214\207\345\257\274.md" @@ -25,7 +25,7 @@ ### 1.3 组网 - +\ ## 2. Server端部署 @@ -62,7 +62,7 @@ yum install -y cmake doxygen bison ncurses-devel openssl-devel libtool tar rpcge - /etc/my-1.cnf -``` +```cnf [mysqld_safe] log-error=/data/mysql-1/log/mysql.log pid-file=/data/mysql-1/run/mysqld.pid @@ -140,7 +140,7 @@ mysqlx=0 - /etc/my-2.cnf -``` +```cnf [mysqld_safe] log-error=/data/mysql-2/log/mysql.log pid-file=/data/mysql-2/run/mysqld.pid @@ -289,7 +289,7 @@ chmod +x *.sh 打开配置文件`benchmarksql5.0-for-mysql/run/props.conf`,配置如下: -``` +```conf db=mysql driver=com.mysql.cj.jdbc.Driver conn=jdbc:mysql://192.168.1.10:3306/tpcc?useSSL=false&useServerPrepStmts=true&useConfigs=maxPerformance&rewriteBatchedStatements=true @@ -312,9 +312,9 @@ deliveryWeight=4 stockLevelWeight=4 ``` -当前目录下再复制一个props.conf文件,重命令为props-2.conf,作为mysql实例2对应的配置文件。 +当前目录下再复制一个props.conf文件,重命名为props-2.conf,作为mysql实例2对应的配置文件。 -``` +```conf db=mysql driver=com.mysql.cj.jdbc.Driver conn=jdbc:mysql://192.168.1.10:3307/tpcc?useSSL=false&useServerPrepStmts=true&useConfigs=maxPerformance&rewriteBatchedStatements=true @@ -368,7 +368,7 @@ cp -r /data/mysql-1/data/* /bak 在`/etc/grub2-efi.cfg`文件中,系统启动项添加参数`sched_steal_node_limit=4`,reboot重启生效。 - +\ 重启后,设置开启STEAL模式即可。 @@ -420,8 +420,7 @@ yum install nvme-cli nvme dir-receive /dev/nvme0n1 -n 0x1 -D 0 -O 1 -H ``` - - + \ 回显结果表示,当前NVMe SSD支持Stream Directive,即支持开启多流特性,当前的状态为关闭状态。 -- Gitee