equinor / lighthouse-client

WebClient for project Lighthouse
https://jc.fusion.equinor.com/
MIT License
6 stars 0 forks source link

💸 Reduce operational cost for JC deployment radix #1822

Closed Gustav-Eikaas closed 1 month ago

Gustav-Eikaas commented 1 month ago

Expected outcome

Equinor has a focus on operational cost and we are encouraged to find ways to reduce operational costs. After reviewing the performance metrics in grafana I see that the JC frontend uses around 1-2% of its dedicated resources. It has allocated 1 Gigabyte of ram and 800ms? cpu. This is the same for all environments.

My suggestion is to divide it in half.

0.5Gigabyte of ram and 400ms cpu. See how much this impacts cost and monitor metrics to see that everything still runs smoothly.

Env Replicas CPU Memory Cpu util Mem util
Prod 1 800ms 1000MB > 1% 13MB
Dev 1 800ms 1000MB > 1% 13MB
Dev 2 1 800ms 1000MB > 1% 13MB

Current total cost per month is: ~1800 NOK

After #1825

Estimated total cost is ~1200 NOK Env Replicas CPU Memory Cpu util Mem util
Prod 1 800ms 1000MB > 1% 13MB
Dev 1 400ms 512MB > 3% 13MB
Dev 2 1 400ms 512MB > 3% 13MB

After #1826

Estimated total cost is ~900 NOK Env Replicas CPU Memory Cpu util Mem util
Prod 1 400ms 512MB > 3% 13MB
Dev 1 400ms 512MB > 3% 13MB
Dev 2 1 400ms 512MB > 3% 13MB

Summary

It is not a lot of money but we managed to cut down costs by 50% on this Radix instance