Skip to content
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

Mitigate performance issues through cache configuration and other improvements. #215

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
47 changes: 36 additions & 11 deletions azuredeploy-large-ha.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,42 @@
"properties": {
"mode": "Incremental",
"parameters": {
"_artifactsLocation": { "value": "[parameters('_artifactsLocation')]" },
"_artifactsLocationSasToken": { "value": "[parameters('_artifactsLocationSasToken')]" },
"redisDeploySwitch": { "value": true },
"sshPublicKey": { "value": "[parameters('sshPublicKey')]" },
"autoscaleVmCountMax": { "value": 20 },
"autoscaleVmSku": { "value": "Standard_DS3_v2" },
"mysqlPgresVcores": { "value": 16 },
"mysqlPgresStgSizeGB": { "value": 512 },
"fileServerType": { "value": "azurefiles" },
"fileServerDiskSize": { "value": 1024 },
"storageAccountType": { "value": "Premium_LRS" }
"_artifactsLocation": {
"value": "[parameters('_artifactsLocation')]"
},
"_artifactsLocationSasToken": {
"value": "[parameters('_artifactsLocationSasToken')]"
},
"loadBalancerSku": {
"value": "Standard"
},
"redisDeploySwitch": {
"value": true
},
"sshPublicKey": {
"value": "[parameters('sshPublicKey')]"
},
"autoscaleVmCountMax": {
"value": 20
},
"autoscaleVmSku": {
"value": "Standard_DS3_v2"
},
"mysqlPgresVcores": {
"value": 16
},
"mysqlPgresStgSizeGB": {
"value": 512
},
"fileServerType": {
"value": "azurefiles"
},
"fileServerDiskSize": {
"value": 1024
},
"storageAccountType": {
"value": "Premium_LRS"
}
},
"templateLink": {
"uri": "[concat(parameters('_artifactsLocation'), 'azuredeploy.json', parameters('_artifactsLocationSasToken'))]"
Expand Down
1 change: 1 addition & 0 deletions nested/controller.json
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
"imageReference": "[parameters('moodleCommon').osType]",
"osDisk": {
"createOption": "FromImage",
"diskSizeGB": 1024,
"managedDisk": {
"storageAccountType": "[parameters('moodleCommon').osDiskStorageType]"
},
Expand Down
1 change: 1 addition & 0 deletions nested/webvmss.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
"osDisk": {
"caching": "ReadOnly",
"createOption": "FromImage",
"diskSizeGB": 1024,
"managedDisk": {
"storageAccountType": "[parameters('moodleCommon').osDiskStorageType]"
}
Expand Down
4 changes: 4 additions & 0 deletions scripts/install_moodle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,10 @@ EOF

echo -e "\n\rDone! Installation completed!\n\r"

# use /tmp/localcache/ for localcache
sed -i "22 a \$CFG->localcachedir = '/tmp/localcachedir';" /moodle/html/moodle/config.php
sed -i "22 a \$CFG->alternative_component_cache = '/tmp/localcachedir/core_component.php';" /moodle/html/moodle/config.php

if [ "$redisAuth" != "None" ]; then
create_redis_configuration_in_moodledata_muc_config_php

Expand Down