Skip to content

Commit

Permalink
update check task: cluster.datafile_next (#673)
Browse files Browse the repository at this point in the history
* fix: major_hold_scene dmesg get

 add: version check task

* rca disconnection support env  'from' 'to'

* rca disconnection support env  'from' 'to'

* rca disconnection support env  'from' 'to'

* add check core_file is exist by kernel.core_pattern

* update check task: cluster.datafile_next
  • Loading branch information
wayyoungboy authored Jan 9, 2025
1 parent 9e0e5d4 commit 7121784
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion plugins/check/tasks/observer/cluster/datafile_next.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,15 @@ task:
- version: "[4.0.0.0,*]"
steps:
- type: sql
sql: "select value from oceanbase.gv$ob_parameters where name = 'datafile_next' and svr_ip = '#{remote_ip}' and svr_port = '#{remote_port}';"
sql: "select value from oceanbase.gv$ob_parameters where name = 'datafile_maxsize' and svr_ip = '#{remote_ip}' ;"
result:
set_value: datafile_maxsize
report_type: execution
verify_type: equal
verify: 0
err_msg: "[not warning] node: #{remote_ip} datafile_maxsize is not 0, need check datafile_next."
- type: sql
sql: "select value from oceanbase.gv$ob_parameters where name = 'datafile_next' and svr_ip = '#{remote_ip}' ;"
result:
set_value: datafile_next
report_type: warning
Expand Down

0 comments on commit 7121784

Please sign in to comment.