Skip to content
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

Large log data download - Memory issue🐛 #2617

Open
eliasbruvik opened this issue Nov 29, 2024 · 0 comments
Open

Large log data download - Memory issue🐛 #2617

eliasbruvik opened this issue Nov 29, 2024 · 0 comments
Assignees
Labels
Bug Something isn't working High Priority

Comments

@eliasbruvik
Copy link
Contributor

When downloading a large log, memory issues might cause the API to crash. This mostly happens when downloading several months of log data at a time.

As a quick fix, I suggest to set a limit of how much data you can download at a time. This limit should be dependent on both the size (difference between start and end indexes of the range), and the number of mnemonics you are trying to download. Find a balance where you can download fairly large logs as long as it does not cause the server to crash. As this could run on personal computers and different servers for each company, we should be a little on the safe side in case the system runs on low memory.

Possible solutions for the future if people request downloading even larger files:

  • Utilize the Azure integration to continuously upload the files to cloud while fetching the data from the WITSML servers. Then pass a download link from the cloud back to the client.
  • Save the data to temporary file(s) on the server and then stream it as a FileStream instead of keeping it in memory.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working High Priority
Projects
Development

No branches or pull requests

2 participants