Skip to content

Conversation

@leccelecce
Copy link
Contributor

Proposed change

This change disables nginx's open_file_cache if the /media/frigate/clips directory is detected to be an NFS mount.

#17118 (reply in thread)

Above comment covers the investigation into this in more details; TLDR = the creator of nginx says don't use open_file_cache with NFS mounts due to the filesystem not properly observing unix file semantics: https://trac.nginx.org/nginx/ticket/478

The nginx ticket is from 2014, but seeing as I see an issue without the fix, and it goes away with the fix, fair to assume it's still valid.

I have tested this locally in my devcontainer (non-NFS) and my test instance (NFSv4) and it seems to work fine. I don't observe any performance degradation browsing around the UI. Once betas start and a broader user-base is testing this, happy to look into any performance concerns.

Type of change

  • Dependency upgrade
  • Bugfix (non-breaking change which fixes an issue)
  • New feature
  • Breaking change (fix/feature causing existing functionality to break)
  • Code quality improvements to existing code
  • Documentation Update

Additional information

  • This PR fixes or closes issue: fixes #
  • This PR is related to issue:

Checklist

  • The code change is tested and works locally.
  • Local tests pass. Your PR cannot be merged unless tests pass
  • There is no commented out code in this PR.
  • UI changes including text have used i18n keys and have been added to the en locale.
  • The code has been formatted using Ruff (ruff format frigate)

@netlify
Copy link

netlify bot commented Mar 19, 2025

Deploy Preview for frigate-docs ready!

Name Link
🔨 Latest commit 314b842
🔍 Latest deploy log https://app.netlify.com/sites/frigate-docs/deploys/67dac52f9eb8f80008aa9aa5
😎 Deploy Preview https://deploy-preview-17251--frigate-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@leccelecce leccelecce marked this pull request as ready for review March 19, 2025 13:29
@github-actions github-actions bot added the stale label Apr 19, 2025
@github-actions github-actions bot closed this Apr 22, 2025
@leccelecce leccelecce mentioned this pull request Nov 3, 2025
11 tasks
@leccelecce
Copy link
Contributor Author

Possibly needs re-opening

Also interestingly the recommendation seems to also be not to use sendfile on with NFS mounts

https://www.ateamsystems.com/tech-blog/understanding-nginxs-sendfile-parameter-and-its-implications-with-nfs/?utm_source=chatgpt.com

@NickM-27 NickM-27 reopened this Nov 3, 2025
@github-actions github-actions bot removed the stale label Nov 4, 2025
@github-actions github-actions bot added the stale label Dec 4, 2025
@github-actions github-actions bot closed this Dec 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants