From d17f21c873565a60f2abb6b5f704491a9a95cca8 Mon Sep 17 00:00:00 2001 From: spaceoddity91719 Date: Mon, 7 Mar 2022 16:17:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ek8s=E9=83=A8=E7=BD=B2+?= =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=BA=90=E7=A0=81=E8=A7=A3=E6=9E=90+?= =?UTF-8?q?=E4=BC=98=E5=8C=96CentOS=E6=A0=87=E5=87=86=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E8=A6=81=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../docker-installation.md | 35 +++++++++++++++++++ .../1-installation-preparation.md | 1 + .../2-environment-requirement.md | 1 + .../container-based-installation.md | 35 +++++++++++++++++++ .../en/docs-mogdb/v2.1/source-code-parsing.md | 10 +++++- .../docker-installation.md | 35 +++++++++++++++++++ .../1-installation-preparation.md | 1 + .../2-environment-requirement.md | 1 + .../container-based-installation.md | 35 +++++++++++++++++++ .../zh/docs-mogdb/v2.1/source-code-parsing.md | 10 +++++- 10 files changed, 162 insertions(+), 2 deletions(-) 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 a5adca37..cb7ef165 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 2f9ccb55..0a194ea0 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 cfde59df..ce0b3883 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 fef49cd8..05a364da 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 416787bc..a8002a05 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 88405232..61780bb7 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 656515a8..76429518 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 1a2bd381..9402821b 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 c2ff5a1e..3df3f7c8 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 078b4302..51cbbeea 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 -- Gitee