Configuring Yugabyte workspace data connections

Source and destination databases should be on different clusters.

On the workspace configuration view, under Connection Type, click Yugabyte SQL.

Connecting to the source database

In the Source Settings section, provide the details about connecting to the source database.

To provide the connection details, you can either populate the connection fields or use a connection string.

Populating the connection fields

By default, Use connection string is off, and you provide the connection values in the individual fields:

  1. In the Server field, provide the server where the database is located.

  2. In the Database field, provide the name of the database.

  3. In the Port field, provide the port to use to connect to the database.

  4. In the Username field, provide the username for the account to use to connect to the database.

  5. In the Password field, provide the password for the specified username.

Using a connection string

To use a connection string to connect to the source database:

  1. Toggle Use connection string to the on position.

  2. In the Connection String field, provide the connection string.

The connection string uses the following format:

Server=serverIP;Database=databaseName;User Id=userName;Password=<password>

For Password, you set the value to <password>, and then type the actual password in the Password field.

Limiting the included schemas

By default, the source database includes all of the schemas. To specify a list of specific schemas to either include or exclude:

  1. Toggle Limit Schemas to the on position.

  2. From the filter option dropdown list, select whether to include or exclude the listed schemas.

  3. In the field, provide the list of schemas to either include or exclude. Use commas or semicolons to separate the schemas.

Do not exclude schemas that are referred to by included schemas, unless you create those schemas manually outside of Structural.

Providing SSL authentication settings

To configure the authentication settings for the source database:

  1. By default, SSL is enabled, and Enable SSL/TLS is in the on position. We strongly recommend that you do not turn off SSL.

  2. To indicate that Structural should trust the server certificate, toggle Trust Server Certificate to the on position.

  3. To connect to an SSH bastion for additional security:

    1. Toggle Enable SSH Tunnel to the on position.

    2. In the SSH Host field, provide the host for the SSH bastion.

    3. In the SSH Port field, provide the port for the SSH bastion.

    4. In the SSH User field, provide the name of the user to use to connect to the SSH bastion.

    5. If you do not use a private key, then in the SSH Passphrase field, provide the passphrase to use for authentication.

    6. If you do use a private key, then in the SSH Private Key field, provide the private key. If the private key uses a passphrase, then in the SSH Passphrase field, provide the passphrase for the private key.

Testing the source connection

To test the connection to the source database, click Test Source Connection.

Blocking data generation for all schema changes

By default, data generation is not blocked as long as schema changes do not conflict with your workspace configuration.

To block data generation when there are any schema changes, regardless of whether they conflict with your workspace configuration, toggle Block data generation on schema changes to the on position.

Connecting to the destination database

Under Destination Settings, provide the connection details for the destination database. Structural installs any generally available extensions that are used on the source database. However, you must manually install any custom extensions and plugins.

You can either populate the connection fields or use a connection string.

Populating the connection fields

By default, Use connection string is off, and you provide the connection values in the individual fields:

  1. In the Server field, provide the server where the database is located.

  2. In the Database field, provide the name of the database.

  3. In the Port field, provide the port to use to connect to the database.

  4. In the Username field, provide the username for the account to use to connect to the database.

  5. In the Password field, provide the password for the specified username.

Using a connection string

To use a connection string to connect to the source database:

  1. Toggle Use connection string to the on position.

  2. In the Connection String field, provide the connection string.

The connection string uses the following format:

Server=serverIP;Database=databaseName;User Id=userName;Password=<password>

For Password, you set the value to <password>, and then type the actual password in the Password field.

Providing SSL authentication settings

To configure the authentication settings for the destination database:

  1. By default, SSL is enabled, and Enable SSL/TLS is in the on position. We strongly recommend that you do not turn off SSL.

  2. To indicate that Tonic should trust the server certificate, toggle Trust Server Certificate to the on position.

  3. To connect to an SSH bastion for additional security:

    1. Toggle Enable SSH Tunnel to the on position.

    2. In the SSH Host field, provide the host for the SSH bastion.

    3. In the SSH Port field, provide the port for the SSH bastion.

    4. In the SSH User field, provide the name of the user to use to connect to the SSH bastion.

    5. If you do not use a private key, then in the SSH Passphrase field, provide the passphrase to use for authentication.

    6. If you do use a private key, then in the SSH Private Key field, provide the private key. If the private key uses a passphrase, then in the SSH Passphrase field, provide the passphrase for the private key.

Testing the destination connection

To test the connection to the destination database, click Test Destination Connection.

Workspace statistics seed for cross-run consistency

For generators where consistency is enabled, a statistics seed enables consistency across data generation runs. The Structural-wide statistics seed value ensures consistency across both data generation runs and workspaces.

In the workspace configuration, under Destination Settings, use the Override Statistics Seed setting to override the Structural-wide statistics seed value. You can either disable consistency across data generations, or provide a seed value for the workspace. The workspace seed value ensures consistency across data generation runs for that workspace, and across other workspaces that have the same seed value.

For details about using seed values to ensure consistency across data generation runs and databases, go to Enabling consistency across runs or multiple databases.

Last updated