Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring system parameters for Siddhi Extensions has not been documented #472

Closed
senthuran16 opened this issue Feb 9, 2018 · 8 comments

Comments

@senthuran16
Copy link
Member

senthuran16 commented Feb 9, 2018

Description:
Way to configure System parameters of a Siddhi extension in the deployment.yaml file is not documented.
eg:
For configuring host & port system parameters of tcp extension, the following has to be added in SPHOME/conf/worker/deployment.yaml

siddhi: 
  extensions: 
    - extension: 
        name: tcp
        namespace: source
        properties: 
          host: 0.0.0.0
          port: 5511

Suggested Labels:
Documentation

Suggested Assignees:
@RukshiW

Related Issues:
siddhi-io/siddhi-store-rdbms#43

@niveathika
Copy link
Member

@RukshiW A kind reminder on this.

@RukshiW
Copy link

RukshiW commented Jul 20, 2018

Please check [1] and let me know if any further corrections are needed.

[1] https://docs.wso2.com/display/SP420/Overriding+System+Parameter+Values+of+an+Extension

@senthuran16
Copy link
Member Author

senthuran16 commented Jul 24, 2018

@RukshiW Please do the following corrections.

  1. Step3 should be changed as,
siddhi:
    extensions:
        - extension:

(The - in front of extension is missing)

  1. Step 4 says "The archetypes of extensions supported are execution, io, map, script and store". source and sink are also supported (Usage of source is shown in Example 1).

  2. Example 2 should be,

siddhi:
  extensions:
    - extension:
        name: rdbms

(- in front of extension)

@RukshiW
Copy link

RukshiW commented Jul 25, 2018

Did the corrections mentioned in the previous comment by senthuran16.

@senthuran16
Copy link
Member Author

@RukshiW Please re-indent Example 2 as:

siddhi:
  extensions:
    - extension:
        name: rdbms
        namespace: store
        properties:
          mysql.batchEnable: true
          mysql.batchSize: 1000
          mysql.indexCreateQuery: "CREATE INDEX {{TABLE_NAME}}_INDEX ON {{TABLE_NAME}} ({{INDEX_COLUMNS}})"
          mysql.recordDeleteQuery: "DELETE FROM {{TABLE_NAME}} {{CONDITION}}"
          mysql.recordExistsQuery: "SELECT 1 FROM {{TABLE_NAME}} {{CONDITION}} LIMIT 1"

wso2-jenkins-bot pushed a commit that referenced this issue Aug 2, 2018
Upgrading multitenancy version
@niveathika
Copy link
Member

@RukshiW I have done the changes @senthuran16 mentioned for all doc spaces except 400(Not enough access). Could we migrate the latest change for the specific doc version and close this issue?

@RukshiW
Copy link

RukshiW commented Aug 31, 2018

Did the same changes in the SP 4.0.0 space.

@niveathika
Copy link
Member

Closed as per the above comment.
The document can be found at Configuring System Parameters for Siddhi Extensions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants