forked from TencentBlueKing/blueking-dbm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(mongodb): 修复MongoDB2.4版本创建管理用户权限和完善MongoDB原子任务example文档 TencentBl…
- Loading branch information
yyhenryyy
committed
Jun 6, 2024
1 parent
c355d80
commit ff5778a
Showing
24 changed files
with
634 additions
and
119 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
dbm-services/mongodb/db-tools/dbactuator/example/cluster_balancer.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
### mongod_replace | ||
### cluster_balancer | ||
初始化新机器: | ||
|
||
```json | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
dbm-services/mongodb/db-tools/dbactuator/example/mongo_replace_package.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
### replace_package | ||
初始化新机器: | ||
|
||
```json | ||
./dbactuator_redis --uid={{uid}} --root_id={{root_id}} --node_id={{node_id}} --version_id={{version_id}} --atom-job-list="replace_package" --payload='{{payload_base64}}' | ||
``` | ||
|
||
|
||
原始payload | ||
|
||
```json | ||
{ | ||
"mediapkg": { | ||
"pkg": "", | ||
"pkg_md5": "xxx" | ||
}, | ||
"ip":"1.1.1.1", | ||
"port":27021, | ||
"dbVersion":"3.4.20", | ||
"instanceType": "mongod" | ||
} | ||
``` | ||
|
||
"instanceType" 为mongod或mongos |
23 changes: 23 additions & 0 deletions
23
dbm-services/mongodb/db-tools/dbactuator/example/mongo_set_fcv.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
### mongo_set_fcv | ||
初始化新机器: | ||
|
||
```json | ||
./dbactuator_redis --uid={{uid}} --root_id={{root_id}} --node_id={{node_id}} --version_id={{version_id}} --atom-job-list="mongo_set_fcv" --payload='{{payload_base64}}' | ||
``` | ||
|
||
|
||
原始payload | ||
|
||
```json | ||
{ | ||
"ip":"1.1.1.1", | ||
"port":27021, | ||
"oldFcv": "4.0", | ||
"newFcv": "4.2", | ||
"instanceType": "mongod", | ||
"adminUsername":"xxx", | ||
"adminPassword":"xxxxxxx", | ||
} | ||
``` | ||
|
||
"instanceType" 参数可选值: mongod, mongos |
25 changes: 25 additions & 0 deletions
25
dbm-services/mongodb/db-tools/dbactuator/example/mongo_set_profilter.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
### mongo_set_profiler | ||
初始化新机器: | ||
|
||
```json | ||
./dbactuator_redis --uid={{uid}} --root_id={{root_id}} --node_id={{node_id}} --version_id={{version_id}} --atom-job-list="mongo_set_profiler" --data_dir=/path/to/data --backup_dir=/path/to/backup --user="xxx" --group="xxx" --payload='{{payload_base64}}' | ||
``` | ||
|
||
|
||
原始payload | ||
|
||
```json | ||
{ | ||
"ip":"xxx", | ||
"port":"xxxxxxx", | ||
"dbName": "xxx", | ||
"level": 2, | ||
"profileSize": 4, | ||
"adminUsername": "xxx", | ||
"adminPassword": "xxx" | ||
} | ||
``` | ||
|
||
"level" 有三个级别,0关闭profiler,1记录超过慢语句阈值的语句,2记录所有的语句 | ||
|
||
"profileSize" 记录语句的集合大小 |
20 changes: 20 additions & 0 deletions
20
dbm-services/mongodb/db-tools/dbactuator/example/mongo_start_process.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### mongo_start | ||
初始化新机器: | ||
|
||
```json | ||
./dbactuator_redis --uid={{uid}} --root_id={{root_id}} --node_id={{node_id}} --version_id={{version_id}} --atom-job-list="mongo_start" --payload='{{payload_base64}}' | ||
``` | ||
|
||
|
||
原始payload | ||
|
||
```json | ||
{ | ||
"ip":"1.1.1.1", | ||
"port":27021, | ||
"instanceType":"mongod", | ||
"auth": true | ||
} | ||
``` | ||
|
||
"instanceType" 参数可选值: mongod, mongos |
20 changes: 20 additions & 0 deletions
20
...services/mongodb/db-tools/dbactuator/example/mongod_change_oplogsize.example.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### mongod_change_oplogsize | ||
初始化新机器: | ||
|
||
```json | ||
./dbactuator_redis --uid={{uid}} --root_id={{root_id}} --node_id={{node_id}} --version_id={{version_id}} --atom-job-list="mongod_change_oplogsize" --payload='{{payload_base64}}' | ||
``` | ||
|
||
|
||
原始payload | ||
|
||
```json | ||
{ | ||
"ip":"1.1.1.1", | ||
"port":27021, | ||
"adminUsername":"xxx", | ||
"adminPassword":"xxxxxxx", | ||
"newOplogSize": 10 | ||
} | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ | |
"targetHidden":"" | ||
} | ||
``` | ||
|
||
"sourceDown" 源端是否已down机 | ||
"targetPriority"可以指定替换节点的优先级 | ||
"targetHidden"可以指定替换节点是否为隐藏节点 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.