{"id":210617,"date":"2021-03-25T16:00:49","date_gmt":"2021-03-25T13:00:49","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-resize-a-digitalocean-droplet-cloudsavvy-it\/"},"modified":"2021-03-25T16:00:49","modified_gmt":"2021-03-25T13:00:49","slug":"how-to-resize-a-digitalocean-droplet-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-resize-a-digitalocean-droplet-cloudsavvy-it\/","title":{"rendered":"#How to Resize a DigitalOcean Droplet \u2013 CloudSavvy IT"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_88 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6ad02d30ade13\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6ad02d30ade13\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-resize-a-digitalocean-droplet-cloudsavvy-it\/#Limitations\" >Limitations<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-resize-a-digitalocean-droplet-cloudsavvy-it\/#Before_You_Resize\" >Before You Resize<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-resize-a-digitalocean-droplet-cloudsavvy-it\/#Resizing_Using_the_Control_Panel\" >Resizing Using the Control Panel<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-resize-a-digitalocean-droplet-cloudsavvy-it\/#Resizing_Using_Doctl\" >Resizing Using Doctl<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-resize-a-digitalocean-droplet-cloudsavvy-it\/#Resizing_without_Downtime\" >Resizing without Downtime<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-resize-a-digitalocean-droplet-cloudsavvy-it\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<p><strong>&#8220;#How to Resize a DigitalOcean Droplet \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-8934\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/d5c2fece844d4f63b2b725cd788a8ac9\/p\/uploads\/2021\/01\/83680385.jpeg\" alt=\"DigitalOcean logo\" width=\"1600\" height=\"900\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Droplets are the fundamental computing unit on DigitalOcean. A droplet is a virtual machine with one or more vCPUs. They have a fixed amount of RAM and a dedicated portion of SSD storage.<\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/pricing\">Over 60<\/a> different droplet configurations are available. The configurations are categorized into five different tiers. These are Basic, <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/general\/\" data-internallinksmanager029f6b8e52c=\"3\" title=\"General\" target=\"_blank\" rel=\"noopener\">General<\/a> Purpose, CPU-Optimized, Memory-Optimized, and Storage-Optimized.<\/p>\n<p>You can resize droplets if you need to expand your hardware resources. You\u2019re able to upgrade, downgrade, and switch between droplet tiers.<\/p>\n<h2 id=\"limitations\"><span class=\"ez-toc-section\" id=\"Limitations\"><\/span>Limitations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>DigitalOcean offers good flexibility when resizing, but there are a couple of limitations to be aware of.<\/p>\n<p>You can\u2019t reduce the size of a droplet\u2019s disk\u2014you can resize upwards, but the change will be permanent. This <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/docs\/droplets\/how-to\/resize\">is because<\/a> data may not be sequentially written to the disk, so reducing its size could cause filesystem corruption.<\/p>\n<p>If you need to add storage on a temporary basis, you should attach a block storage volume instead. Volumes are storage units with a customizable capacity that can be freely added and removed.<\/p>\n<p>The other resizing limitation concerns CPU architectures. DigitalOcean now offers Intel and AMD CPUs on some droplet plans. Once you\u2019ve selected an architecture, that droplet must stick with it throughout its life.<\/p>\n<h2 id=\"before-you-resize\"><span class=\"ez-toc-section\" id=\"Before_You_Resize\"><\/span>Before You Resize<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Droplets must be shut down before you can resize them. You\u2019ll need to plan for an outage using your own maintenance procedures.<\/p>\n<p>DigitalOcean <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/docs\/droplets\/how-to\/resize\">advises a<\/a> typical downtime period of one minute per GB of used disk space on your droplet. Even when you\u2019re not resizing the SSD, droplet resizes involve disk data transfers within the DigitalOcean data center. In addition to the resize time, you should also factor in the time needed for the droplet to restart, and your workloads to get running.<\/p>\n<p>You should always aim to back up your droplet prior to initiating a resize. Resizes are generally safe operations, but any problem could cause data loss that might be unrecoverable. Create <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/docs\/images\/snapshots\">a snapshot<\/a> before you resize to mitigate this risk.<\/p>\n<p>Once you\u2019re ready to proceed, SSH into your droplet and issue a shutdown command:<\/p>\n<pre>sudo shutdown now<\/pre>\n<p>Do not use the power off toggle button in the control panel. This is equivalent to pulling the plug out of the wall, which could be destructive.<\/p>\n<h2 id=\"resizing-using-the-control-panel\"><span class=\"ez-toc-section\" id=\"Resizing_Using_the_Control_Panel\"><\/span>Resizing Using the Control Panel<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can resize droplets from within the DigitalOcean Control Panel. This lets you browse the available configurations before choosing a plan to switch to.<\/p>\n<p>Log in to the control panel and click the droplet that you\u2019d like to resize. On the droplet details page, click the \u201cResize\u201d link in the left sidebar (red arrow).<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10322\" src=\"https:\/\/www.cloudsavvyit.com\/thumbcache\/0\/0\/8572a0a14b9b6423494da35c47b53244\/p\/uploads\/2021\/03\/74ecd5d9.jpg\" alt=\"\" width=\"1238\" height=\"797\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Choose a new plan for the droplet. You can use the tabs above the table (blue arrow) to switch between droplet classes. To increase the droplet\u2019s storage capacity, click the \u201cDisk, CPU and RAM\u201d toggle button at the top of the page (green arrow). Remember that storage changes are irreversible.<\/p>\n<p>Click the green \u201cResize\u201d button at the bottom when you\u2019re h<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>y with your choice. The resize process will now begin. A progress bar will be displayed while the operation completes. After the resize finishes, click the power button toggle in the top right (purple arrow) to boot up the droplet.<\/p>\n<h2 id=\"resizing-using-doctl\"><span class=\"ez-toc-section\" id=\"Resizing_Using_Doctl\"><\/span>Resizing Using Doctl<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You don\u2019t have to use the web UI to resize droplets. DigitalOcean\u2019s terminal client, <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/docs\/apis-clis\/doctl\">Doctl<\/a>, can handle resizes with a single command. This can be much more convenient when you need to resize multiple droplets. You can also use Doctl when programmatically upgrading your infrastructure.<\/p>\n<p>Make sure that you\u2019re authenticated to Doctl before continuing\u2014you can follow our guide if you need to get set up.<\/p>\n<p>Begin by getting the list of your droplets:<\/p>\n<pre>doctl compute droplet list<\/pre>\n<p>A table of output will be returned. Find the droplet that you want to resize and note down its ID.<\/p>\n<p>Next, get the list of available droplet configuration plans:<\/p>\n<pre>doctl compute size list<\/pre>\n<p>The table includes each configuration\u2019s unique slug (e.g.\u00a0<code>s-2vcpu-2gb<\/code>) as well as details of its hardware resources (2 vCPUs and 2GB RAM in this case). Note down the slug of the plan that you want to use.<\/p>\n<p>You\u2019re now ready to issue the resize command. Make sure that your droplet has been powered off first.<\/p>\n<pre>doctl compute droplet-action resize droplet-id --size s-2vcpu-2gb<\/pre>\n<p>Replace <code>droplet-id<\/code> with your droplet\u2019s ID. Substitute the value passed to the <code>--size<\/code> flag with the slug of the size you\u2019ve chosen.<\/p>\n<p>The action will occur asynchronously. If you\u2019d rather the command waits for the action to finish, add the <code>--wait<\/code> flag.<\/p>\n<p>Doctl will not resize the droplet\u2019s disk by default. You can expand your droplet\u2019s SSD to match the new plan\u2019s capacity by including the <code>--resize-disk<\/code> flag. Your new plan must have a larger SSD capacity than your droplet\u2019s existing spec.<\/p>\n<h2 id=\"resizing-without-downtime\"><span class=\"ez-toc-section\" id=\"Resizing_without_Downtime\"><\/span>Resizing without Downtime<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Droplets don\u2019t support downtime-less resizes. If you must resize a mission-critical server, you\u2019ll be best off creating a new droplet and devising a strategy to move essential resources over.<\/p>\n<p>You might need a period of parallel running. You could use a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/docs\/networking\/floating-ips\">floating IP<\/a> address or <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.digitalocean.com\/products\/load-balancer\">load balancer<\/a> to switch network traffic between the two droplets. Once you\u2019re ready to complete the transition, remove the old droplet to have all traffic divert to the new one. This approach mitigates the impact of your new droplet having a different IP, as external services could continue referencing the same floating or load balancer IP.<\/p>\n<h2 id=\"conclusion\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Droplet resizes let you scale your servers to meet changes in your workloads. The actual resize process is straightforward. The complexity comes in planning your resize strategy and the accompanying downtime.<\/p>\n<p>When resizing a production droplet, you should make sure that you\u2019ve got a comprehensive recovery plan in case anything goes wrong. Schedule a maintenance window, allowing at least one minute of downtime for each GB of storage on your droplet\u2019s disk.\n<\/p><\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/10319\/how-to-resize-a-digitalocean-droplet\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Resize a DigitalOcean Droplet \u2013 CloudSavvy IT&#8221; Droplets are the fundamental computing unit on DigitalOcean. A droplet is a virtual machine with one or more vCPUs. They have a fixed amount of RAM and a dedicated portion of SSD storage. Over 60 different droplet configurations are available. The configurations are categorized into five&#8230;<\/p>\n","protected":false},"author":1,"featured_media":210618,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/01\/83680385.jpeg","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-210617","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/210617","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=210617"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/210617\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/210618"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=210617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=210617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=210617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}