Managing Deployments

When you manage deployments, you can filter the list of deployments and start, stop, or edit deployments. When you edit a deployment, you can add additional stage libraries or edit the engine proxy properties.

After editing an active deployment to update the engine configuration, you must restart all engine instances belonging to the deployment for the changes to take effect.

You can clone a deployment to quickly create another deployment with similar configurations.

When needed, you can delete a deployment. You can also share deployments with other users and groups, as described in Permissions.

To upgrade an engine version, you must create a new deployment.

Filtering Deployments

In the Deployments view, you can filter the list of displayed deployments by type, state, tag, or engine type. You can also search for deployments by name.

  1. In the Navigation panel, click Set Up > Deployments.
  2. If the Filter column does not display, click the Toggle Filter Column icon: .

    The following image displays the Filter column in the Deployments view:

  3. To search for deployments by name, enter text in the search field, and then press Return.
  4. Select a type, state, tag, or engine type to additionally filter the list of deployments.
  5. Select the Keep Filter Persistent checkbox to retain the filter when you return to the view.
    Tip: To share the applied filter, copy the URL and send it to another user in your organization.

Starting Deployments

Start a deployment when you want to launch engine instances for the deployment.

You can start a deployment when you create it, or you can start it at a later time.

When you start a new self-managed deployment, Control Hub generates the installation script that you run to install and launch engine instances. When you restart an existing self-managed deployment, you must manually restart each existing engine instance from the command line.

When you start a Control Hub-managed deployment, Control Hub connects to the external system represented by the parent environment and automatically provisions the resources needed to run the engine type, ensuring that the resources meet engine requirements. Engine instances are then automatically deployed and launched on those resources.

You can start a deployment that is in the Deactivated or Deactivation Error state.

  1. In the Control Hub Navigation panel, click Set Up > Deployments.
  2. Select the deactivated deployments, and then click the Start icon: .
  3. Click OK to confirm.
  4. For an existing self-managed deployment, restart each existing engine instance from the command line.

Stopping Deployments

Stop a deployment when you want to temporarily prevent engine instances that belong to that deployment from running.

When you stop a self-managed deployment, running engine instances belonging to that deployment are shut down so that they no longer use computing resources. After you restart the deployment, you must manually start each engine instance from the command line.

When you stop a Control Hub-managed deployment, all provisioned resources in the external system are deleted so that you no longer incur any costs from the cloud service provider for that deployment. For example, if you stop an Amazon EC2 deployment, the provisioned AWS CloudFormation stack, EC2 template, and auto scaling group are deleted in addition to the EC2 instances that run StreamSets engines.
Note: You can also edit an active Control Hub-managed deployment to set the number of desired instances to 0 to temporarily prevent engine instances from running. In this case, the remaining resources, such as the AWS CloudFormation stack, EC2 template, and auto scaling group provisioned for an Amazon EC2 deployment continue to exist and to incur minimal costs from the cloud service provider.
You can stop a deployment that meets the following conditions:
  • The deployment is in the Active or Activation Error state.
  • No engine instances belonging to the deployment are currently running pipelines.
  1. In the Control Hub Navigation panel, click Set Up > Deployments.
  2. Select the active deployments, and then click the Stop icon: .
  3. Click OK to confirm.

    It can take a few minutes for a deployment to stop. Self-managed deployments wait to stop until all running engine instances are successfully shut down. Control Hub-managed deployments wait to stop until all running engine instances are successfully shut down and all provisioned resources in the external system are deleted.

Editing Deployments

You can edit deployments when they are in any state except for the transient Activating and Deactivating states.

When you edit an active self-managed deployment that updates most engine configuration properties, Control Hub prompts you to restart the engine instances for the changes to take effect.

When you edit a Control Hub-managed deployment that updates most engine configuration properties, Control Hub might delete the provisioned instances in your cloud account and then provision new instances. For more information, see one of the following topics:
Important: You cannot edit an active deployment to update engine proxy properties. You first must stop the deployment to change the proxy properties.

You cannot change all properties when you edit a deployment. You must create a new deployment to change the following properties:

  • Deployment type
  • Environment that the deployment belongs to
  • Engine version

To edit a deployment, locate the deployment in the Deployments view. In the Actions column, click the More icon () and then click Edit.

Updating Stage Libraries

Add stage libraries to a deployment when you want to use functionality provided by the stage library, such as a stage or credential store.

