metaspace2020 / metaspace

Cloud engine and platform for metabolite annotation for imaging mass spectrometry
https://metaspace2020.eu/
Apache License 2.0
44 stars 9 forks source link

Add extra metrics for the off-sample service #1458

Closed sergii-mamedov closed 6 months ago

sergii-mamedov commented 6 months ago
  1. Updated the Dockerfile and the script to build the image and push it to DockerHub.
  2. In off_sample_wrapper.py added logging and forwarding ds_id and batch_id in off-sample service.
  3. In resources.py, predict() and cpu_ram_consumption() are now run in separate processes. The last function collects metrics once per second: CPU, memory consumption, RSS by predict process. All of this data is logged for each batch in CloudWatch.