<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>OpenText Analytics Database 26.2.x – Managing workloads</title>
    <link>/en/admin/managing-db/managing-workloads/</link>
    <description>Recent content in Managing workloads on OpenText Analytics Database 26.2.x</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/admin/managing-db/managing-workloads/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Admin: Resource manager</title>
      <link>/en/admin/managing-db/managing-workloads/resource-manager/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-workloads/resource-manager/</guid>
      <description>
        
        
        &lt;p&gt;On a single-user environment, the system can devote all resources to a single query, getting the most efficient execution for that one query. More likely, your environment needs to run several queries at once, which can cause tension between providing each query the maximum amount of resources (fastest run time) and serving multiple queries simultaneously with a reasonable run time.&lt;/p&gt;
&lt;p&gt;The Vertica Resource Manager lets you resolve this tension, while ensuring that every query is eventually serviced and that true system limits are respected at all times.&lt;/p&gt;
&lt;p&gt;For example, when the system experiences resource pressure, the Resource Manager might queue queries until the resources become available or a timeout value is reached. In addition, when you configure various Resource Manager settings, you can tune each query&#39;s target memory based on the expected number of concurrent queries running against the system.&lt;/p&gt;
&lt;h2 id=&#34;resource-manager-impact-on-query-execution&#34;&gt;Resource manager impact on query execution&lt;/h2&gt;
&lt;p&gt;The Resource Manager impacts individual query execution in various ways. When a query is submitted to the database, the following series of events occur:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;The query is parsed, optimized to determine an execution plan, and distributed to the participating nodes.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The Resource Manager is invoked on each node to estimate resources required to run the query and compare that with the resources currently in use. One of the following will occur:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If the memory required by the query alone would exceed the machine&#39;s physical memory, the query is rejected - it cannot possibly run. Outside of significantly under-provisioned nodes, this case is very unlikely.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If the resource requirements are not currently available, the query is queued. The query will remain on the queue until either sufficient resources are freed up and the query runs or the query times out and is rejected.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Otherwise the query is allowed to run.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The query starts running when all participating nodes allow it to run.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

Once the query is running, the Resource Manager further manages resource allocation using &lt;code&gt;RUNTIMEPRIORITY&lt;/code&gt; and &lt;code&gt;RUNTIMEPRIORITYTHRESHOLD&lt;/code&gt; parameters for the resource pool&lt;code&gt;.&lt;/code&gt; See &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/managing-resources-query-run-time/#&#34;&gt;Managing resources at query run time&lt;/a&gt; for more information.

&lt;/div&gt;
&lt;p&gt;Apportioning resources for a specific query and the maximum number of queries allowed to run depends on the resource pool configuration. See &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/#&#34;&gt;Resource pool architecture&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;On each node, no resources are reserved or held while the query is in the queue. However, multi-node queries queued on some nodes will hold resources on the other nodes. Vertica makes every effort to avoid deadlocks in this situation.&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Resource pool architecture</title>
      <link>/en/admin/managing-db/managing-workloads/resource-pool-architecture/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-workloads/resource-pool-architecture/</guid>
      <description>
        
        
        &lt;p&gt;The Resource Manager handles resources as one or more resource pools, which are a pre-allocated subset of the system resources with an associated queue.&lt;/p&gt;
&lt;p&gt;In Enterprise Mode, there is one global set of resource pools that apply to all subclusters in the entire database. In Eon Mode, you can allocate resources globally or per subcluster. Global-level resource pools apply to all subclusters. Subcluster-level resource pools allow you to fine-tune resources for the type of workloads that the subcluster does. If you have both global- and subcluster-level resource pool settings, you can override any memory-related global setting for that subcluster. Global settings are applied to subclusters that do not have subcluster-level resource pool settings. See &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/workload-best-practices/managing-workload-resources-an-eon-db/#&#34;&gt;Managing workload resources in an Eon Mode database&lt;/a&gt; for more information about fine-tuning resource pools per subcluster.&lt;/p&gt;
&lt;p&gt;OpenText™ Analytics Database is preconfigured with a set of &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#&#34;&gt;Built-in pools&lt;/a&gt; that allocate resources to different request types, where the GENERAL pool allows for a certain concurrency level based on the RAM and cores in the machines.&lt;/p&gt;
&lt;h2 id=&#34;modifying-and-creating-resource-pools&#34;&gt;Modifying and creating resource pools&lt;/h2&gt;
&lt;p&gt;You can configure the built-in GENERAL pool based on actual concurrency and performance requirements, as described in &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/resource-pool-architecture/built-pools/#&#34;&gt;Built-in pools&lt;/a&gt;. You can also create custom pools to handle various classes of workloads and optionally restrict user requests to your custom pools.&lt;/p&gt;
&lt;p&gt;You create and modify user-defined resource pools with 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/create-statements/create-resource-pool/#&#34;&gt;CREATE RESOURCE POOL&lt;/a&gt;&lt;/code&gt; and 
&lt;code&gt;&lt;a href=&#34;../../../../en/sql-reference/statements/alter-statements/alter-resource-pool/#&#34;&gt;ALTER RESOURCE POOL&lt;/a&gt;&lt;/code&gt;, respectively. You can configure these resource pools for memory usage, concurrency, and queue priority. You can also restrict a database user or user session to use a specific resource pool. Doing so allows you to control how memory, CPU, and other resources are allocated.&lt;/p&gt;
&lt;p&gt;The following graphic illustrates what database operations are executed in which resource pool. Only three built-in pools are shown.&lt;/p&gt;
&lt;p&gt;&lt;img src=&#34;../../../../images/resource-pool-architecture.png&#34; alt=&#34;&#34;&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Managing resources at query run time</title>
      <link>/en/admin/managing-db/managing-workloads/managing-resources-query-run-time/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-workloads/managing-resources-query-run-time/</guid>
      <description>
        
        
        &lt;p&gt;The Resource Manager estimates the resources required for queries to run, and then prioritizes them. You can control how the Resource Manager prioritizes query execution in several ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/managing-resources-query-run-time/setting-runtime-priority-resource-pool/&#34;&gt;Set a resource pool&#39;s run-time priority &lt;/a&gt;relative to other resource pools.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/managing-resources-query-run-time/changing-runtime-priority-of-running-query/&#34;&gt;Change a running query&#39;s priority&lt;/a&gt; relative to other queries in the same resource pool.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/managing-resources-query-run-time/move-queries-manually/&#34;&gt;Move a running query&lt;/a&gt; to another resource pool.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Restoring resource manager defaults</title>
      <link>/en/admin/managing-db/managing-workloads/restoring-resource-manager-defaults/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-workloads/restoring-resource-manager-defaults/</guid>
      <description>
        
        
        &lt;p&gt;System table &lt;a href=&#34;../../../../en/sql-reference/system-tables/v-catalog-schema/resource-pool-defaults/#&#34;&gt;RESOURCE_POOL_DEFAULTS&lt;/a&gt; stores default values for all parameters for all built-in and user-defined resource pools.&lt;/p&gt;
