{"id":12729,"date":"2012-06-08T21:59:08","date_gmt":"2012-06-08T20:59:08","guid":{"rendered":"https:\/\/aidanfinn.com\/?p=12729"},"modified":"2012-06-08T21:59:08","modified_gmt":"2012-06-08T20:59:08","slug":"what-is-the-correct-number-of-simultaneous-live-migrations","status":"publish","type":"post","link":"https:\/\/aidanfinn.com\/?p=12729","title":{"rendered":"What Is The Correct Number Of Simultaneous Live Migrations?"},"content":{"rendered":"<p><em>Seeing as a VMware marketing employee was so kind as to link to this post from his &#8220;independent&#8221; blog, I&#8217;ll gladly inform his followers of <a href=\"https:\/\/aidanfinn.com\/?p=13367\" target=\"_blank\">his employers&#8217; desperation<\/a> and that <a href=\"https:\/\/aidanfinn.com\/?p=13363\" target=\"_blank\">VMware storage is insecure<\/a>.\u00a0 You&#8217;re welcome, Eric \ud83d\ude42<\/em><\/p>\n<p>We have the ability to run many live migrations at once between Windows Server 2012 (WS2012) Hyper-V hosts.\u00a0 By default, we can do 2 simultaneous Live Migrations at once: that\u2019s 2 live migrations and 2 storage migrations.<\/p>\n<p>A word of warning.\u00a0 Storage live migrations cause a spike in IOPS so you don\u2019t want to do too many of those at once.\u00a0 Anyway, they are more of a planned move, e.g. relocation of workloads.\u00a0 The same applies to a shared-nothing live migration where the first 50% of the job is a storage migration.<\/p>\n<p>In this post, I\u2019m more interested in a traditional Live Migration where the storage isn\u2019t moving.\u00a0 It\u2019s either on a SAN or on an SMB 3.0 share.\u00a0 In W2008 R2, we could do 1 of these at a time.\u00a0 In vSphere 5.0, you can do 4 of these at a time.\u00a0 Windows Server 2012 hasn\u2019t applied a limit, just a default of 2.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2012\/06\/image6.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2012\/06\/image_thumb6.png\" border=\"0\" alt=\"image\" width=\"504\" height=\"475\" \/><\/a><\/p>\n<p>So how many simultaneous live migrations is the right amount?\u00a0 How long is a piece of string?\u00a0 It really does depend.\u00a0 Remember that a VM live migration is a copy\/synchronisation of the VM\u2019s changing memory from one host to another <em>over the network<\/em>, followed by a pause on hostA with an un-pause on hostB.\u00a0 Harder working VMs = more memory trash = longer process per VM.\u00a0 More bandwidth = the ability to run more migrations at once.<\/p>\n<p>So I decided to run a quick test tonight.\u00a0 This afternoon I build a converged fabric cluster using WS2012 RC.\u00a0 It\u2019s based on 4 * 10 GbE NICs in a team, with 9014 sized jumbo frames enabled, and I have a QoS poicy to guarantee 10% of bandwidth to Live Migration.\u00a0 I deployed 60 * 512 MB RAM Ubuntu VMs.\u00a0 And then I ran 4 sets of tests, 3 in each set, where I changed the number of concurrent live migrations.\u00a0 I started with 60 simultaneous, dropped to 20, then to 10, and then to the default of 2.<\/p>\n<p><a href=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2012\/06\/image7.png\"><img loading=\"lazy\" decoding=\"async\" style=\"background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;\" title=\"image\" src=\"https:\/\/aidanfinn.com\/wp-content\/uploads\/2012\/06\/image_thumb7.png\" border=\"0\" alt=\"image\" width=\"504\" height=\"83\" \/><\/a><\/p>\n<p>Here\u2019s a summary on the findings:<\/p>\n<ul>\n<li>There is a sweet spot in my configuration: 20 VMs at once.\u00a0 With a bit more testing I might have found if the sweet spot was closer to 15 or 25.<\/li>\n<li>Running 2 simultaneous live migrations was the slowest <em>by far, <\/em>over double the time required for 60 concurrent live migrations.<\/li>\n<\/ul>\n<p>Clearly in my configuration, lots of simultaneous live migrations speeds up the evacuation of a host.\u00a0 But the sweet spot could change if:<\/p>\n<ul>\n<li>The memory trashing of VMs was higher, rather than with idle VMs that I had<\/li>\n<li>I was using a different network, such as a single 1 GbE or 10 GbE NIC, for Live Migration instead of a 40 GbE converged fabric<\/li>\n<\/ul>\n<p>Sow how do you assess the right setting for your farm?\u00a0 That\u2019s a tough one, especially at this pre-release stage.\u00a0 My thoughts are that you test the installation just like I did during the pilot.\u00a0 See what works best.\u00a0 Then tune it.\u00a0 If you\u2019re on 1 GbE, then maybe try 10 and work your way down.\u00a0 If you\u2019re on 10 GbE converged fabric then try something like what I did.\u00a0 Find the sweet spot and then stick with that.\u00a0 At least, that\u2019s what I\u2019m thinking at the moment.<\/p>\n<div id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:84a52b06-c575-460b-bd72-65c1a7345124\" class=\"wlWriterEditableSmartContent\" style=\"margin: 0px; display: inline; float: none; padding: 0px;\">Technorati Tags: <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/Windows+Server+2012\">Windows Server 2012<\/a>,<a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/Hyper-V\">Hyper-V<\/a>,<a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/Virtualisation\">Virtualisation<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Seeing as a VMware marketing employee was so kind as to link to this post from his &#8220;independent&#8221; blog, I&#8217;ll gladly inform his followers of his employers&#8217; desperation and that VMware storage is insecure.\u00a0 You&#8217;re welcome, Eric \ud83d\ude42 We have the ability to run many live migrations at once between Windows Server 2012 (WS2012) Hyper-V &hellip; <a href=\"https:\/\/aidanfinn.com\/?p=12729\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;What Is The Correct Number Of Simultaneous Live Migrations?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[20],"tags":[181,195,118],"class_list":["post-12729","post","type-post","status-publish","format-standard","hentry","category-hyper-v","tag-hyper-v","tag-virtualisation","tag-windows-server-2012"],"aioseo_notices":[],"jetpack_featured_media_url":"","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/12729","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=12729"}],"version-history":[{"count":0,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=\/wp\/v2\/posts\/12729\/revisions"}],"wp:attachment":[{"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=12729"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=12729"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aidanfinn.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=12729"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}