-
Notifications
You must be signed in to change notification settings - Fork 388
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 maximumThroughputUnits option to template #659
base: master
Are you sure you want to change the base?
Add maximumThroughputUnits option to template #659
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for opening this PR to add more options during deployment
When attempting to use this revision to deploy to Azure, Azure responds with
{"code":"InvalidTemplate","message":"Deployment template validation failed: 'The template parameters 'isAutoInflateEnabled, maximumThroughputUnits' in the parameters file are not valid; they are not present in the original template and can therefore not be provided at deployment time. The only supported parameters for this template are 'eventHubNamespace, eventHubName, partitionCount, location'. Please see https://aka.ms/arm-pass-parameter-values for usage details.'."}
Take a look at how eventHubNamespace
is used in https://github.com/DataDog/datadog-serverless-functions/blob/master/azure/deploy-to-azure/parent_template.json and https://github.com/DataDog/datadog-serverless-functions/blob/master/azure/deploy-to-azure/function_template.json
You can test your changes by replacing "master" in the following link with your latest commit hash
https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FDataDog%2Fdatadog-serverless-functions%2Fmaster%2Fazure%2Fdeploy-to-azure%2Fparent_template.json
For example the link I used to test was
https://portal.azure.com/#create/Microsoft.Template/uri/https%3A%2F%2Fraw.githubusercontent.com%2FDataDog%2Fdatadog-serverless-functions%2F8938131929d443c8d6a532d40bcc1220c14aca2a%2Fazure%2Fdeploy-to-azure%2Fparent_template.json
I am not finding any documentation on what a 0 value for maximumThroughputUnits would result in for maximumThroughputUnits. What behavior did you see during your testing of this value?
Also would be nice to note in the description of auto inflate that it related to these throughput units.
Hey regarding the value 0 in maximumThroughputUnits |
The current defaults appear to be invalid together. Either auto inflate should default to true or the maximum TPU should be set to the default maximum of 20. |
Did some testing and here is what I found: Deployment fails when:
Deployment succeeds when:
Suggestions:
|
What does this PR do?
Allow users to set the maximumThroughputUnits option in Eventhub
Motivation
Set limit to Throughput when creating DD integration with Eventhub
Testing Guidelines
installed in my test env
Types of changes
Check all that apply