diff --git a/product/en/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md b/product/en/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md index a5adca3734ddeb8dd0f2c34be148abad5d6d387a..cb7ef16526c8c8e7fc7bb193835201150a8fcfaa 100644 --- a/product/en/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md +++ b/product/en/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md @@ -302,6 +302,41 @@ As you can see, the original standby database is writable after being switched a
+## Kubernetes-based Deployment + +MogDB 2.1.0 and later supports Kubernetes-based deployment. + +- x86 + + ``` + $ kubectl apply -f https://gitee.com/enmotech/enmotech-docker-mogdb/raw/master/2.1.0/k8s_amd.yaml + pod/mogdb created + ``` + +- arm + + ``` + $ kubectl apply -f https://gitee.com/enmotech/enmotech-docker-mogdb/raw/master/2.1.0/k8s_arm.yaml + pod/mogdb created + ``` + +- Kubernetes connect the pod + + Connect to MogDB through the gsql command in the pod. + + ``` + $ kubectl exec -it mogdb -- bash + root@mogdb:/# su - omm + omm@mogdb:~$ gsql -d postgres + gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) + Non-SSL connection (SSL connection is recommended when requiring high-security) + Type "help" for help. + + MogDB=# + ``` + +
+ ## What's Next MogDB container does not support MogHA and OM tools. It is only used for testing, and currently supports at most one primary node and eight standby nodes. MogDB Enterprise Edition includes MogHA component. The basic functions of the MogDB container and Enterprise Edition are identical. It is recommended that MogDB Enterprise Edition is used in the production environment. diff --git a/product/en/docs-mogdb/v2.1/installation-guide/simplified-installation-process/1-installation-preparation.md b/product/en/docs-mogdb/v2.1/installation-guide/simplified-installation-process/1-installation-preparation.md index 2f9ccb557cbc575f86ae51dc23145c1e3b55d8eb..0a194ea01be6a50d2a3d40ebdb4cb14018dee75f 100644 --- a/product/en/docs-mogdb/v2.1/installation-guide/simplified-installation-process/1-installation-preparation.md +++ b/product/en/docs-mogdb/v2.1/installation-guide/simplified-installation-process/1-installation-preparation.md @@ -85,6 +85,7 @@ Table 1 lists the minimum hardware requirements of the MogDB server. When planni | Software | Configuration Description | | :---------------- | :----------------------------------------------------------- | | rdtscp Instruction Set (x86) | Run the `lscpu | grep rdtscp` command to see if the rdtscp instruction set is supported. | +| bmi2 Instruction Set (CentOS) | Run the `lscpu | grep bmi2` command to see if the bmi2 instruction set is supported. | | Tool | bzip2 | ### Operating System Requirements diff --git a/product/en/docs-mogdb/v2.1/installation-guide/standard-installation/2-environment-requirement.md b/product/en/docs-mogdb/v2.1/installation-guide/standard-installation/2-environment-requirement.md index cfde59dfd200aad2a70daa41c19260f23cc2c2d5..ce0b3883799e878949800743ca745077bae5c11d 100644 --- a/product/en/docs-mogdb/v2.1/installation-guide/standard-installation/2-environment-requirement.md +++ b/product/en/docs-mogdb/v2.1/installation-guide/standard-installation/2-environment-requirement.md @@ -23,6 +23,7 @@ The following table describes the minimum hardware requirements of MogDB. When p | Software | Description | | ----------------- | ------------------------------------------------------------ | | rdtscp Instruction Set (x86) | Run the `lscpu | grep rdtscp` command to see if the rdtscp instruction set is supported. | +| bmi2 Instruction Set (CentOS) | Run the `lscpu | grep bmi2` command to see if the bmi2 instruction set is supported. | | Tool | Huawei JDK 1.8.0, psmisc, and bzip2 | | Python | - openEuler: Python 3.7.X is supported.
- CentOS: Python 3.6.X is supported.
- Kirin: Python 3.7.X is supported.
NOTE:
Python needs to be compiled in -enable-shared mode. | diff --git a/product/en/docs-mogdb/v2.1/quick-start/container-based-installation.md b/product/en/docs-mogdb/v2.1/quick-start/container-based-installation.md index fef49cd8aa7cca19a41a4514001eed6a061bd3eb..05a364da13e71c15eb570dd32043a85a0da45e6b 100644 --- a/product/en/docs-mogdb/v2.1/quick-start/container-based-installation.md +++ b/product/en/docs-mogdb/v2.1/quick-start/container-based-installation.md @@ -152,6 +152,41 @@ Specifies the database port. The default value is **5432**.
+## Kubernetes-based Deployment + +MogDB 2.1.0 and later supports Kubernetes-based deployment. + +- x86 + + ``` + $ kubectl apply -f https://gitee.com/enmotech/enmotech-docker-mogdb/raw/master/2.1.0/k8s_amd.yaml + pod/mogdb created + ``` + +- arm + + ``` + $ kubectl apply -f https://gitee.com/enmotech/enmotech-docker-mogdb/raw/master/2.1.0/k8s_arm.yaml + pod/mogdb created + ``` + +- Kubernetes connect the pod + + Connect to MogDB through the gsql command in the pod. + + ``` + $ kubectl exec -it mogdb -- bash + root@mogdb:/# su - omm + omm@mogdb:~$ gsql -d postgres + gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) + Non-SSL connection (SSL connection is recommended when requiring high-security) + Type "help" for help. + + MogDB=# + ``` + +
+ ## Sample dataset: Mogila MogDB Container Edition has a built-in sample dataset mogila. Mogila is a database representing a DVD rental store, containing information about films (like title, category, actresses), rental stores (like address, staff members, customers) and rentals, where a customer rents a film from a store through its staff. After installing MogDB Container Edition, you can use the mogila database for various functional tests. diff --git a/product/en/docs-mogdb/v2.1/source-code-parsing.md b/product/en/docs-mogdb/v2.1/source-code-parsing.md index 416787bc7e53c4805d42469b53715f21b5373d17..a8002a05a81bce2aa00c320ed9a69730f8248936 100644 --- a/product/en/docs-mogdb/v2.1/source-code-parsing.md +++ b/product/en/docs-mogdb/v2.1/source-code-parsing.md @@ -75,4 +75,12 @@ You can click the links below to view this series of articles. [AI Technology (Part 4): Metrics Collection, Prediction, and Anomaly Detection](https://www.modb.pro/db/245341) -[AI Technology (Part 5): AI Query Time Prediction](https://www.modb.pro/db/251405) \ No newline at end of file +[AI Technology (Part 5): AI Query Time Prediction](https://www.modb.pro/db/251405) + +[AI Technology (Part 6): DeepSQL](https://www.modb.pro/db/329691) + +## Parsing of Security Management Source Code + +[Parsing of Security Management Source Code (Part 1)](https://www.modb.pro/db/335331) + +[Parsing of Security Management Source Code (Part 2)](https://www.modb.pro/db/337160) \ No newline at end of file diff --git a/product/zh/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md b/product/zh/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md index 8840523250f3eb3e02c9112673f665ea5d6b4dda..61780bb704f0d9c16167942370f50a4b253e5d4e 100644 --- a/product/zh/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md +++ b/product/zh/docs-mogdb/v2.1/installation-guide/docker-installation/docker-installation.md @@ -306,6 +306,41 @@ delete from test;
+## Kubernetes部署 + +MogDB 2.1.0版本以后支持Kubernetes部署。 + +- x86 + + ``` + $ kubectl apply -f https://gitee.com/enmotech/enmotech-docker-mogdb/raw/master/2.1.0/k8s_amd.yaml + pod/mogdb created + ``` + +- arm + + ``` + $ kubectl apply -f https://gitee.com/enmotech/enmotech-docker-mogdb/raw/master/2.1.0/k8s_arm.yaml + pod/mogdb created + ``` + +- k8s连接pod + + 进入容器内通过gsql命令登录MogDB。 + + ``` + $ kubectl exec -it mogdb -- bash + root@mogdb:/# su - omm + omm@mogdb:~$ gsql -d postgres + gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) + Non-SSL connection (SSL connection is recommended when requiring high-security) + Type "help" for help. + + MogDB=# + ``` + +
+ ## 后续步骤 MogDB容器版不支持MogHA工具、OM工具,仅用于测试使用,目前最多支持一主八备。MogDB企业版包含MogHA组件。容器版与企业版基础功能完全一致,在生产环境中建议使用MogDB企业版。 diff --git a/product/zh/docs-mogdb/v2.1/installation-guide/simplified-installation-process/1-installation-preparation.md b/product/zh/docs-mogdb/v2.1/installation-guide/simplified-installation-process/1-installation-preparation.md index 656515a8e702c14cfbbe5fd3458145897251f7b7..76429518f85212a01b940826784e7b3afb93a752 100644 --- a/product/zh/docs-mogdb/v2.1/installation-guide/simplified-installation-process/1-installation-preparation.md +++ b/product/zh/docs-mogdb/v2.1/installation-guide/simplified-installation-process/1-installation-preparation.md @@ -87,6 +87,7 @@ date: 2021-06-11 | 软件类型 | 配置描述 | | :------------ | :----------------------------------------------------------- | | rdtscp指令集(x86) | 执行`lscpu | grep rdtscp`命令查看是否支持rdtscp指令集。 | +| bmi2指令集(CentOS) | 执行`lscpu | grep bmi2`命令查看是否支持bmi2指令集。 | | 工具 | bzip2 | ### 操作系统要求 diff --git a/product/zh/docs-mogdb/v2.1/installation-guide/standard-installation/2-environment-requirement.md b/product/zh/docs-mogdb/v2.1/installation-guide/standard-installation/2-environment-requirement.md index 1a2bd3810ae058c5df04649fc0ede73a568b478a..9402821bd266f6dbb6f9514752a83347c342c681 100644 --- a/product/zh/docs-mogdb/v2.1/installation-guide/standard-installation/2-environment-requirement.md +++ b/product/zh/docs-mogdb/v2.1/installation-guide/standard-installation/2-environment-requirement.md @@ -23,6 +23,7 @@ date: 2021-04-2 | 软件类型 | 配置描述 | | ------------- | ------------------------------------------------------------ | | rdtscp指令集(x86) | 执行`lscpu | grep rdtscp`命令查看是否支持rdtscp指令集。 | +| bmi2指令集(CentOS) | 执行`lscpu | grep bmi2`命令查看是否支持bmi2指令集。 | | 工具 | Huawei JDK 1.8.0、psmisc、bzip2 | | Python | - openEuler:支持Python 3.7.X
- CentOS:支持Python 3.6.X
- 麒麟:支持Python 3.7.X
说明:
python需要通过-enable-shared方式编译。 | diff --git a/product/zh/docs-mogdb/v2.1/quick-start/container-based-installation.md b/product/zh/docs-mogdb/v2.1/quick-start/container-based-installation.md index c2ff5a1ee1273fdfa61944a241bf388beffd28a9..3df3f7c8bdae3795b1419172f9652b370bda0792 100644 --- a/product/zh/docs-mogdb/v2.1/quick-start/container-based-installation.md +++ b/product/zh/docs-mogdb/v2.1/quick-start/container-based-installation.md @@ -148,6 +148,41 @@ MogDB的密码有复杂度要求,密码长度8个字符以上,必须同时
+## Kubernetes部署 + +MogDB 2.1.0版本以后支持Kubernetes部署。 + +- x86 + + ``` + $ kubectl apply -f https://gitee.com/enmotech/enmotech-docker-mogdb/raw/master/2.1.0/k8s_amd.yaml + pod/mogdb created + ``` + +- arm + + ``` + $ kubectl apply -f https://gitee.com/enmotech/enmotech-docker-mogdb/raw/master/2.1.0/k8s_arm.yaml + pod/mogdb created + ``` + +- k8s连接pod + + 进入容器内通过gsql命令登录MogDB。 + + ``` + $ kubectl exec -it mogdb -- bash + root@mogdb:/# su - omm + omm@mogdb:~$ gsql -d postgres + gsql ((MogDB 2.1.0 build 56189e20) compiled at 2022-01-07 18:47:53 commit 0 last mr ) + Non-SSL connection (SSL connection is recommended when requiring high-security) + Type "help" for help. + + MogDB=# + ``` + +
+ ## Mogila样本数据集 MogDB容器版内置了一个样本数据库mogila,该数据库是一个关于DVD出租店信息的数据库,包含有关电影(如标题、类别、女演员)、出租店(如地址、工作人员、客户)和出租的信息,其中一位顾客通过店员从一家商店租了一部影片。安装完MogDB容器版之后,您可以使用mogila数据库进行各种功能测试。 diff --git a/product/zh/docs-mogdb/v2.1/source-code-parsing.md b/product/zh/docs-mogdb/v2.1/source-code-parsing.md index 078b4302ff30cf44fe1b343c7f87b13857d15d87..51cbbeeaa8ce320279e7dc9d03e58accef6b8219 100644 --- a/product/zh/docs-mogdb/v2.1/source-code-parsing.md +++ b/product/zh/docs-mogdb/v2.1/source-code-parsing.md @@ -75,4 +75,12 @@ date: 2022-02-07 [AI技术(四):指标采集、预测与异常检测](https://www.modb.pro/db/245341) -[AI技术(五):AI查询时间预测](https://www.modb.pro/db/251405) \ No newline at end of file +[AI技术(五):AI查询时间预测](https://www.modb.pro/db/251405) + +[AI技术(六):DeepSQL](https://www.modb.pro/db/329691) + +## 安全管理源码解析 + +[安全管理源码解析(一)](https://www.modb.pro/db/335331) + +[安全管理源码解析(二)](https://www.modb.pro/db/337160) \ No newline at end of file