{"id":1414,"date":"2021-05-03T14:19:34","date_gmt":"2021-05-03T12:19:34","guid":{"rendered":"https:\/\/devpath.pro\/?p=1414"},"modified":"2021-05-03T14:19:34","modified_gmt":"2021-05-03T12:19:34","slug":"save-yourself-from-a-disaster-7-billing-impact","status":"publish","type":"post","link":"https:\/\/fabiocicerchia.it\/web\/save-yourself-from-a-disaster-7-billing-impact","title":{"rendered":"Save yourself from a disaster #7: Billing Impact"},"content":{"rendered":"
This is the seventh part of the series Save yourself from a disaster: Redundancy on a budget<\/a>.<\/p>\n In this post we will check about the “hardest” part of all of it, the money coming out of our pockets.<\/p>\n So, let’s crunch some numbers.<\/p>\n <\/p>\n Monthly Cost: $5 Monthly Cost: ~$12 That’s more than 2x the original price you might say, and you’ll be not so wrong about it. Obviously, for different original prices, it won’t necessarily be 2x.<\/p>\n Note: The following optimizations will only be shown on the annual bill, if you take action immediately you’ll not reach 2x cost.<\/p>\n Let’s start cutting down what we really know is not necessary for our domains.<\/p>\n First, we need to visualize the spending:<\/p>\n <\/p>\n Hetzner and DigitalOcean are the 2 biggest chunks of our spending (which was predictable). I’ll try to cover some scenarios to optimize the cost.<\/p>\n Reduce Backup Retention<\/strong><\/p>\n My retention for AWS S3 was the following:<\/p>\n I had 70 of them which were taking 3GB of space and costing just a few cents per year.<\/p>\n Avoid the Static Clone<\/strong><\/p>\n This is the most space consuming on AWS S3 since it is a mirror of your websites. It is not necessary as we have redundancy on our services, it was done just a last resort in case everything burns down so at least we could serve to the user the static content to access the information (even though they cannot interact with the dynamic part of the website).<\/p>\n Scaleway Stardust VPS<\/strong><\/p>\n These are good instances (if you can grab one<\/a>), with a cost of $0.0025\/hour will make a huge impact on our bill ($1.825\/mo). Where’s the trick? We can only buy 1 in Amsterdam and 1 in Paris. And it is better not to run too much on these instances.<\/p>\n I did some experiment, and in my case, they weren’t performing as good as expected so I’ve picked 2 VMs from Hetzner.<\/p>\n Replace DigitalOcean<\/strong><\/p>\n We could replace our $60 spending with an additional Hetzner VPS (in another region) and move from $96.96 to $86.14 (saving $10\/yr).<\/p>\n <\/p>\n The concern is that, even if we have a VPS in Germany and another in Finland, we are relying on ONE provider (I know, there’s vendor lock-in – but I have IaC fully configured so I can switch provider in a matter of minutes):<\/p>\n <\/p>\n DNS Fallback<\/strong><\/p>\n If you don’t have very important, or profitable, applications\/websites, and given the frequency of a DNS going down you might want to save some money on this. If you have many websites the cost can become quickly high, even if it’s a few dollars per domain. Sum Up<\/strong><\/p>\n I don’t run critical (nor very profitable) applications, so I can give up (at the moment) on having multiple cloud providers, to bring strong HA, in favour of saving some money.<\/p>\n <\/p>\n This will increase my spending from $60 to In the post Play with Providers, I’ll show how to cut down these expenses even more to a very acceptable level.<\/p>\n The next post will be about Manual Configurations, Stay Tuned.<\/p>\n Check out the whole version of this post in the ebook. This is the seventh part of the series Save yourself from a disaster: Redundancy on a budget. In this post we will check about the “hardest” part of all of it, the money coming out of our pockets. So, let’s crunch some numbers.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advgb_blocks_editor_width":"","advgb_blocks_columns_visual_guide":"","footnotes":""},"categories":[14],"tags":[122,123,124,125],"aioseo_notices":[],"author_meta":{"display_name":"fabio","author_link":"https:\/\/fabiocicerchia.it\/author\/fabio"},"featured_img":null,"coauthors":[],"tax_additional":{"categories":{"linked":["Web<\/a>"],"unlinked":["Web<\/span>"]},"tags":{"linked":["disaster recovery<\/a>","ovh<\/a>","redundancy<\/a>","sbg2<\/a>"],"unlinked":["disaster recovery<\/span>","ovh<\/span>","redundancy<\/span>","sbg2<\/span>"]}},"comment_count":"0","relative_dates":{"created":"Posted 3 years ago","modified":"Updated 3 years ago"},"absolute_dates":{"created":"Posted on May 3, 2021","modified":"Updated on May 3, 2021"},"absolute_dates_time":{"created":"Posted on May 3, 2021 2:19 pm","modified":"Updated on May 3, 2021 2:19 pm"},"featured_img_caption":"","series_order":"","_links":{"self":[{"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/posts\/1414"}],"collection":[{"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/comments?post=1414"}],"version-history":[{"count":0,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/posts\/1414\/revisions"}],"wp:attachment":[{"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/media?parent=1414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/categories?post=1414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fabiocicerchia.it\/wp-json\/wp\/v2\/tags?post=1414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}
\nThis guide won’t cover everything, it won’t be a comprehensive guide, and the steps that are shown need to be carefully reviewed and tested in your development\/pre-production environment. I don’t take any responsibility for any damage, interruption of service nor leak\/loss of data for the use of the instructions in the ebook (nor from any external website I’ve mentioned).<\/small><\/div>\nOriginal Cost<\/strong><\/h2>\n
\n
\n<\/strong>Annual Cost: $60<\/strong><\/p>\nUpgrade Cost<\/strong><\/h2>\n
\n
\nAnnual Cost: $143.47+<\/strong><\/p>\nCost Optimization<\/h2>\n
\n
\nIf you make money, it’s advisable to have a fallback DNS (or a premium service with guaranteed uptime at 100%), even because of the low cost (and impact on your bill).<\/p>\n$112<\/strike>*<\/sup> $88, which is not optimal (compared to the initial figure): it’s an extra $28\/year (~$2.5\/month – it’s just like a couple of coffees) to have peace of mind.
\n*<\/sup>Note: I’ve got some free credits on AWS so the backups are for free (at least for some time – not forever).<\/p>\n
\n
\n<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"