Deploy QueryGrid on Google Cloud | QueryGrid - Automatically Deploy QueryGrid on Google Cloud Instance Group - Teradata QueryGrid

QueryGridâ„¢ Installation and User Guide - 3.06

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
Teradata QueryGrid
Release Number
3.06
Published
December 2024
ft:locale
en-US
ft:lastEdition
2024-12-07
dita:mapPath
ndp1726122159943.ditamap
dita:ditavalPath
ft:empty
dita:id
lxg1591800469257
lifecycle
latest
Product Category
Analytical Ecosystem
This option is available for use with the BigQuery, Oracle, or Generic JDBC connectors.

This procedure creates an auto-scalable cluster of Google Cloud instances with QueryGrid installed. When deploying QueryGrid to hosts that are members of a Google Cloud Instance Group, you can automate the tdqg-node installations and registration process by specifying a bootstrap script that runs on all newly added members of the Google Cloud Instance Group.

The required script, TDQG_DEPLOYMENT-scriptVersion.sh is packaged in the node package tdqg-node-version.tar.gz. The script can be either uploaded to Google Storage or its contents can be copied and pasted into the startup-script field.

This procedure assumes the following prerequisites:
  • You have required privileges to create Instance Templates and Instance Groups.
  • The cURL tool is installed on all nodes where you intend to install QueryGrid.
    If the node does not have Java installed, OpenJDK 11 is installed.
  1. Add a system in Viewpoint and download the tdqg-node.json token file that was generated by the QueryGrid Manager.
    For information about downloading tdqg-node.json, see Adding Nodes Manually.
  2. Download the node package, see Downloading Required Packages.
  3. Unzip the package using the tar -xzvf tdqg-node-version.tar.gz command.
    TDQG_DEPLOYMENT.sh is available in the qgdeployment/googlecloud path.
  4. In the Google Cloud Instance Template, select Create an Instance template and provide the following key value pairs to the Management Metadata section:
    Required key value pair tdqg_node_json

    The contents of the tdqg-node.json token file that was generated by QueryGrid Manager.

    For non-SLES Google Cloud instances, you can use the Google Cloud storage address for the file as the value using the following format:
    gs://bucket/folder/filename
    Provide one of the following key value pairs startup-script

    The contents of the TDQG_DEPLOYMENT-scriptVersion.sh file.

    startup-script-url

    Path to the TDQG_DEPLOYMENT-scriptVersion.sh file on Google Storage.

    Optional key value pair scale-in-enabled:true
    This enables automated scale-in performed by the QueryGrid software when a driver host has been idle for a certain amount of time. When combined with an Autoscale only out policy defined in the Google Cloud Instance Group, both scale in and scale out are automated.
    Because this task is performed by QueryGrid, if set to true, scale in occurs even if the Google Cloud Instance Group is set to Do Not Autoscale.
  5. In the Google Cloud Instance template, select Create Instance Group then select New managed instance group stateless after making your selections for name, region, and so on.
    For Instance Template, select the instance template you created for use with QueryGrid and select either Autoscale only out or Don't autoscale.
    Allowing Google Cloud to perform the autoscale-in rather than using the QueryGrid scale-in-enabled feature can cause queries to fail while the scale-in is being performed.
    Example: Combining the Google Cloud Autoscale only out policy with the QueryGrid automated scale-in-enabled feature.
    Configuration:
    • BigQuery connector machine type: n2-standard-2 (2 cores, 8GB memory)
    • Autoscaling policy: CPU utilization, 80%
    Results:
    • 4 concurrent users making 10 consecutive queries on an integer column in a table with 14 million rows: group size increases to 2 instances
    • 8 concurrent users making 10 consecutive queries on an integer column in a table with 14 million rows: group size increases to 3 instances
    • Group size reduces back to 1 instance after 15 minutes of idle time