-
Notifications
You must be signed in to change notification settings - Fork 590
Confusing notation of spring.cloud.deployer.* and spring.cloud.task.platform.* properties #5377
Comments
Just now, I tried |
For your last question currently, SCDF/Kubernetes Deployer only supports setting the
However, I have created an issue on the Deployer project to discuss this: spring-attic/spring-cloud-deployer#397 |
Thank you, @cppwfs, for your response. I still couldn't understand the difference between the And regarding the CPU value, if I specify both |
For the first question: For the second question: |
I got it. Thank you for the clarifications. Can we have a naming convention section explaining these things? I think the information of SCDF using the spring cloud deployer project is already in the docs. |
Uh oh!
There was an error while loading. Please reload this page.
Thank you for all the work on SCDF!!
Problem Description:
The SCDF docs specify various ways to set properties on the application and how they get deployed on various platforms. It is confusing for a new user to immediately grasp these notations, specifically between the deployer and task properties. For example,
For example, under 11.2. Application and Server Properties, it says how to customize the application deployment behaviour - CPU, memory, K8S settings, etc. In the next section under 11.2.1. Memory and CPU Settings, it shows examples for
deployer.<application>.kubernetes.limits.cpu=1000m
,spring.cloud.skipper.server
, andspring.cloud.dataflow.task
. In the next section 11.2.2. Environment Variables, it saysspring.cloud.deployer.kubernetes.environmentVariables
can be used to set environment variables, but the example saysdeployer.<application>.kubernetes.environmentVariables
.Solution Description:
Clarify if these are correct:
deployer.*
,spring.cloud.deployer.*
,spring.cloud.dataflow.task.platform
, andspring.cloud.skipper.server.platform
properties make sense in the application. They are all for configuring how the application is deployed in local/k8s/cf environments.deployer.*
is a shortcut forspring.cloud.deployer.*
. In turn, this meansspring.cloud.deployer.<application>.<propertyName>
andspring.cloud.deployer.<propertyName>
are equivalent for application-specific and global properties. Another way isdeployer.*
should be when launching the application from UI/shell, andspring.cloud.deployer.*
are configured in the SCDF Server/Skipper.spring.cloud.deployer.*
is per platform (k8s) and application deployed on that platform.spring.cloud.skipper.server.*
, andspring.cloud.dataflow.task.*
is for platform accounts and streams/tasks properties.Considering the above, and the below scenario, running the hello-world in the default account makes CPU requests 1750, and in the dev account, it would be 1500. And if I don't provide a CPU request for an account named qa, would it be 1200 for hello-world?
Description of alternatives:
Clarify in the docs of any shortcuts or abbreviations.
Additional context:
Easier understanding for new users.
The text was updated successfully, but these errors were encountered: