Reza Ameri
Reza Ameri

Reputation: 1815

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?

Upvotes: 1

Views: 493

Answers (1)

Minudika
Minudika

Reputation: 851

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.

Upvotes: 2

Related Questions