Running the Product
The following sections cover how to run WSO2 Stream Processor.
It has the following four profiles:
- Editor: Provide the developer environment to develop the Stream Processing Application on your local machine.
- Worker: Lets you deploy the Stream Processing Application and run it in production.
- Dashboard: Lets you visualize results via the Dashboard Portal, manage stream processing logic via Business Rules, and monitor the whole system via the Status Dashboard.
- Manager: Lets you deploy and manage streaming applications on a fully distributed Stream Processor deployment.
The following section demonstrates how to run each of those profiles:
Starting the Stream Processor Studio
To start the editor for developing Siddhi Applications, follow the steps below:
- Navigate to the
<SP_HOME>/bin
directory. - Issue the following command to start the server of the Stream Processor Studio.
For Windows:editor.bat
For Linux :./editor.sh
- Use the following URL to access the editor UI.
http://localhost:<EDITOR_PORT>/editor (e.g:
https://localhost:9390/editor
)
Important
The Stream Processor Studio runtime is recommended to be used only when developing Siddhi applications. Therefore, it is designed to be run only in a development environment. It is not meant to be deployed in a remote or docker setup.
Starting a worker node
To start a worker node to deploy and run Siddhi Applications in production, follow the steps below:
- Navigate to the
<SP_HOME>/bin
directory. Use the following command to start the server of the Stream Processor Studio.
For Windows:worker.bat
For Linux:./worker.sh
In order to start a worker with only one Siddhi application deployed in it, use the
-Dfile
property with the path to the relevant Siddhi file as shown below.
For Windows:worker.bat -Dfile=<SIDDHI_FILE_PATH>
For Linux :./worker.sh -Dfile=<SIDDHI_FILE_PATH>
Starting a dashboard node
To start a dashboard node to use the Dashboard Portal, Business Rules and Status Dashboard, follow the steps below:
- Navigate to the
<SP_HOME>/bin
directory. - Issue the following command to start the server of the Stream Processor Studio.
For Windows:dashboard.bat
For Linux:./dashboard.sh
- Use the following URL to access the UIs.
Portal:https://<HOSTNAME>:<DASHBOARD_PORT>/portal
(e.g.,https://localhost:9643/portal
)
Business Rules:https://<HOSTNAME>:<DASHBOARD_PORT>/business-rules
(e.g.,https://localhost:9643/business-rules
)
Status Dashboard:https://<HOSTNAME>:<DASHBOARD_PORT>/monitoring
(e.g.,https://localhost:9643/monitoring
)
Starting a manager node
To start a manager node to manage a fully distributed Stream Processor deployment, follow the steps below:
- Navigate to the
<SP_HOME>/bin
directory. - Use the following command to start the manager node of the Stream Processor Studio.
For Windows:manager.bat
For Linux:./manager.sh