Virtual Warehouses

Overview

A virtual warehouse is a cluster of computing resources in Bytehouse that we can scale out on demand. A warehouse provides the required resources, such as CPU, memory, and temporary storage, to perform the following operations:

  • Executing SQL statements that require compute resources (e.g. retrieving rows from tables and views) for short and long-running queries.

  • Performing DML operations, such as:

    • Updating rows in tables (DELETE , INSERT , UPDATE).

    • Loading data into tables

    • Unloading data from tables

Virtual warehouses have the following advantages:

  1. Read-write separation and resource separation: Separate Virtual Warehouses can be created to perform data-loading tasks, or run queries in real-time. Creating Virtual Warehouses also allow different departments or business lines to have clear separation of resources, avoiding potential impact on performances between different queries.

  2. One-click scaling: Virtual Warehouses can easily scale up or down according to business requirements for cost-effective resource utilisation.

  3. Access control: Virtual warehouses can also be granted to different permissions into various roles, thus users can achieve fine-grained access control.

Virtual Warehouse Sizes

  • XS (Extra Small)
  • S (Small)
  • M (Medium)
  • L (Large)
  • XL (Extra Large)

Managing Virtual Warehouses

Bytehouse Virtual Warehouse page provides an interface for creating, starting, and suspend virtual warehouse on-demand, as well as configuring and scaling up/down its compute resources.

Creating Virtual Warehouse

  1. In Virtual Warehouse page, click the +New button on the top right corner

  2. Create Virtual Warehouse dialog will open and using this dialog we can specify the virtual warehouse attribute to allocate compute resources.

  3. Once done, click OK and the virtual warehouse will be automatically created and started for you.

  • Note: ByteHouse Virtual Warehouses have auto-suspend/resume functionality enabled by default.

If auto-suspend is enabled, the virtual warehouse will be shut down if there is no request during the time interval.

If auto-resume is enabled, users do not need to manually enable the virtual warehouses. Instead, the Virtual Warehouse will resume when a new query is submitted. Please take note that a longer time is needed for the first query to run when a virtual warehouse has auto-resumed.

Resuming Virtual Warehouse

Resuming a Virtual Warehouse that was suspended can be done using any one of the following options:

  1. Resume one or multiple virtual warehouses using item selection and click ▷ the button.
  1. Resume one particular virtual warehouses using triple-dot drop-down and click Resume
  1. After enabling auto-resume, users can directly choose virtual warehouse from SQL worksheet, then turn on the virtual warehouse by query running.

Suspending Virtual Warehouse

Suspending a Virtual Warehouse that was suspended can be done using any one of the following options:

  1. Resume one or multiple virtual warehouses using item selection and click ⏸️ button.
  1. Resume one particular virtual warehouses using triple-dot drop-down and click Stop
  1. After enabling auto-suspend, if there is no request during the time interval, the virtual warehouse will be auto-suspended. Currently we support the following intervals:
  • 5 minutes
  • 30 minutes
  • 1 hour
  • 6 hours

NOTE: suspending a virtual warehouse can cause any queries that run within this warehouse to fail instantly. Be careful when performing this operation.

Dropping Virtual Warehouse

Dropping a Virtual Warehouse effectively suspends all the running queries and removes the cluster from deployment and the virtual warehouse from the lists of available virtual warehouses.


Did this page help you?