alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
57 stars 15 forks source link

Reduce storage costs #2136

Closed jemrobinson closed 1 month ago

jemrobinson commented 1 month ago

:white_check_mark: Checklist

:vertical_traffic_light: Depends on

n/a

:arrow_heading_up: Summary

Reduce storage costs by changing storage SKUs and quotas

:closed_umbrella: Related issues

Progress towards #2124

:microscope: Tests

Test details below:

TL;DR: This change reduces daily costs for an idle SRE from ~£70 to ~£45 an ~35% decrease.

Wednesday August 14th (before changes made)

Daily(!) cost summary of all SHMs/SREs

Screenshot 2024-08-16 at 12 39 29

Resources in sre-coral costing more than £1.50 per day:

Screenshot 2024-08-16 at 12 40 27

Sunday August 18th

Note: this is a day when none of the SREs are being used: variations in costs will be due to different VM sizes/database deployments

Screenshot 2024-08-19 at 09 42 39 Screenshot 2024-08-19 at 09 44 32
github-actions[bot] commented 1 month ago

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  data_safe_haven/config
  config_sections.py
  shm_config.py 30
  data_safe_haven/infrastructure/programs/sre
  data.py 84-85
  data_safe_haven/serialisers
  yaml_serialisable_model.py
  data_safe_haven/types
  annotated_types.py
Project Total  

This report was generated by python-coverage-comment-action