Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Installing HostBill


HostBill installation is fully automated and takes just seconds, more info at Installation

 

Connecting HostBill with CloudStack


  1. In HostBill go to Settings > Modules, find and activate CloudStack hosting module
  2. You will be redirected to Settings > Apps to set connection with CloudStack
  3. Enter CloudStack api credentials, use Test Connection to check if HostBill can connect

 

Creating your first Cloud Hosting package


  1. In HostBill go to Settings > Products & Services, and Add new order page
  2. From Order Types select CloudStack
  3. After creating order page add new product in it, provide name & Save changes
  4. In product configuration section proceed to Connect with App, select CloudStack module and App server created in previous steps.
  5. Proceed to configuration wizard and set your package limit for each step. Follow video tour for more details.
  6. Submit changes, your package is ready

 

Setting up metered (Resource-based) billing for CloudStack


For metered (hourly) billing to work your Cloudstack needs to have usage server running - learn more 

  1. In HostBill go to Settings > Products & Services, and select your Cloudstack orderpage
  2. Select product you wish to setup metered billing for
  3. From Pricing option select Metered
  4. Setup variables you wish to bill your customer for, according to its usage. Following variables are available to be measured/billed:
    • Running VM - Total running time of a VM per usage record period. Enter cost of having 1VM working for 1H.
    • Allocated VM - Total allocated time of a VM per usage record period. Enter cost of having 1VM allocated for 1H.
    • Public IP address - Public IP address. Enter cost of having 1public IP for 1hour.
    • Traffic - Total number of GB received+sent. Enter cost of 1GB traffic.
    • Volume - Total disk volume used per hour. Enter cost of 1GB used per 1Hour.
    • Template - Total templates size used per hour. Enter cost of 1GB used per 1Hour.
    • Snapshot - Total snapshot size used per hour. Enter cost of 1GB used per 1Hour.
  5. Additionally, you can setup billing method per each variable, and pricing slabs/tiers:
    • Tiered scheme
      Every unit charge is calculated with each measurement based on its own tier.

      i.e.: 1-2: $1, 3-4: $2, qtys are: 1,3; charge: 1*$1 + 3*$2
    • Overage tiers
      Use this scheme as tiered, where each expected measurement is low (i.e. hourly bandwidth).

      i.e.: 0-100: $0, 101-150: $1 :

      up to 100 - free, everything above 100 - $1/unit. So total of: 102 measured will cost $2

    • Volume scheme
      All units charge is calculated based on total count in period and related bracket.

      ie.: 1-2: $1, 3-4: $2, qtys are: 1,3; charge: 4*$2
    • Stairstep scheme
      Total cost is calculated based on price bracket, charge is for entire bracket not certain units

      i.e.: 1-5: $1, 6-10: $2, total qty: 7, charge: $2
  6. By filling Fixed recurring fee you can setup flat fee that will be added to customer charge, no matter of actual usage

 

Configuring flavors/VM sizes


  • Under settings->modules make sure that Cloud Flavor Manager is active
  • Proceed to Extras->Cloud Flavor Manager
  • Click on Add new flavor
    • Provide flavor name, clien will see it in Create VM section
    • Provide hourly price for this VM Size
    • Tick "Enable" if client should see this size in clientarea
    • Provide description, client will see it in Create VM Section
    • Provide VM details, that will be passed to Cloudstack to create new VM:
      • Provide Memory amount in MB
      • CPU Cores count
      • CPU Speed in [ MHz]
      • Network speed in Mbps
    • Save changes
    • Repeat this task for any VM size you wish to offer

 

 

Setting cloud flavor billing in package


  • Proceed to your cloud package setup in Settings->Products & Services
  • Under billing tab, pick Flavor Billing type:
    • Setup fee - This fee will be added to client credit balance to lower with next recurring invoices.
    • Fixed recurring fee - You can add flat recurring fee to be added to each invoice.
  • Best practice is to limit services per customer under Other settings to 1 service per client
  • Save changes
  • Repeat this task for any VM size you wish to offer

 

 

Frequently asked questions


  • Q: How customers can cancel their services?
  • A: In clientarea, cloustack product, proceed to Billing tab, click on "Request Cancelation" - screenshot
  • Q: I've enabled metered billing, but nothing shows in account details - metered tab?
  • A: Data is fetched by cron once a day, please wait and make sure that cloudstack usage service is working correctly
  • Q: How to set-up overage billing for certain variable? Ie. I wish to bill for bandwidth usage over 1000MB
  • A: For Traffic variable in Metered pricing settings use Overage pricing scheme. Set up first tier for unit price 0, ending QTY to free traffic amount. For second tier set up your price per overage GB - screenshot
  • Q: How to modify clientarea theme for Cloudstack?
  • A: If you wish to edit templates for cloudstack, they're located in /includes/types/cloudstacktype/clientarea. Make sure those files wont be overwritten with upgrade
  • No labels