Search code examples
wso2siddhiwso2-streaming-integratorwso2-cep

Deploy and run custom siddhi application


I am running WSO2 Stream Processor 4.3.0, I have created a siddhi application and I want to deploy and run this application on a worker in production. I ran WSO2 SP worker profile with "wso2-sp" type, in deployment.yml file. How can I ask the worker to run my custom siddhi application?


Solution

  • You can deploy your siddhi app in two ways.

    1. Copy your {siddhi_app_name}.siddhi file to {WSO2SP-HOME}/deployment/siddhi-files directory. Then the siddhi app will be deployed automatically.

    2. Use Siddhi App Rest API.

      Eg :
      curl -X POST "https://localhost:9443/siddhi-apps" -H "accept: application/json" -H "Content-Type: text/plain" -d @TestSiddhiApp.siddhi -u admin:admin -k

      Refer to Stream Processor REST API Guide for more details.