-
Notifications
You must be signed in to change notification settings - Fork 10.3k
disable FileWatching for FileVersionProvider/Default IFileProvider #42070
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
Comments
btw. at the Moment we basically use the following to remove the FileWatcher:
thus it will disable the FileWatching completly, however there is no settings key to manually disable it, which is a little bit strange, since that can be a little bit wierd when running on k8s where the node does not have a high user limit. |
@schmitch thanks for contacting us. We will move this issue to the backlog and consider it for a future release if we see more feedback in this area. |
We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process. |
+1. I'm working with a customer who ran into this in a scenario where, in an AKS environment, they had a large blob storage container volume mounted under wwwroot and this behavior causes use of "asp-append-version" to result in a large performance degradation while the FileSystemWatcher walks the mounted blob storage container. In this case, the file watching wouldn't be an issue if it was limited to the directory the linked file was in instead of all of wwwroot recursively. Updating the FileSystemWatcher usage to be scoped just to the necessary directories would help a lot. In case it's useful, here's a stack trace of the issue:
|
Another scenario where option to disable watch would be helpful is when you mount static folder to Azure Files in AppService and you end up in large amounts of transactions billed to your Storage account. I will have to use some workaround for this case right now |
Is there an existing issue for this?
Is your feature request related to a problem? Please describe the problem.
currently when running production under docker or under kubernetes we sometimes run into:
the problem is that we use
asp-append-version
which actually triggers a file watcher, since it callsFileProvider.Watch
.Describe the solution you'd like
However in production this is not really that cool, since it can quickly exhaust all inodes. Thus it would be great if it would be possible to disable the file watching in production completly, the same thing that can be done for configuration files via the following: https://docs.microsoft.com/de-de/aspnet/core/fundamentals/host/generic-host?view=aspnetcore-6.0#disable-app-configuration-reload-on-change
Additional context
No response
The text was updated successfully, but these errors were encountered: