All docs This doc

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Siddhi applications can be deployed to the worker node by using one of the following methods:

  1. Dropping the .siddhi file in to the <SP_HOME>/wso2/worker/deployment/siddhi-files/ directory before or after starting the worker node.
  2. Sending a "POST" request to http://<host>:<port>/siddhi-apps with the Siddhi App included in the body of the request. Refer Stream Processor REST API Guide for more information on using WSO2 Strean Processor APIs.

When a Siddhi application is successfully deployed, a message similar to the following example appears in the startup logs.

Image Removed

To configure a Minimum HA deployment refer Minimum High Availability Deployment documentation.

Fully Distributed Deployment

To successfully set up, configure and run Siddhi applications in a fully distributed environment refer Fully Distributed Deployment documentation.

Info

If you need to deploy streaming applications in a Docker environment, they need to be exported as Docker artifacts. For moImage Removedre information, see Exporting Siddhi Files as Docker Artifacts.

Deploying Siddhi applications from Stream Processor Studio

...

  1. Deploying the Siddhi applications via the Stream Processor studio once you create and save them. To do this, follow the

...

  1. substeps below.

    Tip

...

  1. This method allows you to deploy multiple Siddhi applications to mutiple servers at once.


    1. Open the Stream Processor Studio. For detailed instructions,
    see
    1. see Stream Processor Studio Overview.
    2. In the top menu bar, click Deploy
    and
    1.  and then
    click
    1. click Deploy to Server.
      Image Modified
    2. If you want to deploy all the Siddhi applications saved in the Stream Processor Studio, select the check box for the Workspace
    directory
    1.  directory as shown in the example below. If not, select the check boxes of the required Siddhi applications.
      Image Modified
    2. Add the servers to which you want to deploy the Siddhi applications as follows:
      Image Modified
      1. In the Host field, enter the host of the server.
      2. In the Port field, enter the port of the server.
      3. In the User Name field enter the user name to log in to the server.
      4. In the Password field, enter the password to  log in to the server.
      5. Click Add to add the server.

      Repeat the above substeps to specify all the servers to which the Siddhi applications you selected need to be deployed.

    3. Once you have added all the required servers, click Deploy. As a result, a log appears to indicate whether the selected Siddhi applications are successfully deployed as shown in the example below.
      Image Modified
  2. Dropping the .siddhi file in to the <SP_HOME>/wso2/worker/deployment/siddhi-files/ directory before or after starting the worker node.
  3. Sending a "POST" request to http://<host>:<port>/siddhi-apps with the Siddhi App included in the body of the request. Refer Stream Processor REST API Guide for more information on using WSO2 Strean Processor APIs.

When a Siddhi application is successfully deployed, a message similar to the following example appears in the startup logs.

Image Added

To configure a Minimum HA deployment refer Minimum High Availability Deployment documentation.

Fully Distributed Deployment

To successfully set up, configure and run Siddhi applications in a fully distributed environment refer Fully Distributed Deployment documentation.

Info

If you need to deploy streaming applications in a Docker environment, they need to be exported as Docker artifacts. For moImage Addedre information, see Exporting Siddhi Files as Docker Artifacts.