Skip to content

Commit

Permalink
add check's cases about core_pattern tenant_number
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Apr 24, 2024
1 parent 7089ec3 commit c81e94b
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
19 changes: 19 additions & 0 deletions handler/checker/tasks/observer/cluster/tenant_number.yaml
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"
11 changes: 11 additions & 0 deletions handler/checker/tasks/observer/system/core_pattern.yaml
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'


0 comments on commit c81e94b

Please sign in to comment.