Remove stage libraries from a deployment when you no longer needed the stage library functionality.

To update stage libraries, you edit the deployment, then restart associated engines. During the restart, the added stage libraries are installed on the engine and the removed stage libraries are uninstalled from the engine.

  1. In the Control Hub Navigation panel, click Set Up > Deployments.
  2. In the Actions column of the deployment, click the More icon () and then click Edit.
  3. In the Edit Deployment dialog box, expand the Configure Deployment section.
  4. Click <number> stage libraries selected next to the Stage Libraries property.
  5. In the Select Stage Libraries window, select the stage libraries to add or remove in one of the following ways:
    • Select from stages - Click the Select from Stages tab and then filter or search for the stages or credential stores to add or remove. After selecting a stage that is included in multiple stage libraries, select the specific stage library version to add.
    • Select from stage libraries - Click the Select from Stage Libraries tab and then select the stage libraries to add. Clear the stage libraries to remove.
  6. In the Select Stage Libraries window, click the Summary tab to review the selected stage libraries by file name.
  7. To save your selections, click Ok.
  8. In the Edit Deployment dialog box, click Save.
  9. If associated engines are running, click Restart Engines to restart all engine instances for the changes to take effect.

    If associated engines are not running, they inherit the changes when the engines restart.

Editing Engine Proxy Properties

When you edit a deactivated deployment, you can define proxy properties that configure engine instances to use a proxy server for outbound network requests.

Note: To define proxy properties for an existing Kubernetes deployment, you must complete additional steps. For instructions, see Using a Proxy Server for Kubernetes.

Editing for Self-Managed Deployments

To define proxy properties for an existing self-managed deployment, you must stop the deployment. After editing the deployment, you start the deployment again and then run the updated engine installation script that includes proxy properties defined as environment variables.

  1. In the Control Hub Navigation panel, click Set Up > Deployments.
  2. Select the active self-managed deployment, and then click the Stop icon: .
  3. Click OK to confirm, and then click Close.
  4. In the Actions column of the deployment, click the More icon () and then click Edit.
  5. In the Edit Deployment dialog box, expand the Configure Deployment section.
  6. Click Click here to configure next to the Advanced Configuration property.
  7. In the Proxy tab, edit the engine proxy properties as needed.

    For a description of each property, see the Data Collector documentation or the Transformer documentation.

  8. To save your changes, click Save, and then click OK.
  9. In the Edit Deployment dialog box, click Save.
  10. Select the deployment and click Start to start the deployment and generate the updated engine installation script that includes the proxy environment variables.
  11. In the Actions column, click the More icon () and then click Get Install Script.
  12. Select whether the installation script runs an engine instance as a foreground or background process.
  13. Click the Copy to Clipboard icon () to copy the generated command.
  14. Open a command prompt on the engine machine.
  15. Paste and then run the updated installation script command.

    When prompted by the script, you can enter the same download and installation directory as the original engine installation, and then choose to replace the existing folder.

    The script starts the engine instance using the required proxy environment variables.

Editing for Cloud Service Provider Deployments

To define proxy properties for an existing cloud service provider deployment, such as an Amazon EC2 or GCE deployment, you must stop the deployment. When you stop a cloud service provider deployment, the provisioned resources in your cloud account are deleted.

After editing the deployment to modify the proxy properties, you start the deployment again. Control Hub provisions resources in the external system again, deploying and launching new engine instances that use the updated proxy properties.

  1. In the Control Hub Navigation panel, click Set Up > Deployments.
  2. Select the active deployment, and then click the Stop icon: .
  3. Click OK to confirm, and then click Close.
  4. In the Actions column of the deployment, click the More icon () and then click Edit.
  5. In the Edit Deployment dialog box, expand the Configure Deployment section.
  6. Click Click here to configure next to the Advanced Configuration property.
  7. In the Proxy tab, edit the engine proxy properties as needed.

    For a description of each property, see the Data Collector documentation or the Transformer documentation.

  8. To save your changes, click Save, and then click OK.
  9. In the Edit Deployment dialog box, click Save.
  10. Select the deployment and click Start to start the deployment, provision resources in the external system, and launch new engine instances that use the updated proxy properties.

Cloning Deployments

Clone a deployment to quickly create another deployment with similar configurations. You can select the same engine version or a later engine version than used in the original deployment. You might clone a deployment as the first step in the engine upgrade process.

