Nextcloud performance tuning and fix backup cron job
- Set loglevel=2 (warnings) and disable mail_smtpdebug via configs - Enable opcache.enable_file_override for faster file checks - Increase APCu shared memory from 32M to 128M - Fix broken module.nfs_nextcloud_data reference in backup cron job to use the iSCSI PVC directly
This commit is contained in:
parent
8aaa75b57b
commit
120f83ce93
2 changed files with 10 additions and 1 deletions
|
|
@ -26,11 +26,20 @@ nextcloud:
|
||||||
# value: "true"
|
# value: "true"
|
||||||
# - name: loglevel
|
# - name: loglevel
|
||||||
# value: "0"
|
# value: "0"
|
||||||
|
configs:
|
||||||
|
performance.config.php: |
|
||||||
|
<?php
|
||||||
|
$CONFIG = array(
|
||||||
|
'loglevel' => 2,
|
||||||
|
'mail_smtpdebug' => false,
|
||||||
|
);
|
||||||
phpConfigs:
|
phpConfigs:
|
||||||
zzz-custom.ini: |
|
zzz-custom.ini: |
|
||||||
max_execution_time = 300
|
max_execution_time = 300
|
||||||
max_input_time = 300
|
max_input_time = 300
|
||||||
default_socket_timeout = 300
|
default_socket_timeout = 300
|
||||||
|
opcache.enable_file_override = 1
|
||||||
|
apc.shm_size = 128M
|
||||||
extraVolumes:
|
extraVolumes:
|
||||||
- name: apache-tuning
|
- name: apache-tuning
|
||||||
configMap:
|
configMap:
|
||||||
|
|
|
||||||
|
|
@ -366,7 +366,7 @@ resource "kubernetes_cron_job_v1" "nextcloud-backup" {
|
||||||
volume {
|
volume {
|
||||||
name = "nextcloud-data"
|
name = "nextcloud-data"
|
||||||
persistent_volume_claim {
|
persistent_volume_claim {
|
||||||
claim_name = module.nfs_nextcloud_data.claim_name
|
claim_name = kubernetes_persistent_volume_claim.nextcloud_data_iscsi.metadata[0].name
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue