Skip to content

Commit

Permalink
Tell Oryx to configure gunicorn workers dynamically (Azure-Samples#461)
Browse files Browse the repository at this point in the history
* Auto-configure optimal workers

* Revert model changes

* Move to appservice.bicep conditional on language
  • Loading branch information
pamelafox committed Jul 26, 2023
1 parent a350a39 commit b83dfce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions infra/core/host/appservice.bicep
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ resource appService 'Microsoft.Web/sites@2022-03-01' = {
SCM_DO_BUILD_DURING_DEPLOYMENT: string(scmDoBuildDuringDeployment)
ENABLE_ORYX_BUILD: string(enableOryxBuild)
},
runtimeName == 'python' ? { PYTHON_ENABLE_GUNICORN_MULTIWORKERS: 'true'} : {},
!empty(applicationInsightsName) ? { APPLICATIONINSIGHTS_CONNECTION_STRING: applicationInsights.properties.ConnectionString } : {},
!empty(keyVaultName) ? { AZURE_KEY_VAULT_ENDPOINT: keyVault.properties.vaultUri } : {})
}
Expand Down

0 comments on commit b83dfce

Please sign in to comment.