When you clone a deployment, you define the deployment name, tags, engine labels, and engine version to use for the new deployment. The cloned deployment uses the same parent environment, deployment type, and engine type of the original deployment.

For example, when you clone a GCE deployment that belongs to the GCP environment named WestDataCenter and that uses Data Collector 5.6.0, the new cloned deployment is also a GCE deployment belonging to the WestDataCenter environment and can use Data Collector 5.6.0 or later.

The cloned deployment retains all other property values from the original deployment, with a few exceptions, based on whether the cloned deployment uses the same engine version or a later engine version.

After creating the cloned deployment, you can edit deployment properties as needed.

Same Engine Version

Select the same engine version when you want to create another deployment with similar configurations.

When you clone a deployment and select the same engine version as the original deployment, the cloned deployment retains all configured property values from the original deployment, unless you clone a Kubernetes deployment that uses a YAML file directly edited in advanced mode. Control Hub retains the configured values corresponding to basic mode properties, but removes all other customizations added to the YAML file.

After cloning the deployment, review and modify the YAML in advanced mode as needed.

Later Engine Version

Select a later engine version when you want to upgrade an engine. Cloning the deployment is the first step in the engine upgrade process.

Important: Before you select a later engine version, be sure to review the appropriate engine release notes to understand the changes in the versions:

When you clone a deployment and select a later engine version than used in the original deployment, the cloned deployment retains all configured property values from the original deployment, except when the later engine version includes the following changes:

Removed stage library
When a stage library has been removed from the later engine version, Control Hub also removes that stage library from the cloned deployment. After cloning the deployment, you add replacement stage libraries when you check the deployment. Review the engine release notes for information about changes to stage libraries.
Updated engine advanced configuration properties
A later engine version can add or remove engine advanced configuration properties. The cloned deployment uses the updated engine advanced configuration properties, so can also include new or removed properties.
A later engine version can also change the default value of an engine advanced configuration property. If the original deployment uses the default value, then the cloned deployment uses the new default value. If the original deployment was modified to use a custom value, then the cloned deployment continues to use the custom value even when the default value has changed.
Changed configuration formats or functionality for major engine versions
Major engine versions can result in larger changes, including changed configuration formats or functionality.
For example, 4.x engines use the Apache Log4j 1.x library to write log data, while 5.x engines use the Log4j 2.x library, which results in a different log configuration format. If you change an engine version from 4.x to 5.x while cloning a deployment, any customizations made to the Log4j properties in the original deployment are removed. Instead, the 5.x engine uses the default format defined in the Log4j2 properties.

After cloning the deployment, you can add replacement stage libraries and review and modify the engine configuration properties as needed. You can also view the differences between the engine versions.

In addition, if you clone a Kubernetes deployment that uses a YAML file edited in advanced mode, Control Hub retains the configured values corresponding to basic mode properties, but removes all other customizations added to the YAML file. After cloning the deployment, review and modify the Kubernetes YAML in advanced mode as needed.

Cloning a Deployment

You can clone a deployment that is in any state except for the Setup Incomplete state.

To clone a deployment, click Set Up > Deployments in the Navigation panel. In the Actions column for the deployment, click the More icon () and then click Clone. Or, click the deployment name to view the deployment details, and then click Clone.

Then, complete the following steps in the clone deployment wizard:
  1. Configure the Deployment
  2. Review and Launch the Deployment

Configure the Deployment

Configure the name of the cloned deployment, the tags and engine labels to assign to the cloned deployment, and the engine version to deploy. The cloned deployment retains all other property values from the original deployment, with a few exceptions, based on whether the cloned deployment uses the same engine version or a later engine version.

Once saved, you cannot change the engine version.

  1. Configure the following properties:
    Property Description
    Deployment Name Name of the cloned deployment.

    Use a brief name that informs your team of the deployment use case.

    Default is Clone of <original deployment name>.

    Deployment Tags Optional tags that identify similar deployments within Control Hub. Use deployment tags to easily search and filter deployments.

    Enter nested tags using the following format:

    <tag1>/<tag2>/<tag3>

    Default is all existing tags assigned to the original deployment and a new cloned-from:<original deployment name> tag.

    Engine Labels Labels to assign to all engine instances launched for this deployment. Labels determine the group of engine instances that run a job.

    Default is all existing labels assigned to the original deployment and the name of the cloned deployment.

    Engine Version Engine version to deploy.
    You can select the same engine version or a later engine version than used in the original deployment.
    Important: Before you select a later engine version, be sure to review the appropriate engine release notes to understand the changes in the versions:
  2. Click Save.
    It can take some time for Control Hub to clone the deployment.

