select SET_DATA_COLLECTOR_POLICY('TupleMoverEvents', '1000', '100000');
select SET_DATA_COLLECTOR_POLICY('Errors', '1000', '100000');
3.PARAMETER MaxClientSessions: for concurrent queries and data loading jobs
select set_config_parameter('MaxClientSessions', 500);
select set_config_parameter('ActivePartitionCount', 1);
select set_config_parameter('MoveOutInterval', 1800);
select set_config_parameter('MoveOutMaxAgeTime', 1800);
select set_config_parameter('MoveOutSizePct', 95);
select set_config_parameter('MergeOutInterval', 300);
select set_config_parameter('ContainersPerProjectionLimit', 102400);
5.for extension
select ENABLE_LOCAL_SEGMENTS();
---- 24->32, default: 4
select SET_SCALING_FACTOR(4);
6.for loading
select set_config_parameter('MaxDesiredEEBlockSize',33554432);
SELECT SET_CONFIG_PARAMETER('ParallelizeLocalSegmentLoad', '1');
alter resource pool general priority 2 plannedconcurrency 12 maxconcurrency 10 queuetimeout 600;
9.RESOURCE POOL load_pool:
alter resource pool load_pool priority 2 runtimepriority MEDIUM plannedconcurrency 12 maxconcurrency 5 queuetimeout NONE;
-- set session resource_pool=load_pool;
10.RESOURCE POOL app_pool:
alter resource pool app_pool priority 2 plannedconcurrency 12 maxconcurrency 10 queuetimeout 600;
alter resource pool app_pool queuetimeout 1200;
alter resource pool web_pool priority 100 memorysize '5G' maxmemorysize '10G' plannedconcurrency 12 maxconcurrency 10 queuetimeout 600;
alter resource pool web_pool priority 100 memorysize '5G' maxmemorysize '10G';
alter resource pool wosdata memorysize '24G' maxmemorysize '24G';
alter resource pool tm memorysize '1G' plannedconcurrency 3 maxconcurrency 4;
14.view modified parameters
select node_name, parameter_name, current_value, default_value from configuration_parameters where current_value <> default_value order by 2, 1;
/*
node_name | parameter_name | current_value | default_value
-----------+------------------------------+---------------+---------------
ALL | ContainersPerProjectionLimit | 102400 | 1024
ALL | MaxClientSessions | 500 | 50
ALL | MaxDesiredEEBlockSize | 33554432 | 8388608
ALL | MergeOutInterval | 300 | 600
ALL | MoveOutInterval | 1800 | 300
(5 rows)
*/
select * from elastic_cluster;
select * from resource_pools
where name not in (select name from resource_pool_defaults);
/*
pool_id | name | is_internal | memorysize | maxmemorysize | executionparallelism | priority | runtimepriority | runtimeprioritythreshold | queuetimeout | plannedconcurrency | maxconcurrency | runtimecap | singleinitiator
-------------------+-----------+-------------+------------+---------------+----------------------+----------+-----------------+--------------------------+--------------+--------------------+----------------+------------+-----------------
pool_id | name | is_internal | memorysize | maxmemorysize | executionparallelism | priority | runtimepriority | runtimeprioritythreshold | queuetimeout | plannedconcurrency | maxconcurrency | runtimecap | singleinitiator
-------------------+-----------+-------------+------------+---------------+----------------------+----------+-----------------+--------------------------+--------------+--------------------+----------------+------------+-----------------
45035996517090874 | load_pool | f | 0% | | AUTO | 2 | MEDIUM | 2 | -1 | 12 | 5 | | f
45035997831587844 | app_pool | f | 0% | | AUTO | 2 | MEDIUM | 2 | 600 | 12 | 10 | | f
58546795771314766 | web_pool | f | 1G | 5G | AUTO | 5 | MEDIUM | 2 | 300 | 10 | 12 | | f
(3 rows)
*/
select c.* from resource_pools c, resource_pool_defaults d
where c.name=d.name
and (
c.memorysize::varchar <> d.memorysize::varchar
or c.maxmemorysize::varchar <> d.maxmemorysize::varchar
or c.executionparallelism::varchar <> d.executionparallelism::varchar
or c.priority::varchar <> d.priority::varchar
or c.runtimepriority::varchar <> d.runtimepriority::varchar
or c.runtimeprioritythreshold::varchar <> d.runtimeprioritythreshold::varchar
or c.queuetimeout::varchar <> d.queuetimeout::varchar
or c.runtimecap::varchar <> d.runtimecap::varchar
or c.plannedconcurrency::varchar <> d.plannedconcurrency::varchar
or c.maxconcurrency::varchar <> d.maxconcurrency::varchar
or c.singleinitiator::varchar <> d.singleinitiator::varchar
);
/*
pool_id | name | is_internal | memorysize | maxmemorysize | executionparallelism | priority | runtimepriority | runtimeprioritythreshold | queuetimeout | plannedconcurrency | maxconcurrency | runtimecap | singleinitiator
-------------------+---------+-------------+------------+---------------+----------------------+----------+-----------------+--------------------------+--------------+--------------------+----------------+------------+-----------------
45035996273718910 | general | t | | Special: 95% | AUTO | 2 | MEDIUM | 2 | 600 | 12 | 10 | | f
45035996273718920 | refresh | t | 4G | | AUTO | 10 | HIGH | 60 | 300 | 8 | 8 | | t
45035996273718918 | tm | t | 1G | | AUTO | 105 | MEDIUM | 60 | 300 | 3 | 4 | | t
45035996273718916 | wosdata | t | 24G | 24G | | | | | | AUTO | | |
(4 rows)
*/
select d.* from resource_pools c, resource_pool_defaults d
where c.name=d.name
and (
c.memorysize::varchar <> d.memorysize::varchar
or c.maxmemorysize::varchar <> d.maxmemorysize::varchar
or c.executionparallelism::varchar <> d.executionparallelism::varchar
or c.priority::varchar <> d.priority::varchar
or c.runtimepriority::varchar <> d.runtimepriority::varchar
or c.runtimeprioritythreshold::varchar <> d.runtimeprioritythreshold::varchar
or c.queuetimeout::varchar <> d.queuetimeout::varchar
or c.runtimecap::varchar <> d.runtimecap::varchar
or c.plannedconcurrency::varchar <> d.plannedconcurrency::varchar
or c.maxconcurrency::varchar <> d.maxconcurrency::varchar
or c.singleinitiator::varchar <> d.singleinitiator::varchar
);
/*
pool_id | name | memorysize | maxmemorysize | executionparallelism | priority | runtimepriority | runtimeprioritythreshold | queuetimeout | runtimecap | plannedconcurrency | maxconcurrency | singleinitiator
-------------------+---------+------------+---------------+----------------------+----------+-----------------+--------------------------+--------------+------------+--------------------+----------------+-----------------
45035996273718910 | general | | Special: 95% | AUTO | 0 | MEDIUM | 2 | 300 | | AUTO | | f
45035996273718920 | refresh | 0% | | AUTO | -10 | MEDIUM | 60 | 300 | | AUTO | | t
45035996273718918 | tm | 200M | | AUTO | 105 | MEDIUM | 60 | 300 | | AUTO | 3 | t
45035996273718916 | wosdata | 0% | 2G | | | | | | | AUTO | |
(4 rows)
*/