<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vertica Documentation – Eon Mode functions</title>
    <link>/en/sql-reference/functions/management-functions/eon-functions/</link>
    <description>Recent content in Eon Mode functions on Vertica Documentation</description>
    <generator>Hugo -- gohugo.io</generator>
    
	  <atom:link href="/en/sql-reference/functions/management-functions/eon-functions/index.xml" rel="self" type="application/rss+xml" />
    
    
      
        
      
    
    
    <item>
      <title>Sql-Reference: ALTER_LOCATION_SIZE</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/alter-location-size/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/alter-location-size/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Resizes &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/depot/&#34; title=&#34;A cache of data maintained by the nodes in an Eon Mode database to limit reads from.&#34;&gt;the depot&lt;/a&gt; on one node, all nodes in a subcluster, or all nodes in the database.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
Reducing the size of the depot is liable to increase contention over depot usage and require frequent &lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Evicting&#34;&gt;evictions&lt;/a&gt;. This behavior can increase the number of queries and load operations that are routed to communal storage for processing, which can incur slower performance and increased access charges.
&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/immutable-invariant-functions/&#34; title=&#34;&#34;&gt;Immutable&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ALTER_LOCATION_SIZE( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;location&lt;/span&gt;&amp;#39;, &amp;#39;[&lt;span class=&#34;code-variable&#34;&gt;target&lt;/span&gt;]&amp;#39;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;size&lt;/span&gt;&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;location&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies the location to resize, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;depot&lt;/code&gt;: Resizes the node&#39;s current depot.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The depot&#39;s absolute path in the Linux filesystem. If you change the depot size on multiple nodes and specify a path, the path must be identical on all affected nodes . By default, this is not the case, as the node&#39;s name is typically this path. For example, the default depot path for node 1 in the &lt;code&gt;verticadb&lt;/code&gt; database is &lt;code&gt;/vertica/data/verticadb/v_verticadb_node0001_depot&lt;/code&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;target&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The node or nodes on which to change the depot, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Node name: Resize the specified node.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Subcluster name: Resize depots of all nodes in the specified subcluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Empty string: Resize all depots in the database.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;size&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Valid only if the storage location usage type is set to &lt;code&gt;DEPOT&lt;/code&gt;, specifies the maximum amount of disk space that the depot can allocate from the storage location&#39;s file system.&lt;/p&gt;
&lt;p&gt;You can specify &lt;em&gt;&lt;code&gt;size&lt;/code&gt;&lt;/em&gt; in two ways:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;%&lt;/code&gt;: Percentage of storage location disk size.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;integer&lt;/code&gt;&lt;/em&gt;&lt;code&gt;{K|M|G|T}&lt;/code&gt;: Amount of storage location disk size in kilobytes, megabytes, gigabytes, or terabytes.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
The depot size cannot exceed 80 percent of the file system disk space where the depot is stored. If you specify a value that is too large, Vertica issues a warning and automatically changes the value to 80 percent of the file system size.
&lt;/div&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superuser&lt;/a&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Increase depot size on all nodes to 80 percent of file system:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name, location_label, location_path, max_size, disk_percent FROM storage_locations WHERE location_usage = &amp;#39;DEPOT&amp;#39; ORDER BY node_name;
    node_name     | location_label  |      location_path      |  max_size   | disk_percent
------------------+-----------------+-------------------------+-------------+--------------
 v_vmart_node0001 | auto-data-depot | /home/dbadmin/verticadb | 36060108800 | 70%
 v_vmart_node0002 | auto-data-depot | /home/dbadmin/verticadb | 36059377664 | 70%
 v_vmart_node0003 | auto-data-depot | /home/dbadmin/verticadb | 36060108800 | 70%
(3 rows)

