1.4 Creating a GGSA Instance

You can create a GGSA instance and launch GoldenGate Stream Analytics on Oracle Cloud Marketplace using the Stack Listing, following the steps below:

Finding GGSA on Oracle Cloud Marketplace

  1. Log in to the Oracle Cloud Marketplace.
  2. From the Oracle Cloud Marketplace home page, use the search box under Applications and search for the keyword Stream Analytics .
  3. From the search results, select GoldenGate Stream Analytics.

Deploying GGSA on Oracle Cloud Marketplace

  1. From the Application page, select Get App.
  2. Select OCI Region or Log in using your Single Sign-On credentials.
    • OCI Region – Select the desired region and click Create Stack.
  3. On the Oracle GoldenGate Stream Analytics page, provide the following information:
    • Select Version - It provides a list of versions that are available
    • Select Compartment - Specifies the compartment where the compute node will be built. It is generally the location that you have access to build the compute node.
    • Terms of Use - This check box is selected by default. Oracle recommends to review the licenses before proceeding with the instance creation.
    • Launch Stack - It launches the stack in the OCI environment.

Creating GGSA Resource Manager Stack

  1. Fill in the required Stack information:
    • Name - Name of the Stack. It has a default name and provides a date time stamp. You can edit this detail, if required.
    • Description - Description that you provide while creating the Stack.
    • Create In Compartment – It defaults to the compartment you have selected on the Oracle Marketplace page.
    • Terraform Version - It defaults to 0.12x.
    • Tags (optional) – Tags are a convenient way to assign a tracking mechanism but are not mandatory. You can assign a tag of your choice for easy tracking. You have to assign a tag for some environments for cost analysis purposes.
    • Click Next.
  2. Fill in the required details to configure variables.
    • Name for New Resources -
      • Display Name – Display name used to identify all new OCI resources.
      • Host DNS Name – Name of the Domain Name Service for the new compute node.

        Note:

        Do not include a hyphen in the Host DNS Name, while provisioning a GGSA instance. You will see the following error if you include a hyphen: No connection to server. Check your network connection and refresh page. If the problem persist contact administrator.
    • Network Settings -
      • Create New – Uncheck the check box Use Existing Network if you want to create new network infrastructure.
        1. VCN Network Compartment – Select the compartment in which you want to create the new VCN
        2. Subnet Network Compartment – Select the compartment in which you want to create the subnet.
        3. New VCN DNS Name – Name for the VCN
        4. New VCN CIDR Block – IP CIDR block for the VCN
        5. New Subnet DNS Name – Name for the new Subnet
        6. New Subnet CIDR Block – IP CIDR Block for the Subnet
      • Use existing Network – Check the Use existing Network check box, if you want to use existing network infrastructure.
        1. VCN Network Compartment – Select the compartment which has the existing VCN that you want to use
        2. Subnet Network Compartment – Select the compartment which has the existing Subnet that you want to use
        3. VCN – Select the VCN that you want to use.
        4. Subnet – Select the Subnet that you want to use.

        Note:

        If you are using an existing VCN and subnet, check the following if you want the instance to be accessible from public internet :

        • Your VCN must have an internet gateway
        • Your subnet should have security rules to allow ingress HTTP traffic for the following ports : 443, 7801, 7811-7830
          • 443 – has ngnix running which fronts the OSA UI and spark console
          • 7801 – is the port for the GG Manager when we install GoldenGate Big Data (GGBD)
          • 7811-7830 –When we start GG Change data from OSA UI, it creates a GG Distribution path and starts the GG Replicat process. These are the ports used by Oracle GG processes to bind for communication with a remote Oracle GG process.
        • Your subnet should be a public subnet and should have route rule with target type set to Internet Gateway, and should use the Gateway of the VCN.
    • Instance Settings –
      1. Availability Domain – It specifies the availability domain for the newly created GGSA Instance. It must match the Availability Domain of Subnet that you have selected in the Use Existing Network settings.
      2. Compute Shape – Shape of new compute instance. Supported shapes are VM.Standard2.4, VM.Standard2.8, VM.Standard2.16 and VM.Standard2.24
      3. Assign Public IP – This option indicates if the newly created VM should have a public IP address. This option is selected by default. If you clear this check box, no public IP address will be assigned preventing public access to the compute node.

        It is important to provide your RSA public key for accessing the instance using ssh. SSH is the only way to retrieve the passwords for GoldenGate Stream Analytics and MySQL Metadata store. RSA public key will start with ssh-rsa.

      4. Custom Volume Sizes – Select this check box to customize the size of the new block storage volumes that are built for the compute node.
        1. Boot Volume – 50 GB
        2. Kafka Logs – 50 GB
        3. Mysql Datafile – 50 GB
        4. GG4BD (Golden Gate For Big Data) Datadir – 50GB

        Note:

        GGSA Resource Manager Stack will create 3 additional block volumes apart from the boot volume attached to the instance. The naming conventions for these block volume is :
        • <Display Name> (Kafka Logs)
        • <Display Name> (Mysql Datafile)
        • <Display Name> (GG4BD Datadir)
        The Display Name is what you specified earlier.

        You can configure backup for these block volumes by subscribing to the OCI Backup Policy. To apply the Backup Policy, to the Block Volume, go to Block Storage -> Block Volume and select the block volume for which you want to configure the backup. Click Apply.

    • Use Existing Block Volume – Select this option if you already have block volumes from your previous install that has data that you want to reuse.
      1. Kafka Logs Block Volume – Provide the OCID of the block volume which was used for Kafka logs in your previous setup.
      2. MySql Datafile Block Volume – Provide the OCID of the block volume that was used for Mysql datafile storage in your previous setup
      3. GG4BD Datadir - Provide the OCID of the block volume that was used for Mysql datafile storage in your previous setup
    • Shell Access
      • SSH Public Key – Public Key for allowing SSH access as the opc user. Enter the key and click Next.
  3. Review -
    • On the Review page, review the information you provided and then click Create. The OCI Resource Manager Stack is created, and Terraform Apply action is initiated to create the OCI resources. You can see the created stack in the list of stacks in the Resource Manager - > Stacks section. You can manage the stack here.

Using Terraform Actions on Stack

Once the Stack is created, you can apply Terraform Actions on it to plan, create and destroy the OCI resources.

Terraform Actions on Stack

  • Plan – Terraform Plan performs a refresh, unless explicitly disabled, and then determines what actions are necessary to achieve the desired state.

  • Apply – Use the Terraform Apply action to create the OCI resources required to reach the required state as per the user selection in the stack creation.
  • Destroy – Use the Terraform Destroy action to destroy all the OCI resources created by the Stack during the Apply action.

    Note:

    All the resources created by the Apply action will be destroyed if you use the Destroy action, so be careful when using this action.