mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-11-16 10:06:29 +00:00
feat(web-app-peertube): add dynamic performance tuning for heap and transcoding concurrency
- Dynamically calculate PEERTUBE_MAX_OLD_SPACE_SIZE (~35% of container RAM, clamped between 768–3072 MB) - Dynamically calculate PEERTUBE_TRANSCODING_CONCURRENCY (~½ vCPUs, min 1, max 8) - Added default resource limits for Redis and Peertube containers - Updated test suite to include human_to_bytes filter in built-in filter list https://chatgpt.com/share/690914d2-6100-800f-a850-94e6d226e7c9
This commit is contained in:
@@ -30,6 +30,10 @@ docker:
|
||||
services:
|
||||
redis:
|
||||
enabled: true
|
||||
cpus: "0.5"
|
||||
mem_reservation: "256m"
|
||||
mem_limit: "512m"
|
||||
pids_limit: 512
|
||||
database:
|
||||
enabled: true
|
||||
peertube:
|
||||
@@ -38,6 +42,10 @@ docker:
|
||||
image: "chocobozzz/peertube"
|
||||
backup:
|
||||
no_stop_required: true
|
||||
cpus: 4
|
||||
mem_reservation: "4g"
|
||||
mem_limit: "8g"
|
||||
pids_limit: 2048 # ffmpeg spawnt Threads/Prozesse
|
||||
volumes:
|
||||
data: peertube_data
|
||||
config: peertube_config
|
||||
Reference in New Issue
Block a user