7
VM Resource Pool Rebalancing DAN BARR, PENN STATE ARL CENTRAL PA VMUG, JULY 16, 2015

CPAVMUG Presentation 2015-07-16 - Resource Pool Balancing

Embed Size (px)

Citation preview

Page 1: CPAVMUG Presentation 2015-07-16 - Resource Pool Balancing

VM Resource Pool Rebalancing

DAN BARR, PENN STATE ARL

CENTRAL PA VMUG, JULY 16, 2015

Page 2: CPAVMUG Presentation 2015-07-16 - Resource Pool Balancing

Penn State Applied Research LabUniversity Center of Excellence in Defense science, systems, and technologies

U.S. Navy UARC (University-Affiliated Research Center)

Approximately 1100 researchers and support staff

ARL IT Services division manages VMs for lab-wide infrastructure, business applications, and hosting for numerous research departments

Production clusters (x2): 10 hosts, 250 VMs

Project-specific clusters (x3): 16 hosts, 60 VMs, several “monster” VMs

Page 3: CPAVMUG Presentation 2015-07-16 - Resource Pool Balancing

Resource Pool BalancingUse Resource Pools to prioritize critical VMs and ensure fair balancing during contention

Rule 1: Resource Pools are NOT folders!◦ They have a real impact on resource distribution during contention

Rule 2: Share values are arbitrary but relative◦ Pick base per-VM values and be consistent with share weighting

◦ No default (Low/Normal/High) values on pools

Rule 3: Don’t mix Resource Pools and VMs at the same inventory level

Rule 4: vApps are Resource Pools, too

How do we balance the shares, and more importantly keep them balanced over time?

Page 4: CPAVMUG Presentation 2015-07-16 - Resource Pool Balancing

Default Settings = Unexpected Results

GoldShares = High (8000)

40 VMs = 200 shares per VM

SilverShares = Normal (4000)

20 VMs = 200 shares per VM

BronzeShares = Low (2000)

5 VMs = 400 shares per VM

Page 5: CPAVMUG Presentation 2015-07-16 - Resource Pool Balancing

Automated BalancingTags assigned to all Resource Pools & vApps◦ Tag Category: Shares Per VM

◦ Tags: 50, 100, 150, 200, “Parent”

◦ Parent = Resource Pool with child Pools

PowerShell Script◦ Reads the tags from each RP/vApp & calculates share value

◦ CPU & Memory Shares = (# of VMs) * (tag value)

◦ Parent pools = sum of child pools

◦ Email notification of changes made, warning on pools with no tag

Page 6: CPAVMUG Presentation 2015-07-16 - Resource Pool Balancing

Example End ResultDepartment A: 100 shares/VM, 5 VMs = 500 shares

Department B: 100 shares/VM, 8 VMs = 800 shares

Infrastructure: 6200 shares

Gold: 200 shares/VM, 10 VMs = 2000 shares

Business Apps: 4300 shares

Silver: 100 shares/VM, 35 VMs = 3500 shares

Bronze: 50 shares/VM, 14 VMs = 700 shares

Prod: 150 shares/VM, 18 VMs = 2700 shares

Dev: 50 shares/VM, 22 VMs = 1100 shares

Test vApp: 100 shares/VM, 5 VMs = 500 shares

Page 7: CPAVMUG Presentation 2015-07-16 - Resource Pool Balancing

THANK YOU!

QUESTIONS?

This document was created using the official VMware icon and diagram library. Copyright © 2012 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.

VMware does not endorse or make any representations about third party information included in this document, nor does the inclusion of any VMware icon or diagram in this document imply such an endorsement.