Comments (5)
This seems to have gotten better a bit, but the underlying problem still seems to be there.
This is the memory usage of the container for the last three days. While the memory usage does grow way slower, it still is growing until it crashes at some point. Note that this is on v1.2.0 though, not latest.
I'll try to push the new version today and see whether anything changes.
from metoffice_ec2.
So it seems like we still see that issue on the latest version:
e089abeca5cc4c8684d29a0d8919a691: main: OutOfMemoryError: Container killed due to memory usage
f75d195e627843b58031f42f74a28f7a: main: OutOfMemoryError: Container killed due to memory usage
from metoffice_ec2.
Hmm... are we certain Python is using all the memory here? It's not, say, disk caching or something weird like that?
The only objects which persist in the ec2.py
script are _LOG
and a few constants.
If it is Python then a simple hack might be to change the ec2.py
script to terminate (and hence flush its memory usage) when the SQS queue is empty; and then call ec2.py
from a bash script which calls ec2.py
from an endless while loop?!?
from metoffice_ec2.
Just had a quick chat with Flo:
- Analysing memory usage in containers isn't trivial.
- For now, let's just assume it is our Python script that's using all the memory.
- A quick-and-dirty hack is to wrap our Python script in a Bash script, as outlined in my comment immediately above.
from metoffice_ec2.
don't see this anymore, closing.
from metoffice_ec2.
Related Issues (20)
- Use zstd instead of LZMA HOT 1
- Avoid using h5netcdf? HOT 9
- rename MetOfficeMessage.load_netcdf to open_netcdf
- More unit tests :) HOT 1
- Run creating output images for FE on AWS
- Investigate why script doesn't output files HOT 2
- Add Sentry Error Logging
- Predict PV yield using baseline NWP model
- Deal with increasing S3 cost HOT 3
- Look into running workload on Spot instead of Fargate HOT 2
- Autoscale Compute Fleet based on SQS HOT 1
- Automatically build docker images HOT 1
- Find out which irradiance field to use HOT 2
- load_subset_and_save_data() missing 1 required positional argument
- Use irradiance data for predictions HOT 1
- float() argument must be a string or a number, not 'list' HOT 5
- dimensions or multi-index levels ['height'] do not exist HOT 2
- Run inference on AWS
- Various NaN values in predictions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metoffice_ec2.