Deploying Models
After a model is developed, it can be put into execution to view the output of its patterns, or to verify that its pattern detection logic works as intended. Enabling this process requires two model artifacts:
- Deployment Target
- Deployment
The Deployment Management utility creates and manages both artifact types.
For more information about deployments and deployment targets, see Model Artifacts.
Configuring Deployments
The Deployment Management utility provides the tools needed to create, manage, and configure deployments and deployment targets.
To access the Deployment Management utility:
- Click the system panel (☰) icon.
- Under Other Tasks, click Deployments.
Managing Deployment Targets
The Deployment Targets tab of the Deployment Management utility stores tools for managing deployment targets.
Viewing Deployment Targets
The Deployment Management utility provides a convenient way to view all deployment targets of a project.
To view a project's deployment targets:
- In the Deployment Management window, click the Deployment Targets tab.
- Click the Project dropdown menu, then select the appropriate project. Each deployment target within the project has its own row in the table below the dropdown.
- Note the details of each deployment target in the table:
- Name displays the deployment target's name.
- Created shows the date and time of the deployment target's creation.
- Modified shows the date and time when the most recent changes to the deployment target occurred.
- Click a deployment target's Expand button to view more details:
- Created and Modified display the same information shown in Step 3.
- Flink Configurations contains settings and configurations for customizing the amount of computational resources requested for a given deployment.
- Log Configurations contains settings and configurations for customizing logging content, and settings for debugging and troubleshooting.
- Data Sources displays the unique connection strings for each of the deployment target's data sources that allow Cogynt to connect and stream/query data from them. (Kafka and JDBC are currently supported.)
- Linked Deployments shows all deployments that reference the deployment target for its template configuration settings and data sources.
- At the bottom of the window, click the Rows per page dropdown to change the number of deployment target rows displayed on each page.
- On the bottom-right of the window, click the navigation buttons to move through the list of deployment targets:
- Click the > button to advance to the next page.
- Click the < button to go back one page.
- Click the >| button to advance to the last page.
- Click the |< button to go back to the first page.
Searching for Deployment Targets
To make it easier to find a specific deployment target, the Deployment Management utility includes a search feature.
To search for a deployment target:
- In the Deployment Management window, click the Deployment Targets tab.
- Click the Project dropdown menu, then select the appropriate project.
- In the Search box, enter the name (or the first few characters) of the deployment target to locate.
Creating Deployment Targets
New deployment targets can be added to projects as needed.
To add a deployment target to a project:
- In the Deployment Management window, click the Deployment Targets tab.
- Click the Project dropdown menu, then select the appropriate project.
- Click the Add New Deployment Target (+) button.
- In the Create Deployment Target window:
- In the Name field, enter a name for the deployment target. The name cannot exceed 255 characters in length.
- Under Configurations:
- Click the Flink tab to specify the deployment target's Flink configurations:
- In the Custom section, click the Add Configuration (+) button to add a new configuration:
- In the Name field, enter a name for the configuration.
- In the Value field, enter the value that the configuration should track.
- Click outside the fields to save the configuration. Click the Delete (trash can) icon to remove it.
- Edit any existing configurations as needed:
- In the Name column, verify that the configuration has the appropriate name. Click the information (i) icon to the left of the name to read a description.
- In the Value column, verify that the configuration has the appropriate value. Enter a new value in the corresponding field or dropdown menu as needed.
- In the Unit column, verify that the configuration has the appropriate unit of measurement. Select a new value from the corresponding dropdown menu as needed.
- In the Custom section, click the Add Configuration (+) button to add a new configuration:
- Click the Logging tab to specify the deployment target's logging configurations, repeating steps 4.ii.a.a-b as needed.
- Click the Flink tab to specify the deployment target's Flink configurations:
- Under Data Sources:
- Click the Add a data source (+) button to add a new data source:
- From the Type dropdown menu, select the appropriate data source type.
- In the Name field, enter the name of the data source.
- In the Connect String field, enter any
host:port
combinations necessary for connecting to the data source. When using multiplehost:port
combinations, separate each combination with a comma. (Note: The field will not accept a connect string that is already in use by another data source.) - Click Use Default to fill the Connect String field with a default value.
- Click OK to add the data source, or Cancel to discard it.
- Click the corresponding pencil (✎) icon to edit an existing data source, repeating steps 4.iii.a.a-e as needed.
- Click the corresponding X icon to delete an existing data source.
- Click the Add a data source (+) button to add a new data source:
- Click Create to create the deployment target, or click Cancel to discard it.
The connection information for an Apache Flink cluster is not part of a deployment target, as it should have already been set up and configured as part of the Cogynt installation process.
Editing Deployment Targets
Deployment target details can be modified as necessary.
To edit a deployment target:
- In the Deployment Management window, click Deployment Targets.
- Click the Project dropdown menu, then select the project containing the appropriate deployment target.
- Locate the deployment target to edit in the table.
- In the deployment target's Actions column, click the Edit (✎) button.
- In the Edit Deployment Target window, follow steps 4a-4d from Creating Deployment Targets as needed.
Exporting Deployment Targets
Deployment targets can be exported as downloadable files that can be loaded into other projects.
To export a deployment target:
- In the Deployment Management window, click Deployment Targets.
- Click the Project dropdown menu, then select the project containing the appropriate deployment target.
- In the table, locate deployment target to export.
- Click the corresponding Export button.
- Save the file to the desired location on your machine.
Duplicating Deployment Targets
Deployment targets can be copied when necessary.
To duplicate a deployment target:
- In the Deployment Management window, click Deployment Targets.
- Click the Project dropdown menu, then select the project containing the appropriate deployment target.
- In the table, locate the deployment target to duplicate.
- Click the corresponding Duplicate button.
- In the prompt, type a new name for the duplicate deployment target.
Deleting Deployment Targets
Deployment targets that are no longer needed, or were created in error, can be deleted from the projects where they reside.
To delete a deployment target:
- In the Deployment Management window, click the Deployment Targets tab.
- Click the Project dropdown menu, then select the project containing the appropriate deployment target.
- Locate the deployment target to delete in the table.
- In the deployment target's Actions column, click the Delete (trash can) button.
Managing Deployments
The Deployments tab of the Deployment Management utility stores tools to manage deployments.
Viewing Deployments
The Deployment Management utility provides a convenient way to view all deployments for a project.
To view a project's deployments:
- In the Deployment Management window, click the Deployments tab.
- Click the Project dropdown menu, then select the appropriate project. Each deployment of the project has its own row in the table below the dropdown.
- Note the details of each deployment target in the table:
- Name displays the deployment's name.
- Status shows the current status of the Flink deployment. For more information, see Monitoring Deployments.
- Modified shows the date and time when the most recent changes to the deployment occurred.
- Click a deployment's Expand button to view more details:
- Created shows the date and time when the deployment was created. Modified displays the same information shown in Step 3.
- Configurations displays the deployment configurations that the deployment uses.
- Deployment Target displays the deployment target referenced in the deployment.
- Deployment System Nodes displays the list of patterns selected for deployment.
- Deploy Tags lists all the tags used to filter the patterns for deployment, if any exist.
- Flink Cluster Name displays the name of the deployment's Flink cluster.
- At the bottom of the window, click the Rows per page dropdown to change the number of deployment rows displayed on each page.
- On the bottom-right of the window, click the navigation buttons to move through the list of deployments:
- Click the > button to advance to the next page.
- Click the < button to go back one page.
- Click the >| button to advance to the last page.
- Click the |< button to go back to the first page.
If the selected project has any issues, a warning message appears beneath the Project dropdown menu. Click the View Issues button to see the issues that the system has identified.
For more information, see Checking for Consistency and Errors.
Creating Deployments
New deployments can be added to projects as needed.
To add a deployment to a project:
- In the Deployment Management window, click the Deployments tab.
- Click the Project dropdown menu, then select the appropriate project.
- Click the Add New Deployment (+) button.
- In the Create Deployment window:
- In the Name field, enter a name for the deployment. The name cannot exceed 255 characters in length.
- In the Description field, enter a description for the deployment if necessary.
- Under the Event Patterns tab, check the boxes beside the event patterns to include in the deployment.
- Click the By Pattern Name tab to see a list of available event patterns organized by name. Click the Name or Type headings to sort the event patterns by either category in ascending or descending order.
- Click the By Tags tab to see a list of available tags organized by name. Click the Name heading to sort the names in ascending or descending order. Click a tag's Expand button to see the list of system nodes associated with the tag.
- Under the Deployment Target tab, select the appropriate deployment target from the dropdown menu. The panel displays key details about the selected deployment target for review. For more information, see Viewing Deployment Targets.
- Under the Override Configurations tab:
- Define the deployment's Flink configurations as needed:
- Click + Add Flink Configuration.
- From the context menu, select the type of configuration to define. The configuration is added to the appropriate grouping under the Flink Configurations section.
- Click the configuration's ⓘ icon to see detailed information about the configuration.
- Specify the appropriate Value and Unit (if necessary) in the corresponding fields.
- Delete any unnecessary configurations by clicking the corresponding Delete (trash can) icon.
- Define the deployment's log configurations as needed:
- Click + Add Log Configuration.
- From the context menu, select the type of configuration to define. The configuration is added to the appropriate grouping under the Log Configurations section.
- Click the configuration's ⓘ icon to see detailed information about the configuration.
- Specify the appropriate Value and Unit (if necessary) in the corresponding fields.
- Delete any unnecessary configurations by clicking the corresponding Delete (trash can) icon.
- Define the deployment's Flink configurations as needed:
- Under the Ingestion Configurations tab:
- Click + Add Ingestion Start Date to add new ingestion configurations as needed:
- From the Event Type dropdown menu, select the event type containing the field that will determine ingestion time.
- From the Referenced Date Field dropdown menu, select the field that should be used to determine when ingestion should begin. (Note: The Referenced Date Field dropdown menu cannot be opened until a selection is made from the Event Type dropdown menu.)
- In the Ingestion Start Date field, specify the date when ingestion should begin.
- Edit any existing ingestion configurations as needed by clicking the appropriate fields and modifying their values.
- Delete any unnecessary ingestion configurations by clicking the corresponding Delete (trash can) icon.
- Click + Add Ingestion Start Date to add new ingestion configurations as needed:
- Click Create to create the deployment, or click Cancel to discard it.
If there are overlapping event patterns between selections in the By Pattern Name and By Tags tabs from step 4.iii, only a single copy of the pattern is deployed, not multiple copies.
Editing Deployments
Deployment details can be modified as necessary.
To edit a deployment:
- In the Deployment Management window, click Deployments.
- Click the Project dropdown menu, then select the project containing the appropriate deployment.
- Locate the deployment to edit in the table.
- In the deployment's Actions column, click the Edit (✎) button.
- In the Edit Deployment window, follow steps 4.i-4.vi from Creating Deployments as needed.
- Click Save to save the changes, Revert to restore the deployment's details to their last saved state, or Cancel to discard the changes.
Exporting Deployments
Deployments can be exported as downloadable files that can be loaded into other projects.
To export a deployment:
- In the Deployment Management window, click Deployments.
- Click the Project dropdown menu, then select the project containing the appropriate deployment.
- In the table, locate the deployment to export.
- Click the corresponding Export button.
- Save the file to the desired location on your machine.
Duplicating Deployments
Deployments can be copied when necessary.
To duplicate a deployment:
- In the Deployment Management window, click Deployments.
- Click the Project dropdown menu, then select the project containing the appropriate deployment.
- In the table, locate the deployment to duplicate.
- Click the corresponding Duplicate button.
- In the prompt, type a new name for the duplicate deployment.
Deleting Deployments
Deployments that are no longer needed, or were created in error, can be deleted from the projects where they reside.
To delete a deployment:
- In the Deployment Management window, click the Deployments tab.
- Click the Project dropdown menu, then select the project containing the appropriate deployment.
- In the table, locate the deployment to delete.
- In the deployment's Actions column, click the Delete (trash can) button.
Initiating Deployments
Deployments can be activated and put into use from multiple places within Cogynt Authoring.
Initiating Deployments from the Deployment Management Utility
To initiate a deployment using the Deployment Management utility:
- In the Deployment Management window, click the Deployments tab.
- Click the Project dropdown menu, then select the project containing the appropriate deployment.
- In the table, locate the deployment to initiate.
- Click the corresponding Deploy button.
- In the Confirm Deployment dialog:
- Check the Reset published topics? checkbox to reset the information gathered from published topics, and give the deployment a clean data set.
- Click Deploy to initiate the deployment, or Cancel to abandon the operation.
Initiating Deployments from the System Panel
If the project containing the necessary deployment is already open, the deployment can be initiated from the system panel.
To initiate a deployment from the system panel:
- Click the system panel (☰) icon.
- Under Project Tasks, click Deploy.
- In the Select Deployment window, select the appropriate deployment from the list.
- Click Deploy to initiate the deployment, or click Cancel to abandon the operation.
- In the Confirm Deployment dialog:
- Check the Reset published topics? checkbox to reset the information gathered from published topics, and give the deployment a clean data set.
- Click Deploy to confirm the deployment, or Cancel to cancel the deployment.
Initiating Deployments From Views
To initiate a deployment directly from a view:
- Click Deploy in the view's action panel.
- In the Confirm Deployment dialog:
- Check the Reset published topics? checkbox to reset the information gathered from published topics, and give the deployment a clean data set.
- Click Deploy to confirm the deployment, or Cancel to cancel the deployment.
Terminating Deployments
Deployments can be stopped and taken offline as needed. This process is called "terminating" the deployment.
To terminate a deployment:
- In the Deployment Management window, click the Deployments tab.
- Click the Project dropdown menu, then select the project containing the appropriate deployment.
- In the table, locate the deployment to terminate.
- Click the corresponding Shut Down (⏻) button.
Customizing Timestamps for Ingestion
Sometimes you may need to adjust a small part of a deployment. To avoid redundant data ingestion and conserve resources, Cogynt includes a "restart" feature that lets users modify and redeploy patterns more efficiently. The feature allows users to specify the time when redeployed patterns should begin ingesting data.
To redeploy a pattern:
- Stop the deployment containing the pattern. For more information, see Terminating Deployments.
- In the Deployment Management window, click Deployments.
- From the Project dropdown menu, select the project containing the appropriate deployment.
- Locate the deployment to edit in the table.
- In the deployment's Actions column, click the Edit (✎) button.
- Click the Ingestion Configurations tab.
- Click +Add Timestamp.
- From the Event Type dropdown menu, select the event type containing the field that will determine the new ingestion time.
- From the Referenced Date Field dropdown menu, select the field that will determine when ingestion should begin. (Note: Referenced Date Field cannot be opened until an Event Type selection is made.)
- To the right of the Ingestion Start Date field, click the Calendar icon and specify the date when ingestion should begin.
- Click Save to save the changes.
- Deploy the modified deployment. For more information, see Initiating Deployments.
When the deployment is redeployed, any topic selected in steps 8-9 will only start ingestion at the specified time.