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

2.5.0 update task #461

Merged
merged 6 commits into from
Sep 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,42 +4,42 @@ task:
steps:
# utf8mb4_bin‘value is 46
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="collation_connection" and TENANT_ID>1000 and VALUE<>46;'
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="collation_connection" and TENANT_ID>1000 AND TENANT_ID%2=0 and VALUE<>46;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'collation_connection is recommended utf8mb4_bin. There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="collation_server" and TENANT_ID>1000 and VALUE<>46;'
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="collation_server" and TENANT_ID>1000 AND TENANT_ID%2=0 and VALUE<>46;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'collation_server is recommended utf8mb4_bin. There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="ob_query_timeout" and TENANT_ID>1000 and VALUE<=10000000000;'
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="ob_query_timeout" and TENANT_ID>1000 AND TENANT_ID%2=0 and VALUE<=10000000000;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'ob_query_timeout is recommended 10000000000. There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="ob_trx_timeout" and TENANT_ID>1000 and VALUE<=100000000000;'
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="ob_trx_timeout" and TENANT_ID>1000 AND TENANT_ID%2=0 and VALUE<=100000000000;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'ob_query_timeout is recommended 100000000000. There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="ob_sql_work_area_percentage" and TENANT_ID>1000 and VALUE<=30;'
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.`CDB_OB_SYS_VARIABLES` where name ="ob_sql_work_area_percentage" and TENANT_ID>1000 AND TENANT_ID%2=0 and VALUE<=30;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'ob_sql_work_area_percentage is recommended 30. There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.CDB_OB_SYS_VARIABLES where name ="max_allowed_packet" and TENANT_ID>1000 and VALUE<=67108864;'
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.CDB_OB_SYS_VARIABLES where name ="max_allowed_packet" and TENANT_ID>1000 AND TENANT_ID%2=0 and VALUE<67108864;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
Expand All @@ -54,42 +54,42 @@ task:
err_msg: 'default_table_store_format is recommended "column". There are some tenant need change: #{tenant_ids}'
# auto’s value is 1
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.CDB_OB_SYS_VARIABLES where name ="parallel_degree_policy" and TENANT_ID>1000 and value<>1;'
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.CDB_OB_SYS_VARIABLES where name ="parallel_degree_policy" and TENANT_ID>1000 AND TENANT_ID%2=0 and value<>1;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'parallel_degree_policy is recommended "auto". There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.CDB_OB_SYS_VARIABLES where name ="parallel_min_scan_time_threshold" and TENANT_ID>1000 and value>10;'
sql: 'SELECT GROUP_CONCAT(DISTINCT tenant_id) from oceanbase.CDB_OB_SYS_VARIABLES where name ="parallel_min_scan_time_threshold" and TENANT_ID>1000 AND TENANT_ID%2=0 and value>10;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'parallel_min_scan_time_threshold is recommended "10". There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT a.TENANT_ID) from oceanbase.DBA_OB_TENANTS a, oceanbase.GV$OB_UNITS b , oceanbase.CDB_OB_SYS_VARIABLES c WHERE a.TENANT_ID=b.TENANT_ID and a.TENANT_ID=c.TENANT_ID and a.TENANT_ID>1000 and b.MIN_CPU >0 and c.name ="parallel_servers_target" and b.MIN_CPU*10<>c.value;'
sql: 'SELECT GROUP_CONCAT(DISTINCT a.TENANT_ID) from oceanbase.DBA_OB_TENANTS a, oceanbase.GV$OB_UNITS b , oceanbase.CDB_OB_SYS_VARIABLES c WHERE a.TENANT_ID=b.TENANT_ID and a.TENANT_ID=c.TENANT_ID and a.TENANT_ID>1000 AND a.TENANT_ID%2=0 and b.MIN_CPU >0 and c.name ="parallel_servers_target" and b.MIN_CPU*10<>c.value;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'parallel_servers_target is recommended cpu_count*10. There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT a.TENANT_ID) from oceanbase.DBA_OB_TENANTS a, oceanbase.GV$OB_UNITS b , oceanbase.CDB_OB_SYS_VARIABLES c WHERE a.TENANT_ID=b.TENANT_ID and a.TENANT_ID=c.TENANT_ID and a.TENANT_ID>1000 and b.MIN_CPU >0 and c.name ="parallel_degree_limit" and b.MIN_CPU*2<>c.value;'
sql: 'SELECT GROUP_CONCAT(DISTINCT a.TENANT_ID) from oceanbase.DBA_OB_TENANTS a, oceanbase.GV$OB_UNITS b , oceanbase.CDB_OB_SYS_VARIABLES c WHERE a.TENANT_ID=b.TENANT_ID and a.TENANT_ID=c.TENANT_ID and a.TENANT_ID>1000 AND a.TENANT_ID%2=0 and b.MIN_CPU >0 and c.name ="parallel_degree_limit" and b.MIN_CPU*2<>c.value;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'parallel_degree_limit is recommended cpu_count*2. There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT a.TENANT_ID) FROM oceanbase.DBA_OB_TENANTS a, oceanbase.GV$OB_UNITS b , oceanbase.GV$OB_PARAMETERS c WHERE a.TENANT_ID=b.TENANT_ID and a.TENANT_ID=c.TENANT_ID and a.TENANT_ID>1000 and b.MIN_CPU >0 and c.name ="compaction_low_thread_score" and b.MIN_CPU<>c.value;'
sql: 'SELECT GROUP_CONCAT(DISTINCT a.TENANT_ID) FROM oceanbase.DBA_OB_TENANTS a, oceanbase.GV$OB_UNITS b , oceanbase.GV$OB_PARAMETERS c WHERE a.TENANT_ID=b.TENANT_ID and a.TENANT_ID=c.TENANT_ID and a.TENANT_ID>1000 AND a.TENANT_ID%2=0 and b.MIN_CPU >0 and c.name ="compaction_low_thread_score" and b.MIN_CPU<>c.value;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
report_type: warning
err_msg: 'compaction_low_thread_score is recommended equal cpu_count. There are some tenant need change: #{tenant_ids}'
- type: sql
sql: 'SELECT GROUP_CONCAT(DISTINCT a.TENANT_ID) FROM oceanbase.DBA_OB_TENANTS a, oceanbase.GV$OB_UNITS b , oceanbase.GV$OB_PARAMETERS c WHERE a.TENANT_ID=b.TENANT_ID and a.TENANT_ID=c.TENANT_ID and a.TENANT_ID>1000 and b.MIN_CPU >0 and c.name ="compaction_mid_thread_score" and b.MIN_CPU<>c.value;'
sql: 'SELECT GROUP_CONCAT(DISTINCT a.TENANT_ID) FROM oceanbase.DBA_OB_TENANTS a, oceanbase.GV$OB_UNITS b , oceanbase.GV$OB_PARAMETERS c WHERE a.TENANT_ID=b.TENANT_ID and a.TENANT_ID=c.TENANT_ID and a.TENANT_ID>1000 AND a.TENANT_ID%2=0 and b.MIN_CPU >0 and c.name ="compaction_mid_thread_score" and b.MIN_CPU<>c.value;'
result:
set_value: tenant_ids
verify: '[ -z "$tenant_ids" ]'
Expand Down
Loading