-
Notifications
You must be signed in to change notification settings - Fork 16
Resolve deployment failure that is caused by insufficient memory. #314
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
Conversation
"Standard_A1", | ||
"Standard_A1_v2", | ||
"Standard_F1", | ||
"Standard_F1s", |
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.
Those are from https://aka.ms/aks/restricted-skus.
"label": "Credentials for WebLogic", | ||
"elements": [ | ||
{ | ||
"name": "listVMSizes", |
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.
Move the REST API query to the Basics blade, then the data may be ready when it comes to AKS blade.
"label": "Minimum node count", | ||
"min": "[add(1, div(add(12288, mul(if(empty(basics('basicsOptional').wlsClusterSize),5,basics('basicsOptional').wlsClusterSize), 1536)), first(filter(basics('basicsRequired').listVMSizes.value, (item) => equals(item.name, steps('section_aks').clusterInfo.nodeVMSizeSelector))).memoryInMB))]", | ||
"defaultValue": 3, | ||
"max": 1000, |
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.
The same max value with AKS service.
Have problem to work with |
Hello @edburns this PR is ready for review, including |
This pull request includes updates to resolve deployment failure that is caused by insufficient memory.
Here are the most significant changes:
Version Update:
pom.xml
: The version of thewls-on-aks-azure-marketplace
has been updated from1.0.76
to1.0.78
.User Interface Improvements:
weblogic-azure-aks/src/main/arm/createUiDefinition.json
: Added a new section in the UI for selecting VM sizes, and updated the sliders for minimum and maximum node count to use dynamic values based on the selected VM size and the WebLogic cluster size. Also, a section for node size selection has been moved and expanded with more constraints and options. [1] [2] [3]Resource Validation:
weblogic-azure-aks/src/main/arm/scripts/inline-scripts/validateParameters.sh
: Added a new functionvalidate_memory_resources
to check if the AKS cluster has sufficient memory resources based on the number of application replicas. The function is then called in the main script. [1] [2]weblogic-azure-aks/src/main/bicep/mainTemplate.bicep
,weblogic-azure-aks/src/main/bicep/modules/_deployment-scripts/_ds-validate-parameters.bicep
: Passed the number of application replicas as a parameter to the validation script. [1] [2] [3]