Add execution parallelism tunable to vertica resource pool creation
Change-Id: I8b02793873c2937b547b87cf4d7a003c924d3410
This commit is contained in:
parent
f2d8d924ea
commit
5010a21932
|
@ -1,8 +1,6 @@
|
|||
#
|
||||
# Class for vertica specific files
|
||||
#
|
||||
#
|
||||
#
|
||||
# === Parameters
|
||||
#
|
||||
# [*api_pool*]
|
||||
|
@ -29,6 +27,9 @@
|
|||
# [*api_pool_priority*]
|
||||
# priority threshold api resource pool
|
||||
#
|
||||
# [*api_pool_exec_parallel*]
|
||||
# execution parallelism for api resource pool
|
||||
#
|
||||
# [*db_admin_password*]
|
||||
# database admin password
|
||||
#
|
||||
|
@ -71,6 +72,9 @@
|
|||
# [*pers_pool_priority*]
|
||||
# priority threshold persister resource pool
|
||||
#
|
||||
# [*pers_pool_exec_parallel*]
|
||||
# execution parallelism for persister resource pool
|
||||
#
|
||||
class monasca::vertica::config (
|
||||
$api_pool = 'api_pool',
|
||||
$api_pool_mem_size = '5G',
|
||||
|
@ -80,6 +84,7 @@ class monasca::vertica::config (
|
|||
$api_pool_runtime_priority = 'MEDIUM',
|
||||
$api_pool_runtime_priority_thresh = '2',
|
||||
$api_pool_priority = '50',
|
||||
$api_pool_exec_parallel = '2',
|
||||
$db_user = 'dbadmin',
|
||||
$db_group = 'verticadba',
|
||||
$db_admin_password = unset,
|
||||
|
@ -94,6 +99,7 @@ class monasca::vertica::config (
|
|||
$pers_pool_runtime_priority = 'MEDIUM',
|
||||
$pers_pool_runtime_priority_thresh = '2',
|
||||
$pers_pool_priority = '60',
|
||||
$pers_pool_exec_parallel = '1',
|
||||
) {
|
||||
|
||||
include ::monasca::params
|
||||
|
|
|
@ -24,8 +24,8 @@ SELECT SET_CONFIG_PARAMETER ('MoveOutSizePct', 75); -- default 0
|
|||
SELECT SET_CONFIG_PARAMETER ('MoveOutInterval', 300); -- default 300
|
||||
SELECT SET_CONFIG_PARAMETER ('MergeOutInterval', 300); -- default 600
|
||||
|
||||
CREATE RESOURCE POOL <%= @api_pool %> MEMORYSIZE '<%= @api_pool_mem_size %>' MAXMEMORYSIZE '<%= @api_pool_max_mem_size %>' PLANNEDCONCURRENCY <%= @api_pool_planned_con %> MAXCONCURRENCY <%= @api_pool_max_con %> RUNTIMEPRIORITY <%= @api_pool_runtime_priority %> RUNTIMEPRIORITYTHRESHOLD <%= @api_pool_runtime_priority_thresh %> PRIORITY <%= @api_pool_priority %>;
|
||||
CREATE RESOURCE POOL <%= @pers_pool %> MEMORYSIZE '<%= @pers_pool_mem_size %>' MAXMEMORYSIZE '<%= @pers_pool_max_mem_size %>' PLANNEDCONCURRENCY <%= @pers_pool_planned_con %> MAXCONCURRENCY <%= @pers_pool_max_con %> RUNTIMEPRIORITY <%= @pers_pool_runtime_priority %> RUNTIMEPRIORITYTHRESHOLD <%= @pers_pool_runtime_priority_thresh %> PRIORITY <%= @pers_pool_priority %>;
|
||||
CREATE RESOURCE POOL <%= @api_pool %> MEMORYSIZE '<%= @api_pool_mem_size %>' MAXMEMORYSIZE '<%= @api_pool_max_mem_size %>' PLANNEDCONCURRENCY <%= @api_pool_planned_con %> MAXCONCURRENCY <%= @api_pool_max_con %> RUNTIMEPRIORITY <%= @api_pool_runtime_priority %> RUNTIMEPRIORITYTHRESHOLD <%= @api_pool_runtime_priority_thresh %> PRIORITY <%= @api_pool_priority %> EXECUTIONPARALLELISM <%= @api_pool_exec_parallel %>;
|
||||
CREATE RESOURCE POOL <%= @pers_pool %> MEMORYSIZE '<%= @pers_pool_mem_size %>' MAXMEMORYSIZE '<%= @pers_pool_max_mem_size %>' PLANNEDCONCURRENCY <%= @pers_pool_planned_con %> MAXCONCURRENCY <%= @pers_pool_max_con %> RUNTIMEPRIORITY <%= @pers_pool_runtime_priority %> RUNTIMEPRIORITYTHRESHOLD <%= @pers_pool_runtime_priority_thresh %> PRIORITY <%= @pers_pool_priority %> EXECUTIONPARALLELISM <%= @pers_pool_exec_parallel %>;
|
||||
|
||||
-- Create users
|
||||
CREATE USER <%= @monitor_user %> IDENTIFIED BY '<%= @monitor_password %>';
|
||||
|
|
Loading…
Reference in New Issue