When deploying a stream, properties fall into two groups:
- Properties that control how the apps are deployed to the target platform. These properties use a
deployerprefix and are referred to as deployer properties.
- Properties that set application properties or override application properties set during stream creation are referred to as application properties.
You need to pick a defined platform configuration where each platform type,
kubernetes will have a different set of possible deployment properties. There's a set of generic properties for every platform's
disk reservations and
count to define how many instances platform should create.
Below you can see an example of how to override the
local deployer properties. Also, note, these properties can be defined globally or per application.
Below you can see example of a
time application properties.
You can switch betwewn Freetext and Builder based representation to define all needed properties.
Once when the above properties are applied, they get translated by SCDF to the well-defined properties as shown below.
Properties may have default values and if a value remains unchanged, it is removed from a derived properties list.
app.time.trigger.initial-delay=1 deployer.*.cpu=1 deployer.*.local.shutdown-timeout=60 deployer.*.memory=512 deployer.log.count=2 deployer.log.local.delete-files-on-exit=false deployer.time.disk=512 spring.cloud.dataflow.skipper.platformName=local-debug
This above example in SCDF shell would look like.
stream deploy --name ticktock --properties "app.time.trigger.initial-delay=1,deployer.*.cpu=1,deployer.*.local.shutdown-timeout=60,deployer.*.memory=512,deployer.log.count=2,deployer.log.local.delete-files-on-exit=false,deployer.time.disk=512,spring.cloud.dataflow.skipper.platformName=local-debug" Deployment request has been sent for stream 'ticktock'