Review and Launch the Deployment

You've successfully cloned the deployment. When the cloned deployment uses a later engine version, StreamSets recommends checking the cloned deployment configuration before launching the deployment.

For a self-managed deployment, click one of the following buttons:
  • Exit - Saves the deployment and exits the wizard, displaying the Deactivated deployment in the Deployments view. You can check the deployment and start it at a later time.
  • Check Deployment - Saves the deployment and displays the deployment wizard so that you can check the configuration of the cloned deployment and add replacement stage libraries, if needed.

    After checking the deployment configuration, you can start the deployment at a later time.

  • Start & Generate Install Script - Starts the deployment and generates the command to run the engine installation script.
For a Control Hub-managed deployment, click one of the following buttons:
  • Exit - Saves the deployment and exits the wizard, displaying the Deactivated deployment in the Deployments view. You can check the deployment and start it at a later time.
  • Check Deployment without Launching - Saves the deployment and displays the deployment wizard so that you can check the configuration of the cloned deployment and add replacement stage libraries, if needed.

    After checking the deployment configuration, you can start the deployment at a later time.

  • Launch and Check Deployment - Starts the deployment, launching engines on provisioned resources. Then, displays the deployment wizard so that you can check the configuration of the cloned deployment and add replacement stage libraries, if needed.

Checking a Cloned Deployment

Check a cloned deployment so that you can add replacement stage libraries for libraries that are no longer supported and so that you can review and modify engine configuration properties. For cloned Kubernetes deployments, you can also review and modify the Kubernetes YAML in advanced mode, as needed.

When you check a cloned deployment immediately after creating the clone, the edit deployment wizard informs you of the configuration properties needing review. Navigate to those properties in the wizard, and then click Show Diff to display the differences between the original deployment and the cloned deployment.

For example, after cloning a deployment that uses a later engine version, the edit deployment wizard informs you that you can view the differences between the versions in the engine properties:

When you navigate to the engine properties, the wizard displays a warning icon next to the Advanced Configuration property, prompting you to review those properties:

In the engine advanced configuration, the wizard displays a warning icon on the Data Collector Configuration tab.

When you click the tab, the Show Diff property is enabled by default, displaying the Data Collector configuration properties from the different versions side by side. The comparison highlights the differences between the files so that you can quickly review and make modifications to the current version if needed:

The comparison highlights all changes between the files, not necessarily changes that you must act on. For example, the comparison highlights when a new property is added to a later version. The default value of a newly added property is sufficient for most use cases and does not need to be modified before you start the cloned deployment.

When you review the differences, be sure to review the appropriate engine release notes to understand the changes in the versions:

Restarting Engines

When you edit an active deployment to update the engine configuration, Control Hub prompts you to restart all engine instances. If you choose not to restart the engine instances while editing the deployment, you can restart the engine instances at a later time from the Deployments view.

During the restart process, the engine instances shut down and then automatically restart.

  1. In the Navigation panel, click Set Up > Deployments.
  2. Select an active deployment.
  3. In the Actions column, click the More icon () and then click Restart Engines.
  4. Click Ok to confirm.

    It can take a few minutes for engine instances to shut down and then restart.

  5. Click Close.

Deleting Deployments

Delete a deployment when you no longer want the deployed engine instances to run pipelines.

When you delete a self-managed deployment, all engine instances belonging to that deployment are shut down, but the engine installation files are not deleted. You must manually remove the files from the host machines.

When you delete a Control Hub-managed deployment, all resources provisioned for that deployment are deleted. For example, when you delete an Amazon EC2 deployment, all provisioned EC2 instances are deleted in addition to the AWS CloudFormation stack created for that deployment.

You can delete a deployment that meets the following conditions:
  • The deployment is in the Setup Incomplete, Deactivated, or Deactivation Error state.
  • No engine instances belonging to the deployment are currently running pipelines.
  1. In the Control Hub Navigation panel, click Set Up > Deployments.
  2. Select the deployments, and then click the Delete icon: .
  3. Confirm the deletion.
  4. For self-managed deployments, locate and then delete the installation directory on each machine where you launched an engine instance.

    The installation directory is named streamsets-<engine type>-<version>.

    For example, streamsets-datacollector-4.4.0.