{"id":8759,"date":"2014-04-27T15:44:41","date_gmt":"2014-04-27T19:44:41","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=8759"},"modified":"2014-04-27T15:44:41","modified_gmt":"2014-04-27T19:44:41","slug":"how-is-amazon-glacier-implemented","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2014\/04\/27\/how-is-amazon-glacier-implemented\/","title":{"rendered":"How Is Amazon Glacier Implemented?"},"content":{"rendered":"<p><a href=\"http:\/\/storagemojo.com\/2014\/04\/25\/amazons-glacier-secret-bdxl\/\">Robin Harris<\/a> argues, unconvincingly in my opinion:<\/p>\n<blockquote cite=\"http:\/\/storagemojo.com\/2014\/04\/25\/amazons-glacier-secret-bdxl\/\"><p>Therefore, by a process of elimination, Glacier must be using optical disks. Not just any optical discs, but 3 layer Blu-ray discs.<\/p>\n<p>Not single discs either, but something like the otherwise inexplicable Panasonic 12 disc cartridge shown at this year&rsquo;s Creative Storage conference. That&rsquo;s 1.2TB in a small, stable cartridge with RAID so a disc can fail and the data can still be read. And since the discs weigh &#8776;16 grams, 12 weigh 192g.<\/p>\n<p>For several years I didn&rsquo;t see how optical disk technology could survive without consumer support. But its use by major cloud services explains its continued existence.<\/p><\/blockquote>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=4416065\">sintaks<\/a> (August 22, 2012):<\/p>\n<blockquote cite=\"https:\/\/news.ycombinator.com\/item?id=4416065\"><p>Former S3 employee here. I was on my way out of the company just after the storage engineering work was completed, before they had finalized the API design and pricing structure, so my POV may be slightly out of date, but I will say this: they&rsquo;re out to replace tape. No more custom build-outs with temperature-controlled rooms of tapes and robots and costly tech support.<\/p>\n<p>[&#8230;]<\/p>\n<p> I&rsquo;m not sure how much detail I can go into, but I will say that they&rsquo;ve contracted a major hardware manufacturer to create custom low-RPM (and therefore low-power) hard drives that can programmatically be spun down. These custom HDs are put in custom racks with custom logic boards all designed to be very low-power. The upper limit of how much I\/O they can perform is surprisingly low - only so many drives can be spun up to full speed on a given rack. I&rsquo;m not sure how they stripe their data, so the perceived throughput may be higher based on parallel retrievals across racks, but if they&rsquo;re using the same erasure coding strategy that S3 uses, and writing those fragments sequentially, it doesn&rsquo;t matter - you&rsquo;ll still have to wait for the last usable fragment to be read.<\/p><\/blockquote>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=7647571\">skrause<\/a>:<\/p>\n<blockquote cite=\"https:\/\/news.ycombinator.com\/item?id=7647571\"><p>The author quickly dismisses hard drives because at the time of the Glacier launch SMR drives were to expensive because of the Thai flood. But after a few years of running S3 and EC2 Amazon must have tons of left-over hard drives which are now simply too old for a 24\/7 service.<\/p>\n<p>So what do you with those three year old 1 TB hard drives where the power-consumption-to-space ratio is not good enough anymore? Or can of course destroy them. Or you actually do build a disk drive robot, fill the disk with Glacier data, simply spin it down and store it away. Zero cost to buy the drives, zero cost for power-consumption. Then add a 3-4 hour retrieval delay to ensure that those old disk don&rsquo;t have to spin up more than 6-8 at times a day anymore even in the worst case.<\/p><\/blockquote>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=7649615\">jeffers_hanging<\/a>:<\/p>\n<blockquote cite=\"https:\/\/news.ycombinator.com\/item?id=7649615\"><p>I worked in AWS. OP flatters AWS arguing that they take\n  care to make money and assuming that they are developing \n  advanced technologies. That&rsquo;t not working as Amazon. \n  Glacier is S3, with the added code to S3 that waits. That \n  is all that needed to do. Second or third iteration could \n  be something else. But this is what the glacier is now.<\/p><\/blockquote>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=7650668\">amznian<\/a>:<\/p>\n<blockquote cite=\"https:\/\/news.ycombinator.com\/item?id=7650668\"><p>I am an AWS engineer but note that I am not affiliated with Glacier. However James Hamilton did an absolutely amazing Principals of Amazon talk a couple of years ago going into some detail on this topic. Highly recommended viewing for Amazonians.<\/p>\n<p>From what I remember from it, its custom HDs, custom racks, custom logic boards with custom power supplies. The system trades performance for durability and energy efficiency.<\/p><\/blockquote>\n<p><a href=\"https:\/\/news.ycombinator.com\/item?id=7650789\">jpalomaki<\/a>:<\/p>\n<blockquote cite=\"https:\/\/news.ycombinator.com\/item?id=7650789\"><p>Having a robot juggling the hard drives would not make that much sense. The reason why we have optical disc and tape robots is that the tape and discs need a separate device that reads\/writes them. With hardware there&rsquo;s not such need.<\/p>\n<p>With hard drives it would make more sense to do some development on the electronics side and build a system where lots of drives can be simultaneously connected to a small controller computer. All of the HD&rsquo;s don&rsquo;t need to be powered on or accessible all the time, the controller could turn on only few of them at a time. And of course also part of the controllers could be normally powered off, once all the harddrives connected to them are filled.\n<\/p><\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Robin Harris argues, unconvincingly in my opinion: Therefore, by a process of elimination, Glacier must be using optical disks. Not just any optical discs, but 3 layer Blu-ray discs. Not single discs either, but something like the otherwise inexplicable Panasonic 12 disc cartridge shown at this year&rsquo;s Creative Storage conference. That&rsquo;s 1.2TB in a small, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[19,20,672,228,35],"class_list":["post-8759","post","type-post","status-publish","format-standard","hentry","category-technology","tag-amazon","tag-glacier","tag-amazon-web-services","tag-bluray","tag-cloud"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=8759"}],"version-history":[{"count":0,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/8759\/revisions"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=8759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=8759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=8759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}