Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director ® ™ ™ ® T e c h n i c a l W HI T E P A P E R ™
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Table of Contents Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 Overview. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Introduction VMware vCloud® Director™ makes broad deployment of clouds possible by enabling self-service access to infrastructure resources. It provides the interface, automation and management feature set that enables enterprises and service providers to supply VMware vSphere® resources as a Web-based service.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Overview The process for installing and configuring vCenter Chargeback Manager is as follows: 1. Install vCenter Chargeback Manager along with the vCenter Chargeback Manager, VMware vCloud Director, and VMware® vShield Manager™ data collectors. Refer to the vCenter Chargeback Manager Installation and Upgrade Guide for detailed installation instructions. 2. Validate vCenter Chargeback Manager data collector settings.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Data Collectors CBM Application/ Web UI • Configuration • Reporting HTTP(S) CBM DB JDBC vCenter Chargeback Server • Rest API • vCenter Orchestrator • vCenter Operations • ITBM • Stores Org Hierarchy • Stores Cost/Rate Plan VC APIs/JDBC • Global CB Configuration HTTP(S) • VC DB Statistics Multi VC Deployment VC1 vSphere Client • CB Plug-in VC2 Figure 1.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director 1 Session 1 Session 2 Session 3 Load Balancer Chargeback Server 1 2 Chargeback Server 3 3 Chargeback Server 2 Chargeback database Figure 2. User Request Routing with Clustering Load balancing is active/active. Each user request, whether it comes from the web interface or API, routes through the load balancer.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director • vCloud Director data collector – Connects to the vCloud Director database and monitors all vCenter Chargeback Manager–related events. The vCloud Director data collector populates the vCenter Chargeback Manager database with vCloud hierarchies, vCloud entities and allocation unit information.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director NOTE: To avoid errors in event processing and data collection, ensure that all vCloud components—including vSphere environment, vCloud Director, vShield Manager, and vCenter Chargeback Manager—are pointed to the same network time source. vCenter Chargeback Manager Web Interface Access to the vCenter Chargeback Manager Web interface requires a supported browser and Adobe Flash Player.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Data Flow vCenter Chargeback Manager gathers data from various sources through data collectors.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Backdate functionality is not currently available for vCloud hierarchies; it can be applied against only vCenter hierarchies. Custom attributes can be defined against any object within the hierarchy. By default, the system creates an attribute called vCloudEntityID, which is an identifier that provides a unique mapping to the corresponding vCloud Director entity.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Storage allocation units for vCloud entities are set as thick, regardless of provisioning. If the billing policy uses the usage attribute for storage, it is possible to charge for thin-provisioned disks as thick-provisioned disks. To view allocation units, go to Manage Hierarchy, select the hierarchy, right-click the object and select Set allocation units. Click Show to view historical allocation units.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director The (NA) metric unit for NAT, DHCP and Firewall resources indicates that the vShield Manager data collector tracks the count of vShield Edges with those specific services enabled. Count of networks is set in the allocation units on the Networks folder. Each change to number of networks is tracked by vCenter Chargeback Manager. Figure 5.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Figure 7. VMware vCenter Chargeback Manager Allocation Units Reservation Pool example • Organization vDC created using the Reservation Pool model • CPU = 10GHz, Memory = 20GB, Storage = 100GB • Allocation units: CPU = 10.0GHz, Memory = 20.0GB, Storage = 100.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Cost Models Cost models are used to associate base rates, billing policies and fixed costs with chargeable entities. vCenter Chargeback Manager comes with the following default cost models for vCloud Director entities. These vCD-specific cost models are mapped to the appropriate billing policy and have no base rates defined.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Figure 8. Memory Attributes Example Therefore, the billing policy indicates to vCenter Chargeback Manager which attribute to use for each metered resource when calculating costs for report generation. With vCloud entities, the allocation unit value is set by the vCloud Director data collector and maps to the limit specified in vCloud Director.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Other default billing policies are specific to vCenter Server only (e.g., fixed cost and CPU reservation). Use the default vCloud Director billing policies or define new billing policies. Table 2 presents the expressions used to construct the default vCloud billing policies.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Fixed Costs Fixed costs are costs defined for any resources not directly metered by vCenter Chargeback Manager. For example, a provider might want to inject costs for datacenter space, power, cooling, one-time setup fee, and physical load balancers into the customer’s cost report. vCenter Chargeback Manager can consider virtual machine state when applying fixed costs to entities containing virtual machines.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director vApp Lifecycle Pay As You Go service offerings monitor the consumption of vSphere resources during the lifecycle of a vApp. When vApps are instantiated or composed, vCloud Director instructs vCenter Server to begin a clone or create operation. Storage resources are consumed during this process and are used until the vApp is deleted.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Report Generation Automatic report schedulers can be used to generate reports on demand for hierarchies and entities that match the specified criteria. This is especially useful for the onboarding of new organizations into vCloud environments. See the “Managing Automatic Report Scheduler” section in the vCenter Chargeback Manager User’s Guide for additional details.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Figure 13. Multiple Cost Models in a Report Dashboard functionality is currently limited to one cost model and might not yield accurate results for organizations with multiple vDC types and cost models. Cost Calculation This example consists of an organization vDC (CPU = 10GHz, Memory = 20GB, Storage = 100GB) containing a vApp with two virtual machines (vCPU = 1, Memory = 4GB, Storage = 50GB).
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Calculating Resource Costs Base-rate calculation includes: time interval* rate cost* used units* rate factor. Performing this calculation on the organization vDC for CPU (allocation), with a base rate of $0.1 USD GHz/hour and no rate factor: 2 hours* $0.02 USD GHz/hour* 10GHz* 1.0 = $0.4 USD. Doing the same for memory (allocation) with a base rate of $0.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Assigning roles to users (e.g., organization administrator) for a resource (e.g., organization) • The hierarchy manager role is assigned to vCenter Server, so the user can view the vCenter Server. To make an existing hierarchy visible to the user, assign the hierarchy manager role to the hierarchy. • Assigning the hierarchy manager role in vCenter Chargeback Manager enables a user to create hierarchies.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Integration with External Systems Integration between vCenter Chargeback Manager and external systems requires the use of the vCenter Chargeback Manager API. Data is exported in XML format through an API call and then formatted to meet the input requirements of the billing system. Table 4 lists the primary task flows when integrating vCenter Chargeback Manager with a billing system.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Summary Metering is a core component of a cloud service offering. Providers can govern and shape end-user behavior through pricing schemes for infrastructure resources consumed. Collected data can be used to plug into advanced analytics engines such as ITBM for cost optimization and planning. vCenter Chargeback Manager provides the metering and cost calculation capabilities for vCloud environments.
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Appendix A: Configuration Maximums C on s traint Limit VMware vCenter Servers in a vCenter Chargeback Manager system 10 VMware vCenter Servers per data collector 5 Virtual machines per data collector 15,000 Virtual machines/entities in a vCenter Chargeback Manager system 35,000 Virtual machines/entities per hierarchy 1,000 Hierarchies in a vCenter Chargeback Manager system 5,000 Concurrent reports (approximate
Technical Note: Using VMware vCenter Chargeback Manager with VMware vCloud Director Appendix B: Port Requirements D e s cription P ort( s ) P rotoco l VMware vCenter Chargeback Manager Web interface to VMware vCenter Chargeback Manager server 8,080 TCP VMware vCenter Chargeback Manager Web interface to VMware vCenter Chargeback Manager server 443 TCP VMware vCenter Chargeback Manager server (load balancer) to VMware vCenter Chargeback Manager server 8,009 TCP VMware vCenter Chargeback Manager s
VMware, Inc. 3401 Hillview Avenue Palo Alto CA 94304 USA Tel 877-486-9273 Fax 650-427-5001 www.vmware.com 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 is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions.