weaveworks / clusters-config

Configuration for engineering's ephemeral clusters
2 stars 1 forks source link

improve cost efficiency for clusters-config #536

Open enekofb opened 1 year ago

enekofb commented 1 year ago

We are currently in about 3k month. this ticket to review and apply actions we could take to reduce costs.

enekofb commented 1 year ago

i guess that some very basic approach based on the factors in the picture:

Reduce kubernetes engine costs by:

Reduce compute engine costs by:

Networking:

enekofb commented 1 year ago

delete unused clusters

resources only in eu-north-1

Screenshot 2023-10-10 at 17 09 14

asked to clusters candidates to delete https://weaveworks.slack.com/archives/C045Z5FNHNE/p1696954046409449 but not many though

Screenshot 2023-10-10 at 17 10 47
enekofb commented 1 year ago

merge used clusters

No clusters to merge

enekofb commented 1 year ago

delete unused instances or orphan

we could see some -> deleting the ones without a cluster associated

Screenshot 2023-10-10 at 17 14 46

deleted

Screenshot 2023-10-10 at 17 16 55
enekofb commented 1 year ago

Networking: delete the ones that we dont need Seen elastics ips and natgateways ... sympthon of waste

Screenshot 2023-10-10 at 17 30 04

after clean up

Screenshot 2023-10-10 at 18 06 46
enekofb commented 1 year ago

@morancj have just done a bunch of deletions that we should see impact in the next days ... however i cannot access to billing

Screenshot 2023-10-10 at 18 15 22

shout with the costs update when you see (tomorrow or after tomorrow)

enekofb commented 1 year ago

Actions to do around Reduce compute engine costs by:

morancj commented 1 year ago

@morancj have just done a bunch of deletions that we should see impact in the next days ... however i cannot access to billing

Nor me with AdministratorAccess, likely the SCP´s in engineering_account.tf.

morancj commented 1 year ago

likely the SCP´s in engineering_account.tf.

Access should be fixed by https://github.com/weaveworks/corp-infra/pull/67. PTAL @enekofb and LMK if you now have access to:

morancj commented 1 year ago

Billing & Cost access confirmed fixed via Slack

enekofb commented 1 year ago

Reduction of 2/3 -> no more actions just yet

Screenshot 2023-10-12 at 14 16 03

Next: