feat: Architect Ultimate Optimized Media Server Stack#141
feat: Architect Ultimate Optimized Media Server Stack#141Cylae merged 1 commit intoserver-setup-scriptfrom
Conversation
- Enhanced `HardwareInfo` detection and utilized it for dynamic `sysctl` tuning (swappiness, dirty ratios). - Updated `Service` trait to include `resources()` and `logging()` methods. - Implemented `ResourceConfig` limits for `MariaDB`, `Redis`, `Sonarr`, `Radarr`, `Plex`, `Tautulli`, `Overseerr` based on `HardwareProfile`. - Updated `build_compose_structure` to generate `deploy.resources` and `logging` blocks in `docker-compose.yml`. - Verified with integration tests ensuring correct resource allocation (e.g. MariaDB gets 4G on High profile). Co-authored-by: Cylae <13425054+Cylae@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
This PR implements the "Ultimate Optimized Media Server Stack" architecture.
Key changes:
apply_optimizationsinsystem.rsnow dynamically checks RAM to setvm.swappiness(1 for >16GB, 10 otherwise) and other performance sysctls (vm.dirty_ratio,net.core.somaxconn).resourcesmethod to theServicetrait.HardwareProfile(Low/Standard/High).MariaDBnow scales from 512MB (Low) to 4GB (High).RedisandArrapps have safety caps to prevent OOM.loggingmethod toServicetrait with sensible defaults (json-file, 10m size, 3 files).build_compose_structurenow injectsdeploy.resourcesandloggingconfiguration into the generated YAML.PR created automatically by Jules for task 2013321457317385928 started by @Cylae