IBMStreams / streamsx.dps

The IBMStreams/streamsx.dps GitHub repository is home to the Streams toolkit named DPS (Distributed Process Store)
http://ibmstreams.github.io/streamsx.dps
Other
4 stars 9 forks source link

Add new API method to set the configuration without using a file #66

Closed brandtol closed 4 years ago

brandtol commented 7 years ago

Current situation

The DPS server configuration is read from a file with the default path etc/no-sql-kv-servers.cfg. To change the server configuration without recompiling the application, one could put this file somewhere on a shared/local storage and change its location via the dpsSetConfigFile() method. Than stopping the application, changing the config file manually and restarting the application would be sufficient. However, this may not be suitable for environments where no common file system is available, like cloud environments.

Proposed enhancement

We should add a method that allows an application to set the configuration for example by evaluating submission time parameters or using the SPL getApplicationConfig... methods, to get the needed values. The new method should be usable from SPL, C++ and Java primitive operators.

A method to pass the configuration as string using the same format as the configuration file would be sufficient: boolean dpsSetConfigString(rstring configData) or boolean dpsSetConfigString(list<rstring> configDataLines)

anouri commented 4 years ago

already corrected