Skip to content

Commit

Permalink
change name cpu_hard_quota_limit to cpu_max_percent (#15782)
Browse files Browse the repository at this point in the history
As title said, change name "cpu_hard_quota_limit" to "cpu_max_percent".
  • Loading branch information
SmartKeyerror authored and foreyes committed Jul 4, 2024
1 parent 7a05699 commit afe8748
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/test/isolation2/expected/resgroup/resgroup_syntax.out
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ SELECT groupname,cpu_max_percent,cpuset FROM gp_toolkit.gp_resgroup_config WHERE
DROP RESOURCE GROUP rg_test_group;
DROP

-- test set cpu_hard_quota_limit to high value when gp_resource_group_cpu_limit is low
-- test set cpu_max_percent to high value when gp_resource_group_cpu_limit is low
-- start_ignore
!\retcode gpconfig -c gp_resource_group_cpu_limit -v 0.5;
-- start_ignore
Expand All @@ -521,9 +521,9 @@ DROP
-- end_ignore
(exited with code 0)
-- end_ignore
0: CREATE RESOURCE GROUP rg_test_group WITH (cpu_hard_quota_limit=10);
0: CREATE RESOURCE GROUP rg_test_group WITH (cpu_max_percent=10);
CREATE
0: ALTER RESOURCE GROUP rg_test_group SET cpu_hard_quota_limit 100;
0: ALTER RESOURCE GROUP rg_test_group SET cpu_max_percent 100;
ALTER
0: DROP RESOURCE GROUP rg_test_group;
DROP
Expand Down
2 changes: 1 addition & 1 deletion src/test/isolation2/isolation2_resgroup_v1_schedule
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test: resgroup/resgroup_seg_down_2pc
# functions
test: resgroup/resgroup_concurrency
test: resgroup/resgroup_alter_concurrency
test: resgroup/resgroup_cpu_hard_quota
test: resgroup/resgroup_cpu_max_percent
test: resgroup/resgroup_cpuset
test: resgroup/resgroup_cpuset_empty_default
test: resgroup/resgroup_cancel_terminate_concurrency
Expand Down
2 changes: 1 addition & 1 deletion src/test/isolation2/isolation2_resgroup_v2_schedule
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ test: resgroup/resgroup_seg_down_2pc
# functions
test: resgroup/resgroup_concurrency
test: resgroup/resgroup_alter_concurrency
test: resgroup/resgroup_cpu_hard_quota
test: resgroup/resgroup_cpu_max_percent
test: resgroup/resgroup_cpuset
test: resgroup/resgroup_cpuset_empty_default
test: resgroup/resgroup_cancel_terminate_concurrency
Expand Down
6 changes: 3 additions & 3 deletions src/test/isolation2/sql/resgroup/resgroup_syntax.sql
Original file line number Diff line number Diff line change
Expand Up @@ -256,13 +256,13 @@ ALTER RESOURCE GROUP rg_test_group SET cpu_max_percent 10;
SELECT groupname,cpu_max_percent,cpuset FROM gp_toolkit.gp_resgroup_config WHERE groupname='rg_test_group';
DROP RESOURCE GROUP rg_test_group;

-- test set cpu_hard_quota_limit to high value when gp_resource_group_cpu_limit is low
-- test set cpu_max_percent to high value when gp_resource_group_cpu_limit is low
-- start_ignore
!\retcode gpconfig -c gp_resource_group_cpu_limit -v 0.5;
!\retcode gpstop -ari;
-- end_ignore
0: CREATE RESOURCE GROUP rg_test_group WITH (cpu_hard_quota_limit=10);
0: ALTER RESOURCE GROUP rg_test_group SET cpu_hard_quota_limit 100;
0: CREATE RESOURCE GROUP rg_test_group WITH (cpu_max_percent=10);
0: ALTER RESOURCE GROUP rg_test_group SET cpu_max_percent 100;
0: DROP RESOURCE GROUP rg_test_group;
-- start_ignore
!\retcode gpconfig -c gp_resource_group_cpu_limit -v 1;
Expand Down

0 comments on commit afe8748

Please sign in to comment.