-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add check's cases about core_pattern tenant_number
- Loading branch information
1 parent
7089ec3
commit c81e94b
Showing
2 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
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,19 @@ | ||
info: "Check the number of tenant" | ||
task: | ||
- version: "[4.0.0.0,*]" | ||
steps: | ||
- type: sql | ||
sql: 'select count(0)/2 from oceanbase.__all_tenant where tenant_id>1000;' | ||
result: | ||
set_value: tenant_nu | ||
verify_type: max | ||
verify: 100 | ||
err_msg: "The number of tenants: #{tenant_nu}.recommended: tenant_nu<50" | ||
- type: sql | ||
sql: 'select count(0)/2 from oceanbase.__all_tenant where tenant_id>1000;' | ||
result: | ||
set_value: tenant_nu | ||
verify_type: max | ||
report_type: warning | ||
verify: 50 | ||
err_msg: "The number of tenants: #{tenant_nu}.recommended: tenant_nu<50" |
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,11 @@ | ||
info: 'Check kernel.core_pattern' | ||
task: | ||
- steps: | ||
- type: get_system_parameter | ||
parameter: kernel.core_pattern | ||
result: | ||
set_value: core_pattern | ||
verify: "[[ $core_pattern == *" "* ]]" | ||
err_msg: 'clock_source: #{clock_source}. recommended: tsc. Uneven CPU utilization during pressure testing resulted in low TPS during pressure testing' | ||
|
||
|