Skip to content

Commit 1530c14

Browse files
authored
update docs (#142)
* update docs * init obd developer environment * update en docs
1 parent a52cc3c commit 1530c14

File tree

4 files changed

+33
-26
lines changed

4 files changed

+33
-26
lines changed

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -60,23 +60,25 @@ source /etc/profile.d/obd.sh
6060

6161
## Start an OceanBase cluster
6262

63-
After you install OBD, you can run these commands as the root user to start a local single-node OceanBase cluster.
64-
Before you run the commands, make sure that these conditions are met:
63+
After you deploy OceanBase Deployer (OBD), you can run the `obd demo` command to deploy and start OceanBase Database on a single local server. Make sure the following prerequisites are met:
6564

66-
- You have logged on as the root user.
67-
- Ports `2882` and `2883` are available.
68-
- Your server has at least 8 GB of memory.
69-
- Your server has at least 2 CPU cores.
65+
- Ports `2881` and `2882` are not occupied.
7066

71-
> **NOTE:** If the preceding conditions are not met, see [Use OBD to start an OceanBase cluster](./docs/en-US/3.user-guide/2.start-the-oceanbase-cluster-by-using-obd.md).
67+
- At least 6 GB of memory is available on the server.
7268

73-
> **NOTE:** For the convenience of using root here, OBD and OceanBase database do not have any restrictions on running users. We do not recommend that you use root in production.
69+
- At least two CPU cores are available on the server.
70+
71+
- At least 54 GB of disk space is available on the server.
72+
73+
> **Note**
74+
>
75+
> If the foregoing prerequisites are not met, see [Use OBD to start an OceanBase cluster](../3.user-guide/2.start-the-oceanbase-cluster-by-using-obd.md).
7476
7577
```shell
76-
obd cluster deploy c1 -c ./example/mini-local-example.yaml
77-
obd cluster start c1
78-
# Connect to the OceanBase Database by using a MySQL client.
79-
mysql -h127.1 -uroot -P2883
78+
# Deploy and start OceanBase Database.
79+
obd demo
80+
# Run the following command to connect to OceanBase Database by using the OBClient:
81+
obclient -h127.0.0.1 -uroot -P2881
8082
```
8183

8284
## Use OBD to start an OceanBase cluster
Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,22 @@
11
# Start an OceanBase cluster
22

3-
After you install OBD, you can run these commands as the root user to start a local single-node OceanBase cluster.
4-
Before you run the commands, make sure that these conditions are met:
3+
After you deploy OceanBase Deployer (OBD), you can run the `obd demo` command to deploy and start OceanBase Database on a single local server. Make sure the following prerequisites are met:
54

6-
- You have logged on as the root user.
7-
- Ports `2882` and `2883` are available.
8-
- Your server has at least 8 GB of memory.
9-
- Your server has at least 2 CPU cores.
5+
- Ports `2881` and `2882` are not occupied.
106

11-
> **NOTE:** If the preceding conditions are not met, see [Use OBD to start an OceanBase cluster](../3.user-guide/2.start-the-oceanbase-cluster-by-using-obd.md).
7+
- At least 6 GB of memory is available on the server.
128

13-
> **NOTE:** For the convenience of using root here, OBD and OceanBase database do not have any restrictions on running users. We do not recommend that you use root in production.
9+
- At least two CPU cores are available on the server.
10+
11+
- At least 54 GB of disk space is available on the server.
12+
13+
> **Note**
14+
>
15+
> If the foregoing prerequisites are not met, see [Use OBD to start an OceanBase cluster](../3.user-guide/2.start-the-oceanbase-cluster-by-using-obd.md).
1416
1517
```shell
16-
obd cluster deploy c1 -c ./example/mini-local-example.yaml
17-
obd cluster start c1
18-
# Connect to the OceanBase Database by using a MySQL client.
19-
mysql -h127.1 -uroot -P2883
18+
# Deploy and start OceanBase Database.
19+
obd demo
20+
# Run the following command to connect to OceanBase Database by using the OBClient:
21+
obclient -h127.0.0.1 -uroot -P2881
2022
```

docs/en-US/3.user-guide/3.obd-command/3.test-command-group.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ obd test sysbench <deploy name> [flags]
6666

6767
`deploy name` specifies the name of the deployment configuration file.
6868

69+
This table describes the corresponding options.
70+
6971
| Option | Required | Data type | Default value | Description |
7072
--- | --- | --- |--- | ---
7173
| -c/--component | No | string | | The name of the component to be tested. Valid values: `oceanbase-ce`, `oceanbase`, `obproxy-ce` and `obproxy`. If you do not specify a value, the existence of `obproxy`, `obproxy-ce`, `oceanbase`, `oceanbase-ce` is checked sequentially. The traversal stops when a component is found, and the component is then tested. |
@@ -83,6 +85,7 @@ obd test sysbench <deploy name> [flags]
8385
| --threads | No | int | 16 | The number of threads to be started. |
8486
| --time | No | int | 60 | The running duration. When this option is set to 0, the running duration is not limited. |
8587
| --interval | No | int | 10 | The logging interval, in seconds. |
88+
| --mysql-ignore-errors | No | String | 1062 | The error code to be ignored. Separate multiple error codes with commas (,). The value `all` indicates to ignore all errors. |
8689
| --events | No | int | 0 | The maximum number of requests. If this option is specified, the --time option is not needed. |
8790
| --rand-type | No | string | | The random number generation function used for data access. Valid values: special, uniform, gaussian, and pareto. Default value: special, early value: uniform. |
8891
| ---skip-trx | No | string | | Specifies whether to enable or disable a transaction in a read-only test. |

docs/en-US/5.faq/1.faq.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ obd mirror clone ob-deploy-x.x.x-xxx.rpm
4848
obd mirror disable remote
4949
```
5050

51-
## QHow to update OBD?
51+
## Q: How to update OBD?
5252

53-
AThere are two ways to update your OBD, which you can choose from depending on your situation:
53+
A: There are two ways to update your OBD, which you can choose from depending on your situation:
5454

5555
+ If your machine can connect to the public network or have the RPM package for the updated OBD in the mirror you configured, you can directly use the `obd update` command to update the OBD. When you finish with the update, use the `obd --version` command to check the version of OBD and confirm whether the update is successful.
5656
+ If your machine cannot connect to the public network and there is no RPM package for the updated OBD in the mirror you configured. Please add the RPM package that used to update OBD to the local mirror via `obd mirror clone` command first, and then use the `obd update` command to update the OBD.

0 commit comments

Comments
 (0)