&lt;p&gt;If you have changed the value of any parameter in any of your resource pools and want to restore it to its default, you can simply alter the table and set the parameter to DEFAULT. For example, the following statement sets the RUNTIMEPRIORITY for the resource pool sysquery back to its default value:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; ALTER RESOURCE POOL sysquery RUNTIMEPRIORITY DEFAULT;
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Admin: Best practices for managing workload resources</title>
      <link>/en/admin/managing-db/managing-workloads/workload-best-practices/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-workloads/workload-best-practices/</guid>
      <description>
        
        
        &lt;p&gt;This section provides general guidelines and best practices on how to set up and tune resource pools for various common scenarios.

&lt;div class=&#34;alert admonition note&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Note&lt;/h4&gt;

The exact settings for resource pool parameters are heavily dependent on your query mix, data size, hardware configuration, and concurrency requirements. Vertica recommends performing your own experiments to determine the optimal configuration for your system.

&lt;/div&gt;&lt;/p&gt;

      </description>
    </item>
    
    <item>
      <title>Admin: Managing system resource usage</title>
      <link>/en/admin/managing-db/managing-workloads/managing-system-resource-usage/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/admin/managing-db/managing-workloads/managing-system-resource-usage/</guid>
      <description>
        
        
        &lt;p&gt;You can use the &lt;a href=&#34;../../../../en/admin/monitoring/using-system-tables/#&#34;&gt;Using system tables&lt;/a&gt; to track overall resource usage on your cluster. These and the other system tables are described in the &lt;a href=&#34;../../../../en/sql-reference/system-tables/#&#34;&gt;OpenText Analytics Database system tables&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If your queries are experiencing errors due to resource unavailability, you can use the following system tables to obtain more details:

&lt;table class=&#34;table table-bordered&#34; &gt;



&lt;tr&gt; 

&lt;th &gt;
System Table&lt;/th&gt; 

&lt;th &gt;
Description&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/resource-rejections/#&#34;&gt;RESOURCE_REJECTIONS&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;


Monitors requests for resources that are rejected by the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../en/glossary/resource-manager/&#34; title=&#34;In a single-user environment, the system can devote all resources to a single query and get the most efficient execution for that one query.&#34;&gt;Resource manager&lt;/a&gt;.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;


&lt;a href=&#34;../../../../en/sql-reference/system-tables/v-monitor-schema/disk-resource-rejections/#&#34;&gt;DISK_RESOURCE_REJECTIONS&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;


Monitors requests for resources that are rejected due to disk space shortages. See &lt;a href=&#34;../../../../en/admin/managing-db/managing-disk-space/#&#34;&gt;Managing disk space&lt;/a&gt; for more information.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;When requests for resources of a certain type are being rejected, do one of the following:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Increase the resources available on the node by adding more memory, more disk space, and so on. See &lt;a href=&#34;../../../../en/admin/managing-db/managing-disk-space/#&#34;&gt;Managing disk space&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Reduce the demand for the resource by reducing the number of users on the system (see &lt;a href=&#34;../../../../en/admin/managing-db/managing-workloads/managing-system-resource-usage/managing-sessions/#&#34;&gt;Managing sessions&lt;/a&gt;), rescheduling operations, and so on.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The &lt;code&gt;LAST_REJECTED_VALUE&lt;/code&gt; field in RESOURCE_REJECTIONS indicates the cause of the problem. For example:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The message &lt;code&gt;Usage of a single requests exceeds high limit&lt;/code&gt; means that the system does not have enough of the resource available for the single request. A common example occurs when the file handle limit is set too low and you are loading a table with a large number of columns.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The message &lt;code&gt;Timed out or Canceled waiting for resource reservation&lt;/code&gt; usually means that there is too much contention for the resource because the hardware platform cannot support the number of concurrent users using it.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
  </channel>
</rss>
