Replies: 3 comments 21 replies
-
Can you reproduce this problem with a minimal fastapi-Setup? https://fastapi.tiangolo.com/#example |
Beta Was this translation helpful? Give feedback.
-
This is typical Python behavior especially if your NAS uses HDDs instead of SSDs. Python relies on a lot of small files. Even if the NAS and the network can provide a decent bandwidth, the latency is the bottleneck. Starting the server for example creates 10000 file metadata operations alone which all result in a single (typically random) read operation on the NAS. On top of that the content of the files have to be read and transferred. So the solution here would be to have your files on your local SSD and sync them to the NAS drive for backup periodically. |
Beta Was this translation helpful? Give feedback.
-
Oooops .... This seem not desirable at all to me. |
Beta Was this translation helpful? Give feedback.
-
I moved the EOS directory from the local SSD (on Windows) to my NAS (which provides automatic nightly backups). The NAS is connected by GBIT Ethernet and usually decently fast.
When I now start the server by
.venv\\Scripts\\fastapi run --port 8503 src/akkudoktoreos/server/fastapi_server.py
, "Searching for package file structure from directories with init.py files" takes several minutes.Is that normal / desirable ?
Beta Was this translation helpful? Give feedback.
All reactions