=&amp;gt; SELECT alter_location_size(&amp;#39;depot&amp;#39;, &amp;#39;&amp;#39;,&amp;#39;80%&amp;#39;);
 alter_location_size
---------------------
 depotSize changed.
(1 row)

=&amp;gt; SELECT node_name, location_label, location_path, max_size, disk_percent FROM storage_locations WHERE location_usage = &amp;#39;DEPOT&amp;#39; ORDER BY node_name;
    node_name     | location_label  |      location_path      |  max_size   | disk_percent
------------------+-----------------+-------------------------+-------------+--------------
 v_vmart_node0001 | auto-data-depot | /home/dbadmin/verticadb | 41211552768 | 80%
 v_vmart_node0002 | auto-data-depot | /home/dbadmin/verticadb | 41210717184 | 80%
 v_vmart_node0003 | auto-data-depot | /home/dbadmin/verticadb | 41211552768 | 80%
(3 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Change the depot size to 75% of the filesystem size for all nodes in the analytics subcluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT subcluster_name, subclusters.node_name, storage_locations.max_size, storage_locations.disk_percent FROM subclusters INNER JOIN storage_locations ON subclusters.node_name = storage_locations.node_name WHERE storage_locations.location_usage=&amp;#39;DEPOT&amp;#39;;
  subcluster_name   |      node_name       |   max_size  | disk_percent
--------------------+----------------------+----------------------------
 default_subcluster | v_verticadb_node0001 | 25264737485 | 60%
 default_subcluster | v_verticadb_node0002 | 25264737485 | 60%
 default_subcluster | v_verticadb_node0003 | 25264737485 | 60%
 analytics          | v_verticadb_node0004 | 25264737485 | 60%
 analytics          | v_verticadb_node0005 | 25264737485 | 60%
 analytics          | v_verticadb_node0006 | 25264737485 | 60%
 analytics          | v_verticadb_node0007 | 25264737485 | 60%
 analytics          | v_verticadb_node0008 | 25264737485 | 60%
 analytics          | v_verticadb_node0009 | 25264737485 | 60%
(9 rows)

=&amp;gt; SELECT ALTER_LOCATION_SIZE(&amp;#39;depot&amp;#39;,&amp;#39;analytics&amp;#39;,&amp;#39;75%&amp;#39;);
 ALTER_LOCATION_SIZE
---------------------
 depotSize changed.
(1 row)

=&amp;gt; SELECT subcluster_name, subclusters.node_name, storage_locations.max_size, storage_locations.disk_percent FROM subclusters INNER JOIN storage_locations ON subclusters.node_name = storage_locations.node_name WHERE storage_locations.location_usage=&amp;#39;DEPOT&amp;#39;;
  subcluster_name   |      node_name       |   max_size  | disk_percent
--------------------+----------------------+----------------------------
 default_subcluster | v_verticadb_node0001 | 25264737485 | 60%
 default_subcluster | v_verticadb_node0002 | 25264737485 | 60%
 default_subcluster | v_verticadb_node0003 | 25264737485 | 60%
 analytics          | v_verticadb_node0004 | 31580921856 | 75%
 analytics          | v_verticadb_node0005 | 31580921856 | 75%
 analytics          | v_verticadb_node0006 | 31580921856 | 75%
 analytics          | v_verticadb_node0007 | 31580921856 | 75%
 analytics          | v_verticadb_node0008 | 31580921856 | 75%
 analytics          | v_verticadb_node0009 | 31580921856 | 75%
(9 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/architecture/eon-concepts/eon-architecture/&#34;&gt;Eon Mode architecture&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: BACKGROUND_DEPOT_WARMING</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/background-depot-warming/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/background-depot-warming/</guid>
      <description>
        
        
        &lt;p&gt;&lt;p&gt;Eon Mode only&lt;/p&gt;


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

Vertica version 10.0.0 removes support for foreground depot warming. When enabled, depot warming always happens in the background. Because foreground depot warming no longer exists, this function serves no purpose and has been deprecated. Calling it has no effect.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Forces a node that is warming its depot to start processing queries while continuing to warm its depot in the background. Depot warming only occurs when a node is joining the database and is activating its subscriptions. This function only has an effect if:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The database is running in Eon Mode.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The node is currently warming its depot.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The node is warming its depot from communal storage. This is the case when the UseCommunalStorageForBatchDepotWarming configuration parameter is set to the default value of 1. See &lt;a href=&#34;../../../../../en/sql-reference/config-parameters/eon-parameters/&#34;&gt;Eon Mode parameters&lt;/a&gt; for more information about this parameter.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;After calling this function, the node warms its depot in the background while taking part in queries.&lt;/p&gt;
&lt;p&gt;This function has no effect on a node that is not warming its depot.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;BACKGROUND_DEPOT_WARMING(&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;node-name&lt;/span&gt;&amp;#39; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subscription-name&lt;/span&gt;&amp;#39;])
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;node-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the node that you want to warm its depot in the background.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subscription-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of a shard that the node subscribes to that you want the node to warm in the background. You can find the names of the shards a node subscribes to in the SHARD_NAME column of the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/node-subscriptions/&#34;&gt;NODE_SUBSCRIPTIONS&lt;/a&gt; system table.

&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;

When you supply the name of a specific shard subscription to warm in the background, the node may not immediately begin processing queries. It continues to warm any other shard subscriptions in the foreground if they are not yet warm. The node does not begin taking part in queries until it finishes warming the other subscriptions.

&lt;/div&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;return-value&#34;&gt;Return value&lt;/h2&gt;
&lt;p&gt;A message indicating that the node&#39;s warming will continue in the background.&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;The user must be a 
superuser .&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example demonstrates having node 6 of the verticadb database warm its depot in the background:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SELECT BACKGROUND_DEPOT_WARMING(&amp;#39;v_verticadb_node0006&amp;#39;);
                          BACKGROUND_DEPOT_WARMING
----------------------------------------------------------------------------
 Depot warming running in background. Check monitoring tables for progress.
(1 row)
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;



&lt;ul&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/cancel-depot-warming/&#34;&gt;CANCEL_DEPOT_WARMING&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/alter-location-size/&#34;&gt;ALTER_LOCATION_SIZE&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/cancel-drain-subcluster/&#34;&gt;CANCEL_DRAIN_SUBCLUSTER&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clean-communal-storage/&#34;&gt;CLEAN_COMMUNAL_STORAGE&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clear-data-depot/&#34;&gt;CLEAR_DATA_DEPOT&lt;/a&gt;&lt;/li&gt;
	
&lt;/ul&gt;



      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CANCEL_DEPOT_WARMING</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/cancel-depot-warming/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/cancel-depot-warming/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Cancels depot warming on a node. Depot warming only occurs when a node is joining the database and is activating its subscriptions. You can choose to cancel all warming on the node, or cancel the warming of a specific shard&#39;s subscription. The node finishes whatever data transfers it is currently carrying out to warm its depot and removes pending warming-related transfers from its queue. It keeps any data it has already loaded into its depot. If you cancel warming for a specific subscription, it stops warming its depot if all of its other subscriptions are warmed. If they aren&#39;t warmed, the node continues to warm those other subscriptions.&lt;/p&gt;
&lt;p&gt;This function only has an effect if:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The database is running in Eon Mode.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The node is currently warming its depot.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CANCEL_DEPOT_WARMING(&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;node-name&lt;/span&gt;&amp;#39; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subscription-name&lt;/span&gt;&amp;#39;])
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;node-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the node whose depot warming you want canceled.&lt;/dd&gt;
&lt;dt&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;em&gt;&lt;code&gt;subscription-name&lt;/code&gt;&lt;/em&gt;&lt;code&gt;&#39;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;The name of a shard that the node subscribes to that you want the node to stop warming. You can find the names of the shards a node subscribes to in the SHARD_NAME column of the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/node-subscriptions/&#34;&gt;NODE_SUBSCRIPTIONS&lt;/a&gt; system table.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;return-value&#34;&gt;Return value&lt;/h2&gt;
&lt;p&gt;Returns a message indicating warming has been canceled.&lt;/p&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;The user must be a 
superuser.&lt;/p&gt;
&lt;h2 id=&#34;usage-considerations&#34;&gt;Usage considerations&lt;/h2&gt;
&lt;p&gt;Canceling depot warming can negatively impact the performance of your queries. A node with a cold depot may have to retrieve much of its data from communal storage, which is slower than accessing the depot.&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following demonstrates canceling the depot warming taking place on node 7:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SELECT CANCEL_DEPOT_WARMING(&amp;#39;v_verticadb_node0007&amp;#39;);
   CANCEL_DEPOT_WARMING
--------------------------
 Depot warming cancelled.
(1 row)
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;



&lt;ul&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/background-depot-warming/&#34;&gt;BACKGROUND_DEPOT_WARMING&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/alter-location-size/&#34;&gt;ALTER_LOCATION_SIZE&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/cancel-drain-subcluster/&#34;&gt;CANCEL_DRAIN_SUBCLUSTER&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clean-communal-storage/&#34;&gt;CLEAN_COMMUNAL_STORAGE&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clear-data-depot/&#34;&gt;CLEAR_DATA_DEPOT&lt;/a&gt;&lt;/li&gt;
	
&lt;/ul&gt;



      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CANCEL_DRAIN_SUBCLUSTER</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/cancel-drain-subcluster/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/cancel-drain-subcluster/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Cancels the draining of a subcluster or subclusters. This function can cancel draining operations that were started by either &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/start-drain-subcluster/&#34;&gt;START_DRAIN_SUBCLUSTER&lt;/a&gt; or the draining portion of the &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/shutdown-with-drain/&#34;&gt;SHUTDOWN_WITH_DRAIN&lt;/a&gt; function. CANCEL_DRAIN_SUBCLUSTER marks all nodes in the designated subclusters as not draining. The previously draining nodes again accept new client connections and connections redirected from load-balancing.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CANCEL_DRAIN_SUBCLUSTER( &lt;span class=&#34;code-variable&#34;&gt;&#39;subcluster-name&#39;&lt;/span&gt; )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the subcluster whose draining operation to cancel. Enter an empty string to cancel the draining operation on all subclusters.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example demonstrates how to cancel a draining operation on a subcluster.&lt;/p&gt;
&lt;p&gt;First, you can query the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/draining-status/&#34;&gt;DRAINING_STATUS&lt;/a&gt; system table to view which subclusters are currently draining:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SELECT node_name, subcluster_name, is_draining FROM draining_status ORDER BY 1;
node_name          | subcluster_name    | is_draining
-------------------+--------------------+-------
verticadb_node0001 | default_subcluster | f
verticadb_node0002 | default_subcluster | f
verticadb_node0003 | default_subcluster | f
verticadb_node0004 | analytics          | t
verticadb_node0005 | analytics          | t
verticadb_node0006 | analytics          | t
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;The following function call cancels the draining of the &lt;code&gt;analytics&lt;/code&gt; subcluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SELECT CANCEL_DRAIN_SUBCLUSTER(&amp;#39;analytics&amp;#39;);
             CANCEL_DRAIN_SUBCLUSTER
--------------------------------------------------------
Targeted subcluster: &amp;#39;analytics&amp;#39;
Action: CANCEL DRAIN

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To confirm that the subcluster is no longer draining, you can again query the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/draining-status/&#34;&gt;DRAINING_STATUS&lt;/a&gt; system table:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SELECT node_name, subcluster_name, is_draining FROM draining_status ORDER BY 1;
node_name          | subcluster_name    | is_draining
-------------------+--------------------+-------
verticadb_node0001 | default_subcluster | f
verticadb_node0002 | default_subcluster | f
verticadb_node0003 | default_subcluster | f
verticadb_node0004 | analytics          | f
verticadb_node0005 | analytics          | f
verticadb_node0006 | analytics          | f
(6 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/managing-client-connections/drain-client-connections/&#34;&gt;Drain client connections&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/start-drain-subcluster/&#34;&gt;START_DRAIN_SUBCLUSTER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/draining-status/&#34;&gt;DRAINING_STATUS&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLEAN_COMMUNAL_STORAGE</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/clean-communal-storage/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/clean-communal-storage/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Marks for deletion invalid data in communal storage, often data that leaked due to an event where Vertica cleanup mechanisms failed. Events that require calling this function include:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Node failure&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Interrupted &lt;a href=&#34;../../../../../en/eon/migrating-an-enterprise-db-to-eon/&#34;&gt;migration&lt;/a&gt; of an Enterprise database to Eon&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restoring objects from backup&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

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

It is generally good practice to call CLEAN_COMMUNAL_STORAGE soon after completing an &lt;a href=&#34;../../../../../en/eon/migrating-an-enterprise-db-to-eon/&#34;&gt;Enterprise-to-Eon migration&lt;/a&gt;, and reviving the migrated Eon database.

&lt;/div&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLEAN_COMMUNAL_STORAGE ( [&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;actually‑delete&lt;/span&gt;&amp;#39;] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;actually‑delete&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;BOOLEAN, specifies whether to queue data files for deletion:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;true&lt;/code&gt; (default): Add files to the reaper queue and return immediately. The queued files are removed automatically by the reaper service, or can be removed manually by calling &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/flush-reaper-queue/&#34;&gt;FLUSH_REAPER_QUEUE&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;false&lt;/code&gt;: Report information about extra files but do not queue them for deletion.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT CLEAN_COMMUNAL_STORAGE(&amp;#39;true&amp;#39;)
CLEAN_COMMUNAL_STORAGE
------------------------------------------------------------------
CLEAN COMMUNAL STORAGE
Task was canceled.
Total leaked files: 9265
Total size: 4236501526
Files have been queued for deletion.
Check communal_cleanup_records for more information.
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLEAR_DATA_DEPOT</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/clear-data-depot/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/clear-data-depot/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Deletes the specified depot data. You can clear depot data of a single table or all tables, from one subcluster, a single node, or the entire database cluster. Clearing depot data has no effect on communal storage.

&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;

Clearing depot data can incur extra processing time for any subsequent queries that require that data and must now fetch it from communal storage.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLEAR_DATA_DEPOT( [ &amp;#39;[&lt;span class=&#34;code-variable&#34;&gt;table‑name&lt;/span&gt;]&amp;#39; [, &amp;#39;[&lt;span class=&#34;code-variable&#34;&gt;target-depots&lt;/span&gt;]&amp;#39;] ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&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;

To clear all depot data from the database cluster, call this function with no arguments.

&lt;/div&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;table‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the table to delete from the target depots. If you omit a table name or supply an empty string, data of all tables is deleted from the target depots.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;target-depots&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies to clear all data from the specified depots, one of the following:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;subcluster‑name&lt;/code&gt;&lt;/em&gt;: Clears depot data from the specified subcluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;em&gt;&lt;code&gt;node-name&lt;/code&gt;&lt;/em&gt;: Clears depot data from the specified node. Depot data on other nodes in the same subcluster are unaffected.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;This argument optionally qualifies the argument for &lt;em&gt;&lt;code&gt;table‑name&lt;/code&gt;&lt;/em&gt;. If you omit this argument or supply an empty string, Vertica clears all depot data from the database cluster.&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Clear all depot data for table &lt;code&gt;t1&lt;/code&gt; table from the depot of subcluster &lt;code&gt;subcluster_1&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT CLEAR_DATA_DEPOT(&amp;#39;t1&amp;#39;, &amp;#39;subcluster_1&amp;#39;);
 clear_data_depot
------------------
 Depot cleared
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Clear all depot data from subcluster &lt;code&gt;subcluster_1&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT CLEAR_DATA_DEPOT(&amp;#39;&amp;#39;, &amp;#39;subcluster_1&amp;#39;);
 clear_data_depot
------------------
 Depot cleared
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Clear all depot data from a single node:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; select clear_data_depot(&amp;#39;&amp;#39;,&amp;#39;v_vmart_node0001&amp;#39;);
 clear_data_depot
------------------
 Depot cleared
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Clear all depot data for table &lt;code&gt;t1&lt;/code&gt; from the database cluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT CLEAR_DATA_DEPOT(&amp;#39;t1&amp;#39;);
 clear_data_depot
------------------
 Depot cleared
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Clear all depot data from the database cluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT CLEAR_DATA_DEPOT();
 clear_data_depot
------------------
 Depot cleared
(1 row)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLEAR_DEPOT_PIN_POLICY_PARTITION</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-partition/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-partition/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Clears a depot pinning policy from the specified table or projection partitions. After the object is unpinned, it can be &lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Evicting&#34;&gt;evicted from the depot&lt;/a&gt; by any unpinned or pinned object..&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLEAR_DEPOT_PIN_POLICY_PARTITION( &amp;#39;[[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;object‑name&lt;/span&gt;&amp;#39;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;min‑range‑value&lt;/span&gt;&amp;#39;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;max‑range‑value&lt;/span&gt;&amp;#39; [, &lt;span class=&#34;code-variable&#34;&gt;subcluster&lt;/span&gt; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;object‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The table or projection with a partition pinning policy to clear.&lt;/dd&gt;
&lt;dt&gt;
&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;min‑range‑value&lt;/span&gt; &lt;span class=&#34;code-variable&#34;&gt;max‑range‑value&lt;/span&gt;&lt;/code&gt;&lt;/dt&gt;
&lt;dd&gt;Clears a pinning policy from the specified range of partition keys in &lt;em&gt;&lt;code&gt;table&lt;/code&gt;&lt;/em&gt;, where &lt;em&gt;&lt;code&gt;min‑range‑value&lt;/code&gt;&lt;/em&gt; must be ≤ &lt;em&gt;&lt;code&gt;max‑range‑value&lt;/code&gt;&lt;/em&gt;. If the policy applies to a single partition, &lt;em&gt;&lt;code&gt;min‑range‑value&lt;/code&gt;&lt;/em&gt; and &lt;em&gt;&lt;code&gt;max‑range‑value&lt;/code&gt;&lt;/em&gt; must be equal.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Clears the specified pinning policy from the &lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt; depot. If you omit this parameter, the policy is cleared from all database depots.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/&#34;&gt;Managing depot caching&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-partition/&#34;&gt;SET_DEPOT_PIN_POLICY_PARTITION&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLEAR_DEPOT_PIN_POLICY_PROJECTION</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-projection/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-projection/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Clears a depot pinning policy from the specified projection. After the object is unpinned, it can be &lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Evicting&#34;&gt;evicted from the depot&lt;/a&gt; by any unpinned or pinned object.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLEAR_DEPOT_PIN_POLICY_PROJECTION( &amp;#39;[[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;projection&#39;&lt;/span&gt; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster&lt;/span&gt;&amp;#39; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;projection&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Projection with a pinning policy to clear.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Clears the specified pinning policy from the &lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt; depot. If you omit this parameter, the policy is cleared from all database depots.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/&#34;&gt;Managing depot caching&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-partition/&#34;&gt;CLEAR_DEPOT_PIN_POLICY_PARTITION&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-table/&#34;&gt;SET_DEPOT_PIN_POLICY_TABLE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLEAR_DEPOT_PIN_POLICY_TABLE</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-table/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Clears a depot pinning policy from the specified table. After the object is unpinned, it can be &lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Evicting&#34;&gt;evicted from the depot&lt;/a&gt; by any unpinned or pinned object.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLEAR_DEPOT_PIN_POLICY_TABLE( &amp;#39;[[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;table&#39;&lt;/span&gt; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster&lt;/span&gt;&amp;#39; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Table with a pinning policy to clear.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Clears the specified pinning policy from the &lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt; depot. If you omit this parameter, the policy is cleared from all database depots.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/&#34;&gt;Managing depot caching&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-table/&#34;&gt;SET_DEPOT_PIN_POLICY_TABLE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: CLEAR_FETCH_QUEUE</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/clear-fetch-queue/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/clear-fetch-queue/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Removes all entries or entries for a specific transaction from the queue of fetch requests of data from the communal storage. You can view the fetch queue by querying the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/depot-fetch-queue/&#34;&gt;DEPOT_FETCH_QUEUE&lt;/a&gt; system table. This function removes all of the queued requests synchronously. It returns after all the fetches have been removed from the queue.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;CLEAR_FETCH_QUEUE([&lt;span class=&#34;code-variable&#34;&gt;transaction_id&lt;/span&gt;])
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;*&lt;/code&gt;transaction_id&lt;code&gt;*&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The id of the transaction whose fetches will be cleared from the queue. If this value is not specified, all fetches are removed from the fetch queue.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;This example clears all of the queued fetches for all transactions.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT CLEAR_FETCH_QUEUE();

    CLEAR_FETCH_QUEUE

--------------------------

Cleared the fetch queue.

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;This example clears the fetch queue for a specific transaction.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name,transaction_id FROM depot_fetch_queue;
      node_name       |  transaction_id
----------------------+-------------------
 v_verticadb_node0001 | 45035996273719510
 v_verticadb_node0003 | 45035996273719510
 v_verticadb_node0002 | 45035996273719510
 v_verticadb_node0001 | 45035996273719777
 v_verticadb_node0003 | 45035996273719777
 v_verticadb_node0002 | 45035996273719777

(6 rows)

=&amp;gt; SELECT clear_fetch_queue(45035996273719510);
    clear_fetch_queue
--------------------------
 Cleared the fetch queue.
(1 row)

=&amp;gt; SELECT node_name,transaction_id from depot_fetch_queue;
      node_name       |  transaction_id
----------------------+-------------------
 v_verticadb_node0001 | 45035996273719777
 v_verticadb_node0003 | 45035996273719777
 v_verticadb_node0002 | 45035996273719777

(3 rows)
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: DEMOTE_SUBCLUSTER_TO_SECONDARY</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/demote-subcluster-to-secondary/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/demote-subcluster-to-secondary/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Converts a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/primary-subcluster/&#34; title=&#34;In Eon Mode, a primary subcluster is a type of subcluster that is intended to form the core of your database.&#34;&gt;primary subcluster&lt;/a&gt; to a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/secondary-subcluster/&#34; title=&#34;A secondary subcluster is a type of subcluster that is easy to start and shutdown on demand.&#34;&gt;secondary subcluster&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Vertica will not allow you to demote a primary subcluster if any of the following are true:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;The subcluster contains a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/critical-node/&#34; title=&#34;A critical node is a node whose failure would cause the database to become unsafe and force a shutdown.&#34;&gt;critical node&lt;/a&gt;.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The subcluster is the only primary subcluster in the database. You must have at least one primary subcluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/initiator-node/&#34; title=&#34;In the context of a client connection, the initiator node is the node associated with the specific host to which the connection was made.&#34;&gt;initiator node&lt;/a&gt; is a member of the subcluster you are trying to demote. You must call DEMOTE_SUBCLUSTER_TO_SECONDARY from another subcluster.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
&lt;p&gt;This function call can take a long time to complete because all of the nodes in the subcluster you are Set Snippet Variable Value in Topic will take a global catalog lock, write a checkpoint, and then commit. This global catalog lock can cause other database tasks to fail with errors.&lt;/p&gt;
&lt;p&gt;Schedule calls to this function to occur when other database activity is low.&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;DEMOTE_SUBCLUSTER_TO_SECONDARY(&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster-name&lt;/span&gt;&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the primary subcluster to demote to a secondary subcluster.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example demotes the subcluster &lt;code&gt;analytics_cluster&lt;/code&gt; to a secondary subcluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DISTINCT subcluster_name, is_primary from subclusters;
  subcluster_name  | is_primary
-------------------+------------
 analytics_cluster | t
 load_subcluster   | t
(2 rows)

=&amp;gt; SELECT DEMOTE_SUBCLUSTER_TO_SECONDARY(&amp;#39;analytics_cluster&amp;#39;);
 DEMOTE_SUBCLUSTER_TO_SECONDARY
--------------------------------
 DEMOTE SUBCLUSTER TO SECONDARY
(1 row)

=&amp;gt; SELECT DISTINCT subcluster_name, is_primary from subclusters;
  subcluster_name  | is_primary
-------------------+------------
 analytics_cluster | f
 load_subcluster   | t
(2 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Attempting to demote the subcluster that contains the initiator node results in an error:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name FROM sessions WHERE user_name = &amp;#39;dbadmin&amp;#39;
   AND client_type = &amp;#39;vsql&amp;#39;;
      node_name
----------------------
 v_verticadb_node0004
(1 row)

=&amp;gt; SELECT node_name, is_primary FROM subclusters WHERE subcluster_name = &amp;#39;analytics&amp;#39;;
      node_name       | is_primary
----------------------+------------
 v_verticadb_node0004 | t
 v_verticadb_node0005 | t
 v_verticadb_node0006 | t
(3 rows)

=&amp;gt; SELECT DEMOTE_SUBCLUSTER_TO_SECONDARY(&amp;#39;analytics&amp;#39;);
ERROR 9204:  Cannot promote or demote subcluster including the initiator node
HINT:  Run this command on another subcluster
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;



&lt;ul&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/promote-subcluster-to-primary/&#34;&gt;PROMOTE_SUBCLUSTER_TO_PRIMARY&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/shutdown-subcluster/&#34;&gt;SHUTDOWN_SUBCLUSTER&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/architecture/eon-concepts/subclusters/&#34;&gt;Subclusters&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/statements/alter-statements/alter-subcluster/&#34;&gt;ALTER SUBCLUSTER&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/critical-subclusters/&#34;&gt;CRITICAL_SUBCLUSTERS&lt;/a&gt;&lt;/li&gt;
	
&lt;/ul&gt;



      </description>
    </item>
    
    <item>
      <title>Sql-Reference: FINISH_FETCHING_FILES</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/finish-fetching-files/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/finish-fetching-files/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Fetches to the depot all files that are queued for download from communal storage.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;FINISH_FETCHING_FILES()
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Get all files queued for download:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT FINISH_FETCHING_FILES();
      FINISH_FETCHING_FILES
---------------------------------
 Finished fetching all the files
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/architecture/eon-concepts/&#34;&gt;Eon Mode concepts&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: FLUSH_REAPER_QUEUE</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/flush-reaper-queue/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/flush-reaper-queue/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Deletes all data marked for deletion in the database. Use this function to remove all data marked for deletion before the reaper service deletes disk files.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;FLUSH_REAPER_QUEUE( [&lt;span class=&#34;code-variable&#34;&gt;sync‑catalog&lt;/span&gt;] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;*&lt;/code&gt;sync‑catalog&lt;code&gt;*&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies to &lt;a href=&#34;../../../../../en/eon/synchronizing-metadata/&#34;&gt;sync metadata&lt;/a&gt; in the database catalog on all nodes before the function executes:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;true&lt;/code&gt; (default): Sync the database catalog&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;false&lt;/code&gt;: Run without syncing.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Remove all files that are marked for deletion:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT FLUSH_REAPER_QUEUE();
                 FLUSH_REAPER_QUEUE
-----------------------------------------------------
 Sync&amp;#39;d catalog and deleted all files in the reaper queue.
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clean-communal-storage/&#34;&gt;CLEAN_COMMUNAL_STORAGE&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: MIGRATE_ENTERPRISE_TO_EON</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/migrate-enterprise-to-eon/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/migrate-enterprise-to-eon/</guid>
      <description>
        
        
        &lt;p&gt;Enterprise Mode only&lt;/p&gt;

&lt;p&gt;Migrates an Enterprise database to an Eon Mode database. MIGRATE_ENTERPRISE_TO_EON runs in the foreground; until it returns—either with success or an error—it blocks all operations in the same session on the source Enterprise database. If successful, MIGRATE_ENTERPRISE_TO_EON returns with a list of nodes in the migrated database.&lt;/p&gt;
&lt;p&gt;If migration is interrupted before the meta-function returns—for example, the client disconnects, or a network outage occurs—the migration returns an error. In this case, call MIGRATE_ENTERPRISE_TO_EON again to restart migration. For details, see &lt;a href=&#34;../../../../../en/eon/migrating-an-enterprise-db-to-eon/#Handling&#34;&gt;Handling Interrupted Migration&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;You can repeat migration multiple times to the same communal storage location—for example, to capture changes that occurred in the source database during the previous migration. For details, see &lt;a href=&#34;../../../../../en/eon/migrating-an-enterprise-db-to-eon/#Repeatin&#34;&gt;Repeating Migration&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;MIGRATE_ENTERPRISE_TO_EON ( &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;communal‑storage‑location&lt;/span&gt;&amp;#39;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;depot‑location&lt;/span&gt;&amp;#39; [, &lt;span class=&#34;code-variable&#34;&gt;is‑dry‑run&lt;/span&gt;] )
&lt;/code&gt;&lt;/pre&gt;&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;communal‑storage‑location&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;URI of communal storage location. For URI syntax examples for each supported schema, see &lt;a href=&#34;../../../../../en/sql-reference/file-systems-and-object-stores/&#34;&gt;File systems and object stores&lt;/a&gt;.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;depot‑location&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Path of Eon depot location, typically:
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/vertica/depot
&lt;/code&gt;&lt;/pre&gt;
&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
Management Console requires this convention to enable access to depot data and activity.
&lt;/div&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;catalog‑location&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;/*pushed out to as yet unspecified release (&lt;a href=&#34;http://jira.verticacorp.com:8080/jira/browse/VER-72507&#34;&gt;http://jira.verticacorp.com:8080/jira/browse/VER-72507&lt;/a&gt;) */
&lt;p&gt;Full path of Vertica catalog location. by default set to:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;&lt;span class=&#34;code-variable&#34;&gt;communal‑storage‑location&lt;/span&gt;/&lt;span class=&#34;code-variable&#34;&gt;metadata&lt;/span&gt;/&lt;span class=&#34;code-variable&#34;&gt;database‑name&lt;/span&gt;/&lt;span class=&#34;code-variable&#34;&gt;nodes&lt;/span&gt;/&lt;span class=&#34;code-variable&#34;&gt;node‑name&lt;/span&gt;/&lt;span class=&#34;code-variable&#34;&gt;Catalog&lt;/span&gt;/
&lt;/code&gt;&lt;/pre&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;is‑dry‑run&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Boolean. If set to true, MIGRATE_ENTERPRISE_TO_EON only checks whether the Enterprise source database complies with all &lt;a href=&#34;../../../../../en/eon/migrating-an-enterprise-db-to-eon/#Migratio&#34;&gt;migration prerequisites&lt;/a&gt;. If the meta-function discovers any compliance issues, it writes these to the migration error log &lt;code&gt;migrate_enterprise_to_eon_error.log&lt;/code&gt; in the database directory.
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Migrate an Enterprise database to Eon Mode on AWS:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT MIGRATE_ENTERPRISE_TO_EON (&amp;#39;s3://verticadbbucket&amp;#39;, &amp;#39;/vertica/depot&amp;#39;);
                      migrate_enterprise_to_eon
---------------------------------------------------------------------
 v_vmart_node0001,v_vmart_node0002,v_vmart_node0003,v_vmart_node0004
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;a href=&#34;../../../../../en/eon/migrating-an-enterprise-db-to-eon/&#34;&gt;Migrating an enterprise database to Eon Mode&lt;/a&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: PROMOTE_SUBCLUSTER_TO_PRIMARY</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/promote-subcluster-to-primary/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/promote-subcluster-to-primary/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Converts a secondary subcluster to a &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/primary-subcluster/&#34; title=&#34;In Eon Mode, a primary subcluster is a type of subcluster that is intended to form the core of your database.&#34;&gt;primary subcluster&lt;/a&gt;. You cannot use this function to promote the subcluster that contains the &lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/initiator-node/&#34; title=&#34;In the context of a client connection, the initiator node is the node associated with the specific host to which the connection was made.&#34;&gt;initiator node&lt;/a&gt;. You must call it while connected to a node in another subcluster.&lt;/p&gt;

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
&lt;p&gt;This function call can take a long time to complete because all of the nodes in the subcluster you are Set Snippet Variable Value in Topic will take a global catalog lock, write a checkpoint, and then commit. This global catalog lock can cause other database tasks to fail with errors.&lt;/p&gt;
&lt;p&gt;Schedule calls to this function to occur when other database activity is low.&lt;/p&gt;

&lt;/div&gt;

&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;PROMOTE_SUBCLUSTER_TO_PRIMARY(&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster-name&lt;/span&gt;&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the secondary cluster to promote to a primary subcluster.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example promotes the subcluster named analytics_cluster to a primary cluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT DISTINCT subcluster_name, is_primary from subclusters;
  subcluster_name  | is_primary
-------------------+------------
 analytics_cluster | f
 load_subcluster   | t
(2 rows)


=&amp;gt; SELECT PROMOTE_SUBCLUSTER_TO_PRIMARY(&amp;#39;analytics_cluster&amp;#39;);
 PROMOTE_SUBCLUSTER_TO_PRIMARY
-------------------------------
 PROMOTE SUBCLUSTER TO PRIMARY
(1 row)


=&amp;gt; SELECT DISTINCT subcluster_name, is_primary from subclusters;
  subcluster_name  | is_primary
-------------------+------------
 analytics_cluster | t
 load_subcluster   | t
(2 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;



&lt;ul&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/demote-subcluster-to-secondary/&#34;&gt;DEMOTE_SUBCLUSTER_TO_SECONDARY&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/shutdown-subcluster/&#34;&gt;SHUTDOWN_SUBCLUSTER&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/architecture/eon-concepts/subclusters/&#34;&gt;Subclusters&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/statements/alter-statements/alter-subcluster/&#34;&gt;ALTER SUBCLUSTER&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/critical-subclusters/&#34;&gt;CRITICAL_SUBCLUSTERS&lt;/a&gt;&lt;/li&gt;
	
&lt;/ul&gt;



      </description>
    </item>
    
    <item>
      <title>Sql-Reference: REBALANCE_SHARDS</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/rebalance-shards/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/rebalance-shards/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Rebalances shard assignments in a subcluster or across the entire cluster in Eon Mode. If the current session ends, the operation immediately aborts. The amount of time required to rebalance shards scales in a roughly linear fashion based on the number of objects in your database.&lt;/p&gt;
&lt;p&gt;Run REBALANCE_SHARDS after you modify your cluster using &lt;a href=&#34;../../../../../en/sql-reference/statements/alter-statements/alter-node/&#34;&gt;ALTER NODE&lt;/a&gt; or when you add nodes to a subcluster.

&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;

&lt;p&gt;Vertica rebalances shards in a subcluster automatically when you:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Remove a node from a subcluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Add a new subcluster with the admintools command &lt;code&gt;db_add_subcluster&lt;/code&gt; with the &lt;code&gt;-s&lt;/code&gt; option followed by a list of hosts.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;


&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;After you rebalance shards, you will no longer be able to restore objects from a backup taken before the rebalancing. (Full backups are always possible.) After you rebalance, make another full backup so you will be able to restore objects from it in the future.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;REBALANCE_SHARDS([&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster-name&lt;/span&gt;&amp;#39;])
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The name of the subcluster where shards will be rebalanced. If you do not supply this parameter, all subclusters in the database rebalance their shards.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following shows that the nodes in the in the newly-added analytics subcluster do not yet have shard subscriptions. It then calls REBALANCE_SHARDS to update the node&#39;s subscriptions:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT subcluster_name, n.node_name, shard_name, subscription_state FROM
   v_catalog.nodes n LEFT JOIN v_catalog.node_subscriptions ns ON (n.node_name
   = ns.node_name) ORDER BY 1,2,3;

   subcluster_name    |      node_name       | shard_name  | subscription_state
----------------------+----------------------+-------------+--------------------
 analytics_subcluster | v_verticadb_node0004 |             |
 analytics_subcluster | v_verticadb_node0005 |             |
 analytics_subcluster | v_verticadb_node0006 |             |
 default_subcluster   | v_verticadb_node0001 | replica     | ACTIVE
 default_subcluster   | v_verticadb_node0001 | segment0001 | ACTIVE
 default_subcluster   | v_verticadb_node0001 | segment0003 | ACTIVE
 default_subcluster   | v_verticadb_node0002 | replica     | ACTIVE
 default_subcluster   | v_verticadb_node0002 | segment0001 | ACTIVE
 default_subcluster   | v_verticadb_node0002 | segment0002 | ACTIVE
 default_subcluster   | v_verticadb_node0003 | replica     | ACTIVE
 default_subcluster   | v_verticadb_node0003 | segment0002 | ACTIVE
 default_subcluster   | v_verticadb_node0003 | segment0003 | ACTIVE
(12 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SELECT REBALANCE_SHARDS(&amp;#39;analytics_subcluster&amp;#39;);
 REBALANCE_SHARDS
-------------------
 REBALANCED SHARDS
(1 row)

=&amp;gt; SELECT subcluster_name, n.node_name, shard_name, subscription_state FROM
   v_catalog.nodes n LEFT JOIN v_catalog.node_subscriptions ns ON (n.node_name
   = ns.node_name) ORDER BY 1,2,3;

   subcluster_name    |      node_name       | shard_name  | subscription_state
----------------------+----------------------+-------------+--------------------
 analytics_subcluster | v_verticadb_node0004 | replica     | ACTIVE
 analytics_subcluster | v_verticadb_node0004 | segment0001 | ACTIVE
 analytics_subcluster | v_verticadb_node0004 | segment0003 | ACTIVE
 analytics_subcluster | v_verticadb_node0005 | replica     | ACTIVE
 analytics_subcluster | v_verticadb_node0005 | segment0001 | ACTIVE
 analytics_subcluster | v_verticadb_node0005 | segment0002 | ACTIVE
 analytics_subcluster | v_verticadb_node0006 | replica     | ACTIVE
 analytics_subcluster | v_verticadb_node0006 | segment0002 | ACTIVE
 analytics_subcluster | v_verticadb_node0006 | segment0003 | ACTIVE
 default_subcluster   | v_verticadb_node0001 | replica     | ACTIVE
 default_subcluster   | v_verticadb_node0001 | segment0001 | ACTIVE
 default_subcluster   | v_verticadb_node0001 | segment0003 | ACTIVE
 default_subcluster   | v_verticadb_node0002 | replica     | ACTIVE
 default_subcluster   | v_verticadb_node0002 | segment0001 | ACTIVE
 default_subcluster   | v_verticadb_node0002 | segment0002 | ACTIVE
 default_subcluster   | v_verticadb_node0003 | replica     | ACTIVE
 default_subcluster   | v_verticadb_node0003 | segment0002 | ACTIVE
 default_subcluster   | v_verticadb_node0003 | segment0003 | ACTIVE
(18 rows)
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/architecture/eon-concepts/shards-and-subscriptions/&#34;&gt;Shards and subscriptions&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/architecture/eon-concepts/&#34;&gt;Eon Mode concepts&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: RESHARD_DATABASE</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/reshard-db/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/reshard-db/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Changes the number of shards in a database. This function requires a global catalog lock (GCLX) during runtime. The runtime depends on the size of your catalog.&lt;/p&gt;
&lt;p&gt;RESHARD_DATABASE does not immediately affect the storage containers in communal storage. After re-sharding, the new shards still point to the existing containers. If you increase the number of shards in your database, multiple shards will point to the same storage containers. Eventually, the Tuple Mover (TM) mergeout tasks will realign the storage containers with the new shard segmentation bounds. If you want the TM to immediately realign storage containers, call &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/storage-functions/do-tm-task/&#34;&gt;DO_TM_TASK&lt;/a&gt; to run a &#39;RESHARDMERGEOUT&#39; task.&lt;/p&gt;
&lt;p&gt;This function does not disrupt most queries. However, the global catalog lock might affect data loads and DDL statements.

&lt;div class=&#34;admonition important&#34; role=&#34;alert&#34;&gt;
&lt;h4 class=&#34;admonition-head&#34;&gt;Important&lt;/h4&gt;
RESHARD_DATABASE might be rolled back if you call &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/rebalance-shards/&#34;&gt;REBALANCE_SHARDS&lt;/a&gt; during runtime. In some cases, rollback is caused by down nodes or nodes that fail during the re-shard process.
&lt;/div&gt;&lt;/p&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;RESHARD_DATABASE(&lt;span class=&#34;code-variable&#34;&gt;shard-count&lt;/span&gt;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;shard-count&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;A positive integer, the number of shards in the re-sharded database. For information about choosing a suitable &lt;em&gt;&lt;code&gt;shard-count&lt;/code&gt;&lt;/em&gt;, see &lt;a href=&#34;../../../../../en/eon/configuring-your-cluster-eon/#Choosing_the_Number_of_Shards_and_the_Initial_Node_Count&#34;&gt;Choosing the Number of Shards and the Initial Node Count&lt;/a&gt;.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;See &lt;a href=&#34;../../../../../en/eon/scaling-your-eon-db/change-number-of-shards-db/&#34;&gt;Change the number of shards in the database&lt;/a&gt;.&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/resharding-events/&#34;&gt;RESHARDING_EVENTS&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SANDBOX_SUBCLUSTER</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/sandbox-subcluster/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/sandbox-subcluster/</guid>
      <description>
        
        
        &lt;p&gt;Creates a sandbox for a secondary subcluster.

&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;

Vertica recommends using the admintools &lt;code&gt;sandbox_subcluster&lt;/code&gt; command to create sandboxes. This command includes additional sanity checks and validates that the sandboxed nodes are UP after sandbox creation. For details, see &lt;a href=&#34;../../../../../en/eon/subcluster-sandboxing/creating-sandboxes/&#34;&gt;Creating sandboxes&lt;/a&gt;.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;At function runtime, the nodes in the specified subcluster create a checkpoint of the catalog. When these nodes auto-restart in the sandbox, they form a new primary cluster that uses the data and catalog checkpoint from the main cluster. After the nodes successfully restart, the sandboxed subcluster and the main cluster are mutually isolated and can diverge.&lt;/p&gt;
&lt;p&gt;While the nodes in the main cluster sync their metadata to &lt;span class=&#34;code-variable&#34;&gt;/path-to-communal-storage/`metadata`/db_name&lt;/span&gt;, the nodes in the sandbox sync to &lt;span class=&#34;code-variable&#34;&gt;/path-to-communal-storage/`metadata`/sandbox_name&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;You can perform standard database operations and queries, such as loading data or creating new tables, in either cluster without affecting the other cluster. For example, dropping a table in the sandboxed subcluster does not drop the table in the main cluster, and vice versa.&lt;/p&gt;
&lt;p&gt;Because both clusters reference the same data files, neither cluster can delete files that existed at the time of sandbox creation. However, files that are created in the sandbox can be removed. Files in the main cluster can be queued for removal, but they are not processed until all active sandboxes are removed.&lt;/p&gt;
&lt;p&gt;You cannot nest sandboxes, but you can have multiple individual sandboxes active at the same time.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call-meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement. The function also requires a global catalog lock (GCLX) during runtime.&lt;/p&gt;
&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SANDBOX_SUBCLUSTER( &lt;span class=&#34;code-variable&#34;&gt;&#39;sandbox‑name&#39;&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;&#39;subcluster‑name&#39;&lt;/span&gt;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;options&lt;/span&gt;&amp;#39; )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;sandbox-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the sandbox. The name must conform to the following rules:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Consist of at most 30 characters, all of which must have an ASCII code between 36 and 126&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Begin with a letter&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Unique among all existing databases and sandboxes&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the secondary subcluster to sandbox. Attempting to sandbox a primary subcluster or a subcluster that is already sandboxed results in an error. The nodes in the subcluster must all have a status of UP and provide full subscription coverage for all shards.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;options&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Currently, there are no options for this function.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superuser&lt;/a&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example sandboxes the &lt;code&gt;sc02&lt;/code&gt; secondary subcluster into a sandbox named &lt;code&gt;sand&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SANDBOX_SUBCLUSTER(&amp;#39;sand&amp;#39;, &amp;#39;sc_02&amp;#39;, &amp;#39;&amp;#39;);
                                SANDBOX_SUBCLUSTER
-----------------------------------------------------------------------------------------------
Subcluster &amp;#39;sc_02&amp;#39; has been sandboxed to &amp;#39;sand&amp;#39;. It is going to auto-restart and re-form.
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If you query the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/nodes/&#34;&gt;NODES&lt;/a&gt; system table from the main cluster, you can see that the nodes of &lt;code&gt;sc_02&lt;/code&gt; have a status of UNKNOWN and are listed as member of the &lt;code&gt;sand&lt;/code&gt; sandbox:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name, subcluster_name, node_state, sandbox FROM NODES;
      node_name       |  subcluster_name   | node_state | sandbox
----------------------+--------------------+------------+---------
 v_verticadb_node0001 | default_subcluster | UP         |
 v_verticadb_node0002 | default_subcluster | UP         |
 v_verticadb_node0003 | default_subcluster | UP         |
 v_verticadb_node0004 | sc_02              | UNKNOWN    | sand
 v_verticadb_node0005 | sc_02              | UNKNOWN    | sand
 v_verticadb_node0006 | sc_02              | UNKNOWN    | sand
(6 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;When you issue the same query on one of the sandboxed nodes, the table shows that the sandboxed nodes are UP and the nodes from the main cluster are UNKNOWN, confirming that the cluster is successfully sandboxed:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name, subcluster_name, node_state, sandbox FROM NODES;
      node_name       |  subcluster_name   | node_state | sandbox
----------------------+--------------------+------------+---------
 v_verticadb_node0001 | default_subcluster | UNKNOWN    |
 v_verticadb_node0002 | default_subcluster | UNKNOWN    |
 v_verticadb_node0003 | default_subcluster | UNKNOWN    |
 v_verticadb_node0004 | sc_02              | UP         | sand
 v_verticadb_node0005 | sc_02              | UP         | sand
 v_verticadb_node0006 | sc_02              | UP         | sand
(6 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can now perform standard database operations in either cluster without impacting the other cluster. For instance, if you create a machine learning dataset named &lt;code&gt;train_data&lt;/code&gt; in the sandboxed subcluster, the new table does not propagate to the main cluster:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;--In the sandboxed subcluster
=&amp;gt; CREATE TABLE train_data(time timestamp, Temperature float);
CREATE TABLE

=&amp;gt; COPY train_data FROM LOCAL &amp;#39;daily-min-temperatures.csv&amp;#39; DELIMITER &amp;#39;,&amp;#39;;
 Rows Loaded
-------------
    3650
(1 row)

=&amp;gt; SELECT * FROM train_data LIMIT 5;
        time         | Temperature
---------------------+-------------
 1981-01-27 00:00:00 |        19.4
 1981-02-20 00:00:00 |        15.7
 1981-02-27 00:00:00 |        17.5
 1981-03-04 00:00:00 |          16
 1981-04-24 00:00:00 |        11.5
(5 rows)

--In the main cluster
=&amp;gt; SELECT * FROM train_data LIMIT 5;
ERROR 4566:  Relation &amp;#34;train_data&amp;#34; does not exist
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/unsandbox-subcluster/&#34;&gt;UNSANDBOX_SUBCLUSTER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/eon/subcluster-sandboxing/&#34;&gt;Subcluster sandboxing&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/eon/subcluster-sandboxing/creating-sandboxes/&#34;&gt;Creating sandboxes&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET_DEPOT_PIN_POLICY_PARTITION</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-partition/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-partition/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Pins the specified partitions of a table or projection to a subcluster depot, or all database depots, to reduce exposure to depot eviction.&lt;/p&gt;
&lt;p&gt;Partition groups can be pinned only if all partitions within the group are pinned individually. If you alter or remove table partitioning, Vertica drops all partition pinning policies for that table. The table&#39;s pinning policy, if any, is unaffected.&lt;/p&gt;
&lt;p&gt;For details on pinning policies and usage guidelines, see &lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Pinning&#34;&gt;Pinning Depot Objects&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET_DEPOT_PIN_POLICY_PARTITION ( &amp;#39;[[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;object‑name&lt;/span&gt;&amp;#39;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;min‑range‑value&lt;/span&gt;&amp;#39;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;max‑range‑value&lt;/span&gt;&amp;#39; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster&lt;/span&gt;&amp;#39; ] [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;download&lt;/span&gt;&amp;#39; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;object-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Table or projection to pin. If you specify a projection, it must store the partition keys.

&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;

After you pin a table or one of its projections to a subcluster, you cannot subsequently pin any of its partitions to that subcluster. Conversely, you can pin one or more table partitions to a subcluster, and then pin the table or one of its projections to that subcluster.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;min‑range‑value&lt;/code&gt;&lt;/em&gt;&lt;br /&gt;&lt;em&gt;&lt;code&gt;max‑range‑value&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Minimum and maximum value of partition keys in &lt;em&gt;&lt;code&gt;object-name&lt;/code&gt;&lt;/em&gt; to pin, where &lt;em&gt;&lt;code&gt;min‑range‑value&lt;/code&gt;&lt;/em&gt; must be ≤ &lt;em&gt;&lt;code&gt;max‑range‑value&lt;/code&gt;&lt;/em&gt;. To specify a single partition, &lt;em&gt;&lt;code&gt;min‑range‑value&lt;/code&gt;&lt;/em&gt; and &lt;em&gt;&lt;code&gt;max‑range‑value&lt;/code&gt;&lt;/em&gt; must be equal.

&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;

If partition pinning policies on the same table specify overlapping key ranges, Vertica collates the partition ranges. For example, if you create two partition policies with key ranges of 1-3 and 2-4, Vertica creates a single pinning policy with a key range of 1-4.

&lt;/div&gt;

&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Sets this pinning policy on the &lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt; depot. To set this policy on the default subcluster, specify &lt;code&gt;default_subcluster&lt;/code&gt;. If you omit this parameter, the policy is set on all database depots.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;download&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Boolean, if set to true, SET_DEPOT_PIN_POLICY_PARTITION immediately queues the specified partitions for download from communal storage.
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;precedence-of-pinning-policies&#34;&gt;Precedence of pinning policies&lt;/h2&gt;
&lt;p&gt;In general, partition management functions that involve two partitioned tables give precedence to the target table&#39;s pinning policy, as follows:

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



&lt;tr&gt; 

&lt;th &gt;
Function&lt;/th&gt; 

&lt;th &gt;
Application of pinnning policy&lt;/th&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/partition-functions/copy-partitions-to-table/&#34;&gt;COPY_PARTITIONS_TO_TABLE&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
Partition-level pinning is reliable if the source and target tables have pinning policies on the same partition keys. If the two tables have different pinning policies, then the partition pinning policies of the target table apply.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/partition-functions/move-partitions-to-table/&#34;&gt;MOVE_PARTITIONS_TO_TABLE&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
Partition-level pinning policies of the target table apply.&lt;/td&gt;&lt;/tr&gt;

&lt;tr&gt; 

&lt;td &gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/partition-functions/swap-partitions-between-tables/&#34;&gt;SWAP_PARTITIONS_BETWEEN_TABLES&lt;/a&gt;&lt;/td&gt; 

&lt;td &gt;
Partition-level pinning policies of the target table apply.&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;/p&gt;
&lt;p&gt;For example, the following statement copies partitions from table &lt;code&gt;foo&lt;/code&gt; to table &lt;code&gt;bar&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT COPY_PARTITIONS_TO_TABLE(&amp;#39;foo&amp;#39;, &amp;#39;1&amp;#39;, &amp;#39;5&amp;#39;, &amp;#39;bar&amp;#39;);
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;In this case, the following logic applies:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;If the two tables have different partition pinning policies, then the pinning policy of target table &lt;code&gt;bar&lt;/code&gt; for partition keys 1-5 applies.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;If table &lt;code&gt;bar&lt;/code&gt; does not exist, then Vertica creates it from table &lt;code&gt;foo&lt;/code&gt;, and copies &lt;code&gt;foo&lt;/code&gt;&#39;s policy on partition keys 1-5. Subsequently, if you clear the partition pinning policy from either table, it is also cleared from the other.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Pinning&#34;&gt;Pinning Depot Objects&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-partition/&#34;&gt;CLEAR_DEPOT_PIN_POLICY_PARTITION&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET_DEPOT_PIN_POLICY_PROJECTION</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-projection/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-projection/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Pins a projection to a subcluster depot, or all database depots, to reduce its exposure to depot eviction. For details on pinning policies and usage guidelines, see &lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Pinning&#34;&gt;Pinning Depot Objects&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET_DEPOT_PIN_POLICY_PROJECTION ( &amp;#39;[[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;projection&#39;&lt;/span&gt; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster&lt;/span&gt;&amp;#39; ] [, &lt;span class=&#34;code-variable&#34;&gt;download&lt;/span&gt; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;projection&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Projection to pin.

&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;

After you pin a table to a subcluster, you cannot subsequently pin any of its projections to that subcluster. Conversely, you can pin one or more projections of a table to a subcluster, and then pin the table to that subcluster.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Sets this pinning policy on the &lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt; depot. To set this policy on the default subcluster, specify &lt;code&gt;default_subcluster&lt;/code&gt;. If you omit this parameter, the policy is set on all database depots.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;download&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Boolean, if set to true SET_DEPOT_PIN_POLICY_PROJECTION immediately queues the specified projection for download from communal storage.
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Pinning&#34;&gt;Pinning Depot Objects&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-projection/&#34;&gt;CLEAR_DEPOT_PIN_POLICY_PROJECTION&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SET_DEPOT_PIN_POLICY_TABLE</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-table/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/set-depot-pin-policy-table/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Pins a table to a subcluster depot, or all database depots, to reduce its exposure to depot eviction. For details on pinning policies and usage guidelines, see &lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Pinning&#34;&gt;Pinning Depot Objects&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SET_DEPOT_PIN_POLICY_TABLE ( &amp;#39;[[&lt;span class=&#34;code-variable&#34;&gt;database&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;schema&lt;/span&gt;.]&lt;span class=&#34;code-variable&#34;&gt;table&#39;&lt;/span&gt; [, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster&lt;/span&gt;&amp;#39; ] [, &lt;span class=&#34;code-variable&#34;&gt;download&lt;/span&gt; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;code&gt;[&lt;/code&gt;&lt;em&gt;&lt;code&gt;database&lt;/code&gt;&lt;/em&gt;&lt;code&gt;.]&lt;/code&gt;&lt;em&gt;&lt;code&gt;schema&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;p&gt;Database and &lt;a href=&#34;../../../../../en/admin/configuring-db/designing-logical-schema/using-multiple-schemas/setting-search-paths/&#34;&gt;schema&lt;/a&gt;. The default schema is &lt;code&gt;public&lt;/code&gt;. If you specify a database, it must be the current database.&lt;/p&gt;
&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;table&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Table to pin.

&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;

After you pin a table to a subcluster, you cannot subsequently pin any of its partitions or projections to that subcluster. Conversely, you can pin one or more partitions or projections of a table to a subcluster, and then pin the table to that subcluster.

&lt;/div&gt;&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Sets this pinning policy on the &lt;em&gt;&lt;code&gt;subcluster&lt;/code&gt;&lt;/em&gt; depot. To set this policy on the default subcluster, specify &lt;code&gt;default_subcluster&lt;/code&gt;. If you omit this parameter, the policy is set on all database depots.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;download&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Boolean, if set to true, SET_DEPOT_PIN_POLICY_TABLE immediately queues the specified table for download from communal storage.
&lt;p&gt;&lt;strong&gt;Default:&lt;/strong&gt; false&lt;/p&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/eon/depot-management/managing-depot-caching/#Pinning&#34;&gt;Pinning Depot Objects&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clear-depot-pin-policy-table/&#34;&gt;CLEAR_DEPOT_PIN_POLICY_TABLE&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SHUTDOWN_SUBCLUSTER</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/shutdown-subcluster/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/shutdown-subcluster/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Shuts down a subcluster. This function shuts down the subcluster synchronously, returning when shutdown is complete with the message &lt;em&gt;Subcluster shutdown&lt;/em&gt;. If the subcluster is already down, the function returns with no error.&lt;/p&gt;
&lt;p&gt;Stopping a subcluster does not warn you if there are active user sessions connected to the subcluster. This behavior is the same as stopping an individual node. Before stopping a subcluster, verify that no users are connected to it.&lt;/p&gt;
&lt;p&gt;If you want to drain client connections before shutting down a subcluster, you can gracefully shutdown the subcluster using &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/shutdown-with-drain/&#34;&gt;SHUTDOWN_WITH_DRAIN&lt;/a&gt;.

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

This function does not test whether the target subcluster is critical (a subcluster whose loss would cause the database to shut down). Using this function to shut down a critical subcluster results in the database shutting down. Always verify that the subcluster you want to shut down is not critical by querying the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/critical-subclusters/&#34;&gt;CRITICAL_SUBCLUSTERS&lt;/a&gt; system table before calling this function.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SHUTDOWN_SUBCLUSTER(&amp;#39;&lt;span class=&#34;code-variable&#34;&gt;subcluster‑name&lt;/span&gt;&amp;#39;)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the subcluster to shut down.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example demonstrates shutting down the subcluster &lt;code&gt;analytics&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT subcluster_name, node_name, node_state FROM nodes order by 1,2;
  subcluster_name   |      node_name       | node_state
--------------------+----------------------+------------
 analytics          | v_verticadb_node0004 | UP
 analytics          | v_verticadb_node0005 | UP
 analytics          | v_verticadb_node0006 | UP
 default_subcluster | v_verticadb_node0001 | UP
 default_subcluster | v_verticadb_node0002 | UP
 default_subcluster | v_verticadb_node0003 | UP
(6 rows)

=&amp;gt; SELECT SHUTDOWN_SUBCLUSTER(&amp;#39;analytics&amp;#39;);
WARNING 4539:  Received no response from v_verticadb_node0004 in stop subcluster
WARNING 4539:  Received no response from v_verticadb_node0005 in stop subcluster
WARNING 4539:  Received no response from v_verticadb_node0006 in stop subcluster
 SHUTDOWN_SUBCLUSTER
---------------------
 Subcluster shutdown
(1 row)

=&amp;gt; SELECT subcluster_name, node_name, node_state FROM nodes order by 1,2;
  subcluster_name   |      node_name       | node_state
--------------------+----------------------+------------
 analytics          | v_verticadb_node0004 | DOWN
 analytics          | v_verticadb_node0005 | DOWN
 analytics          | v_verticadb_node0006 | DOWN
 default_subcluster | v_verticadb_node0001 | UP
 default_subcluster | v_verticadb_node0002 | UP
 default_subcluster | v_verticadb_node0003 | UP
(6 rows)
&lt;/code&gt;&lt;/pre&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;

The &amp;quot;WARNING 4539&amp;quot; messages after calling SHUTDOWN_SUBCLUSTER occur because the nodes are in the process of shutting down. They are expected.

&lt;/div&gt;
&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;



&lt;ul&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/demote-subcluster-to-secondary/&#34;&gt;DEMOTE_SUBCLUSTER_TO_SECONDARY&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/promote-subcluster-to-primary/&#34;&gt;PROMOTE_SUBCLUSTER_TO_PRIMARY&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/architecture/eon-concepts/subclusters/&#34;&gt;Subclusters&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/statements/alter-statements/alter-subcluster/&#34;&gt;ALTER SUBCLUSTER&lt;/a&gt;&lt;/li&gt;
	
	&lt;li&gt;&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/critical-subclusters/&#34;&gt;CRITICAL_SUBCLUSTERS&lt;/a&gt;&lt;/li&gt;
	
&lt;/ul&gt;



      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SHUTDOWN_WITH_DRAIN</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/shutdown-with-drain/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/shutdown-with-drain/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Gracefully shuts down a subcluster or subclusters. The function drains client connections on the subcluster&#39;s nodes and then shuts down the subcluster. This is synchronous function that returns when the shutdown message has been sent to the subcluster.&lt;/p&gt;
&lt;p&gt;Work from existing user sessions continues on draining nodes, but the nodes refuse new client connections and are excluded from load-balancing operations. dbadmin can still connect to draining nodes.&lt;/p&gt;
&lt;p&gt;The nodes drain until either the existing connections complete their work and close or the user-specified timeout is reached. When one of these conditions is met, the function proceeds to shut down the subcluster.&lt;/p&gt;
&lt;p&gt;For more information about the graceful shutdown process, see &lt;a href=&#34;../../../../../en/eon/managing-subclusters/starting-and-stopping-subclusters/#Graceful_Shutdown&#34;&gt;Graceful Shutdown&lt;/a&gt;.

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

This function does not test whether the target subcluster is critical (a subcluster whose loss would cause the database to shut down). Using this function to shut down a critical subcluster results in the database shutting down. Always verify that the subcluster you want to shut down is not critical by querying the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/critical-subclusters/&#34;&gt;CRITICAL_SUBCLUSTERS&lt;/a&gt; system table before calling this function.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SHUTDOWN_WITH_DRAIN( &lt;span class=&#34;code-variable&#34;&gt;&#39;subcluster-name&#39;&lt;/span&gt;, &lt;span class=&#34;code-variable&#34;&gt;timeout-seconds&lt;/span&gt; )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the subcluster to shutdown. Enter an empty string to shutdown all subclusters in a database.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;timeout-seconds&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Number of seconds to wait before forcefully closing &lt;em&gt;&lt;code&gt;subcluster-name&lt;/code&gt;&lt;/em&gt;&#39;s client connections and shutting down. The behavior depends on the sign of &lt;em&gt;&lt;code&gt;timeout-seconds&lt;/code&gt;&lt;/em&gt;:
&lt;ul&gt;
&lt;li&gt;Positive integer: The function waits until either the runtime reaches &lt;em&gt;&lt;code&gt;timeout-seconds&lt;/code&gt;&lt;/em&gt; or the client connections finish their work and close. As soon as one of these conditions is met, the function immediately proceeds to shut down the subcluster.&lt;/li&gt;
&lt;li&gt;Zero: The function immediately closes any open client connections and shuts down the subcluster.&lt;/li&gt;
&lt;li&gt;Negative integer: The function marks the subcluster as draining and waits indefinitely to shut down the subcluster until all active user sessions disconnect.&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;In the following example, the function marks the subcluster named analytics as draining and then shuts it down as soon as either the existing client connections close or 300 seconds pass:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SHUTDOWN_WITH_DRAIN(&amp;#39;analytics&amp;#39;, 120);
NOTICE 0:  Draining has started on subcluster (analytics)
NOTICE 0:  Begin shutdown of subcluster (analytics)
                              SHUTDOWN_WITH_DRAIN
--------------------------------------------------------------------------------------------------------------------
Set subcluster (analytics) to draining state
Waited for 3 nodes to drain
Shutdown message sent to subcluster (analytics)

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can query the DC_DRAINING_EVENTS table to see more information about draining and shutdown events, such as whether any user sessions were forcibly closed. This subcluster had one active user session when the shutdown began, but it closed before the timeout was reached:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT event_type, event_type_name, event_description, event_result, event_result_name FROM dc_draining_events;
 event_type |       event_type_name        |                          event_description                          | event_result | event_result_name
------------+------------------------------+---------------------------------------------------------------------+--------------+-------------------
          0 | START_DRAIN_SUBCLUSTER       | START_DRAIN for SHUTDOWN of subcluster (analytics)                  |            0 | SUCCESS
          2 | START_WAIT_FOR_NODE_DRAIN    | Wait timeout is 120 seconds                                         |            4 | INFORMATIONAL
          4 | INTERVAL_WAIT_FOR_NODE_DRAIN | 1 sessions remain after 0 seconds                                   |            4 | INFORMATIONAL
          4 | INTERVAL_WAIT_FOR_NODE_DRAIN | 1 sessions remain after 30 seconds                                  |            4 | INFORMATIONAL
          3 | END_WAIT_FOR_NODE_DRAIN      | Wait for drain ended with 0 sessions remaining                      |            0 | SUCCESS
          5 | BEGIN_SHUTDOWN_AFTER_DRAIN   | Starting shutdown of subcluster (analytics) following drain         |            4 | INFORMATIONAL
(6 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;a href=&#34;../../../../../en/eon/managing-subclusters/starting-and-stopping-subclusters/#Graceful_Shutdown&#34;&gt;Graceful Shutdown&lt;/a&gt;&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/draining-status/&#34;&gt;DRAINING_STATUS&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/start-drain-subcluster/&#34;&gt;START_DRAIN_SUBCLUSTER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/cancel-drain-subcluster/&#34;&gt;CANCEL_DRAIN_SUBCLUSTER&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: START_DRAIN_SUBCLUSTER</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/start-drain-subcluster/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/start-drain-subcluster/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Drains a subcluster or subclusters. The function marks all nodes in the designated subcluster as draining. Work from existing user sessions continues on draining nodes, but the nodes refuse new client connections and are excluded from load balancing operations. dbadmin can still connect to draining nodes.&lt;/p&gt;
&lt;p&gt;To drain connections on a subcluster as part of a graceful shutdown process, you can call &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/shutdown-with-drain/&#34;&gt;SHUTDOWN_WITH_DRAIN&lt;/a&gt;. For details, see &lt;a href=&#34;../../../../../en/eon/managing-subclusters/starting-and-stopping-subclusters/#Graceful_Shutdown&#34;&gt;Graceful Shutdown&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;To cancel a draining operation on a subcluster, call &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/cancel-drain-subcluster/&#34;&gt;CANCEL_DRAIN_SUBCLUSTER&lt;/a&gt;. If all draining nodes in a subcluster are stopped, they are marked as not draining upon restart.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;START_DRAIN_SUBCLUSTER( &lt;span class=&#34;code-variable&#34;&gt;&#39;subcluster-name&#39;&lt;/span&gt; )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Name of the subcluster to drain. Enter an empty string to drain all subclusters in the database.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;The following example demonstrates how to drain a subcluster named analytics:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT subcluster_name, node_name, node_state FROM nodes;
subcluster_name    |      node_name     | node_state
-------------------+--------------------+------------
default_subcluster | verticadb_node0001 | UP
default_subcluster | verticadb_node0002 | UP
default_subcluster | verticadb_node0003 | UP
analytics          | verticadb_node0004 | UP
analytics          | verticadb_node0005 | UP
analytics          | verticadb_node0006 | UP
(6 rows)

=&amp;gt; SELECT START_DRAIN_SUBCLUSTER(&amp;#39;analytics&amp;#39;);
               START_DRAIN_SUBCLUSTER
-------------------------------------------------------
Targeted subcluster: &amp;#39;analytics&amp;#39;
Action: START DRAIN
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You can confirm that the subcluster is draining by querying the &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/draining-status/&#34;&gt;DRAINING_STATUS&lt;/a&gt; system table:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
=&amp;gt; SELECT node_name, subcluster_name, is_draining FROM draining_status ORDER BY 1;
node_name          | subcluster_name    | is_draining
-------------------+--------------------+-------
verticadb_node0001 | default_subcluster | f
verticadb_node0002 | default_subcluster | f
verticadb_node0003 | default_subcluster | f
verticadb_node0004 | analytics          | t
verticadb_node0005 | analytics          | t
verticadb_node0006 | analytics          | t
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/admin/managing-client-connections/drain-client-connections/&#34;&gt;Drain client connections&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/cancel-drain-subcluster/&#34;&gt;CANCEL_DRAIN_SUBCLUSTER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-monitor-schema/draining-status/&#34;&gt;DRAINING_STATUS&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

      </description>
    </item>
    
    <item>
      <title>Sql-Reference: START_REAPING_FILES</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/start-reaping-files/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/start-reaping-files/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Starts the disk file deletion in the background as an asynchronous function. By default, this meta-function syncs the catalog before beginning deletion. Disk file deletion is handled in the foreground by &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/flush-reaper-queue/&#34;&gt;FLUSH_REAPER_QUEUE&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;START_REAPING_FILES( [&lt;span class=&#34;code-variable&#34;&gt;sync‑catalog&lt;/span&gt;] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;*&lt;/code&gt;sync‑catalog&lt;code&gt;*&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Specifies to &lt;a href=&#34;../../../../../en/eon/synchronizing-metadata/&#34;&gt;sync metadata&lt;/a&gt; in the database catalog on all nodes before the function executes:
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;true&lt;/code&gt; (default): Sync the database catalog&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;code&gt;false&lt;/code&gt;: Run without syncing.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Start the reaper service:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT START_REAPING_FILES();
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Start the reaper service and skip the initial catalog sync:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT START_REAPING_FILES(false);
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: SYNC_CATALOG</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/sync-catalog/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/sync-catalog/</guid>
      <description>
        
        
        &lt;p&gt;Eon Mode only&lt;/p&gt;

&lt;p&gt;Synchronizes the catalog to communal storage to enable reviving the current catalog version in the case of an imminent crash. Vertica synchronizes all pending checkpoint and transaction logs to communal storage.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;SYNC_CATALOG( [ &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;node‑name&lt;/span&gt;&amp;#39; ] )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;parameters&#34;&gt;Parameters&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;node‑name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;The node to synchronize. If you omit this argument, Vertica synchronizes the catalog on all nodes.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;p&gt;Superuser&lt;/p&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;Synchronize the catalog on all nodes:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SYNC_CATALOG();
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Synchronize the catalog on one node:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT SYNC_CATALOG( &amp;#39;node001&amp;#39; );
&lt;/code&gt;&lt;/pre&gt;
      </description>
    </item>
    
    <item>
      <title>Sql-Reference: UNSANDBOX_SUBCLUSTER</title>
      <link>/en/sql-reference/functions/management-functions/eon-functions/unsandbox-subcluster/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      
      <guid>/en/sql-reference/functions/management-functions/eon-functions/unsandbox-subcluster/</guid>
      <description>
        
        
        &lt;p&gt;Removes a subcluster from a sandbox.

&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;

Vertica recommends using the admintools &lt;code&gt;unsandbox_subcluster&lt;/code&gt; command to remove sandboxes. This command automatically stops the sandboxed nodes, wipes the node&#39;s catalog subdirectories, and restarts the nodes. If you use the UNSANDBOX_SUBCLUSTER function, these steps must be completed manually. For details, see &lt;a href=&#34;../../../../../en/eon/subcluster-sandboxing/removing-sandboxes/&#34;&gt;Removing sandboxes&lt;/a&gt;.

&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;After stopping the nodes in the sandboxed subcluster, you must run this function in the main cluster from which the sandboxed subcluster was spun-off. The function changes the metadata in the main cluster that designates the specified subcluster as sandboxed, but does not restart the subcluster and rejoin it to the main cluster. To rejoin the subcluster to the main cluster and return the nodes to their normal state, you must complete the following tasks:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;Wipe the catalog subdirectory from the sandboxed nodes. The main cluster provides the current catalog information on node restart.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Restart the nodes. On successful restart, the nodes should rejoin the main cluster.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Remove the sandbox metadata prefix from the shared communal storage location. This helps avoid problems that might arise form reusing the same sandbox name.&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;

If you upgraded the Vertica version of the sandboxed subcluster, you must downgrade the version of the subcluster before rejoining it to the main cluster.

&lt;/div&gt;
&lt;p&gt;If there are no more active sandboxes, you can run &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clean-communal-storage/&#34;&gt;CLEAN_COMMUNAL_STORAGE&lt;/a&gt; to remove any data created in the sandbox. The main cluster can also resume processing data queued for deletion.&lt;/p&gt;
&lt;p&gt;This is a meta-function. You must call meta-functions in a top-level &lt;a href=&#34;../../../../../en/sql-reference/statements/select/&#34;&gt;SELECT&lt;/a&gt; statement.&lt;/p&gt;

&lt;h2 id=&#34;behavior-type&#34;&gt;Behavior type&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/volatile-functions/&#34; title=&#34;&#34;&gt;Volatile&lt;/a&gt;
&lt;h2 id=&#34;syntax&#34;&gt;Syntax&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;UNSANDBOX_SUBCLUSTER( &lt;span class=&#34;code-variable&#34;&gt;&#39;subcluster‑name&#39;&lt;/span&gt;, &amp;#39;&lt;span class=&#34;code-variable&#34;&gt;options&lt;/span&gt;&amp;#39; )
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;arguments&#34;&gt;Arguments&lt;/h2&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;subcluster-name&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Identifies the subcluster to unsandbox. This must be a currently sandboxed subcluster.&lt;/dd&gt;
&lt;dt&gt;&lt;em&gt;&lt;code&gt;options&lt;/code&gt;&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;Currently, there are no options for this function.&lt;/dd&gt;
&lt;/dl&gt;
&lt;h2 id=&#34;privileges&#34;&gt;Privileges&lt;/h2&gt;
&lt;a class=&#34;glosslink&#34; href=&#34;../../../../../en/glossary/db-superuser/&#34; title=&#34;&#34;&gt;Superuser&lt;/a&gt;
&lt;h2 id=&#34;examples&#34;&gt;Examples&lt;/h2&gt;
&lt;p&gt;After stopping the nodes in the sandbox, you can unsandbox the subcluster by calling the UNSANDBOX_SUBCLUSTER function in the main cluster. In the following example, the function unsandboxes the &lt;code&gt;sc_02&lt;/code&gt; subcluster from the &lt;code&gt;sand&lt;/code&gt; sandbox:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT UNSANDBOX_SUBCLUSTER(&amp;#39;sc_02&amp;#39;, &amp;#39;&amp;#39;);
                                          UNSANDBOX_SUBCLUSTER
---------------------------------------------------------------------------------------------------------------
Subcluster &amp;#39;sc_02&amp;#39; has been unsandboxed. If wiped out and restarted, it should be able to rejoin the cluster.
(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;To rejoin the nodes to the main cluster, you must wipe the local catalog from each of the previously sandboxed nodes—whose catalog location can be found by querying &lt;a href=&#34;../../../../../en/sql-reference/system-tables/v-catalog-schema/nodes/&#34;&gt;NODES&lt;/a&gt;—and then restart the nodes:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
$ rm -rf &lt;span class=&#34;code-variable&#34;&gt;paths-to-node-catalogs&lt;/span&gt;

$ admintools -t restart_node -s &lt;span class=&#34;code-variable&#34;&gt;list-of-nodes&lt;/span&gt; -p &lt;span class=&#34;code-variable&#34;&gt;password&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;After the nodes restart, you can query the NODES system table to confirm that the previously sandboxed nodes are UP and are no longer a member of &lt;code&gt;sand&lt;/code&gt;:&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;=&amp;gt; SELECT node_name, subcluster_name, node_state, sandbox FROM NODES;
      node_name       |  subcluster_name   | node_state | sandbox
----------------------+--------------------+------------+---------
 v_verticadb_node0001 | default_subcluster | UP         |
 v_verticadb_node0002 | default_subcluster | UP         |
 v_verticadb_node0003 | default_subcluster | UP         |
 v_verticadb_node0004 | sc_02              | UP         |
 v_verticadb_node0005 | sc_02              | UP         |
 v_verticadb_node0006 | sc_02              | UP         |
(6 rows)
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;If there are no more active sandboxes, you can run the &lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/clean-communal-storage/&#34;&gt;CLEAN_COMMUNAL_STORAGE&lt;/a&gt; function to remove any data created in the sandbox. You should also remove the sandbox&#39;s metadata from the shared communal storage location, which can be found at &lt;span class=&#34;code-variable&#34;&gt;/path-to-communal-storage/`metadata`/sandbox_name&lt;/span&gt;. The following example removes the sandbox&#39;s metadata from an S3 bucket and then calls CLEAN_COMMUNAL_STORAGE to cleanup any data from the sandbox::&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;
$ aws s3 rm &lt;span class=&#34;code-variable&#34;&gt;/path-to-communal/metadata/sandbox_name&lt;/span&gt;

=&amp;gt; SELECT CLEAN_COMMUNAL_STORAGE(&amp;#39;true&amp;#39;);
                     CLEAN_COMMUNAL_STORAGE
-----------------------------------------------------------------
 CLEAN COMMUNAL STORAGE
Total leaked files: 143
Files have been queued for deletion.
Check communal_cleanup_records for more information.

(1 row)
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;see-also&#34;&gt;See also&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/sql-reference/functions/management-functions/eon-functions/sandbox-subcluster/&#34;&gt;SANDBOX_SUBCLUSTER&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a href=&#34;../../../../../en/eon/subcluster-sandboxing/removing-sandboxes/&#34;&gt;Removing sandboxes&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

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