Skip to content

Commit

Permalink
修改 1000.connect-to-the-oceanbase-database-through-spring-jdbc-of-mysq…
Browse files Browse the repository at this point in the history
…l-mode.md
  • Loading branch information
obdev authored and ob-robot committed Jun 27, 2024
1 parent ceda8b6 commit 10d65e5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,5 @@ sysctl -p
* Run the following command to disable the memory reclamation and reallocation functionality:

```shell
sysctl vm.zone_reclaim_mode=0
sysctl vm.zone_reclaim_mode=0
```
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,8 @@
<img src='https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/doc/img/observer-enterprise/V4.2.0/3.develop/demo22x22.png'/>
点击下载 spring-jdbc-mysql-client 示例工程
</a>
</div>

<div role="videolist">
<a role='video' href='https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/video-center/video/video/01%20spring-jdbc-mysql-client.mp4'>
<img src='https://obbusiness-private.oss-cn-shanghai.aliyuncs.com/doc/img/ocp/422/Play%2002.png'/>
<img src='https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*DFPmToHK6hgAAAAAAAAAAAAADiGDAQ/original'/>
Spring JDBC 连接 OceanBase 数据库示例程序(MySQL 模式)
</a>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ sudo vim /etc/sysctl.conf
```shell
# for oceanbase
## 修改内核异步 I/O 限制
fs.aio-max-nr=1048576

## 网络优化
fs.aio-max-nr=1048576

## 网络优化
net.core.somaxconn = 2048
net.core.netdev_max_backlog = 10000
net.core.rmem_default = 16777216
Expand Down Expand Up @@ -79,9 +79,9 @@ sysctl -p

```shell
sysctl kernel.numa_balancing=0
```

* 禁用内存回收和重新分配功能,命令如下。
```

* 禁用内存回收和重新分配功能,命令如下。

```shell
sysctl vm.zone_reclaim_mode=0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ tablespace_encryption_option:
* `AES-192-GCM`:使用 192 位密钥的 GCM 模式。
* `SM4-CBC`:SM4 算法采用 CBC 模式,其中每个数据块都与前一个块加密后的输出进行异或操作再进行加密。
* `SM4-GCM`:SM4 算法采用 GCM 模式,此模式下 SM4 同时提供了数据加密和认证功能。

<main id="notice" type='explain'>
<h4>说明</h4>

<main id="notice" type='explain'>
<h4>说明</h4>
<p><ul><li>AES (Advanced Encryption Standard) 是一个对称加密算法,意味着相同的密钥用于加密和解密数据。AES 算法本身是基于区块加密的,通常以 128 位的区块对数据进行加密。</li><li>AES-GCM (Galois/Counter Mode) 是一种操作模式,用于对区块加密算法(如 AES)进行处理,提供加密和数据认证(也称为消息认证码)。</li><li>SM4 算法的区块长度是 128 位,密钥长度也是 128 位。</li></ul></p>
</main>

Expand Down

0 comments on commit 10d65e5

Please sign in to comment.