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

Add support for YAML file reader Config Manager #1445

Closed
niveathika opened this issue Aug 12, 2019 · 0 comments · Fixed by #1446
Closed

Add support for YAML file reader Config Manager #1445

niveathika opened this issue Aug 12, 2019 · 0 comments · Fixed by #1446

Comments

@niveathika
Copy link
Member

Description:
Siddhi now only supports the InMemory config manager to set system properties. However, initialising the in-memory config manager is vastly different from the siddhi-runner-distribution method of reading from the conf file in (RUNNER_HOME)/conf/runner/deployment.yaml file.

This issue is to track a new feature, YAMLConfigManger, which can be initiated with a file path of a YAML file, which can be used to configure the Siddhi system properties.

Sample of the YAML file will be as follows,

# Siddhi related properties
properties:
  partitionById: TRUE
  shardId: shard1

# Siddhi references
refs:
  - ref:
      name: source1
      type: source-type
      properties:
        property1: value1
        property2: value2

# Siddi Extensions system Parameters
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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant