Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update check task: cluster.datafile_next #673

Merged
merged 9 commits into from
Jan 9, 2025
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
Loading