Moving Data Across Clusters

You can only share data or attach databases within a single cluster group, not across groups. There is no direct method of moving tables or databases betweencluster groups currently available in SingleStore Helios.

To move data between cluster groups, you can use one of the following methods:

Move a Table or a Subset of Data (ETL via Object Storage)

This method involves the following steps:

  1. Export from the source cluster group: From a cluster in the source cluster group, write the table to S3/GCS/Azure Blob using SELECT ... INTO. For example:

    SELECT * FROM src_db.src_table
    INTO S3 's3://my-bucket/my-prefix/'
    CONFIG '{...}'
    CREDENTIALS '{...}';

    Variants exist for INTO AZURE, INTO GCS, etc. for details refer SELECT

  2. Re-create the schema in target cluster group: In a cluster in the destination cluster group, create the destination table with matching DDL.

  3. Load into target cluster group: In the destination cluster group, use a Pipeline (recommended) or LOAD DATA from that bucket to load into the new table.

    CREATE PIPELINE p_move_table AS
    LOAD DATA S3 's3://my-bucket/my-prefix/'
    CONFIG '{...}'
    CREDENTIALS '{...}'
    INTO TABLE dest_db.dest_table;
    START PIPELINE p_move_table;

    For details on options available refer:

    CREATE PIPELINE

    Load Data with SingleStore Flow on Helios

    LOAD DATA

Move an Entire Database

If you want to move a whole database across cluster groups, you can:

Run BACKUP DATABASE from a cluster in the source cluster group to object storage.

Run RESTORE DATABASE from a cluster in the destination cluster group, pointing at that backup.

Last modified:

Was this article helpful?

Verification instructions

Note: You must install cosign to verify the authenticity of the SingleStore file.

Use the following steps to verify the authenticity of singlestoredb-server, singlestoredb-toolbox, singlestoredb-studio, and singlestore-client SingleStore files that have been downloaded.

You may perform the following steps on any computer that can run cosign, such as the main deployment host of the cluster.

  1. (Optional) Run the following command to view the associated signature files.

    curl undefined
  2. Download the signature file from the SingleStore release server.

    • Option 1: Click the Download Signature button next to the SingleStore file.

    • Option 2: Copy and paste the following URL into the address bar of your browser and save the signature file.

    • Option 3: Run the following command to download the signature file.

      curl -O undefined
  3. After the signature file has been downloaded, run the following command to verify the authenticity of the SingleStore file.

    echo -n undefined |
    cosign verify-blob --certificate-oidc-issuer https://oidc.eks.us-east-1.amazonaws.com/id/CCDCDBA1379A5596AB5B2E46DCA385BC \
    --certificate-identity https://kubernetes.io/namespaces/freya-production/serviceaccounts/job-worker \
    --bundle undefined \
    --new-bundle-format -
    Verified OK

Try Out This Notebook to See What’s Possible in SingleStore

Get access to other groundbreaking datasets and engage with our community for expert advice.