Difference between revisions of "Flexible plans"

From Luna Node
Jump to: navigation, search
(Metering)
Line 15: Line 15:
 
CPU time is calculated based on data in /proc/<pid>/stat for the KVM process and /proc/stat for global usage. The utime and stime fields in /proc/<pid>/stat are added to calculate VM clock ticks. This is compared to sum of user, system, and idle field in /proc/stat to calculate global clock ticks. The percent usage, then, is VM clock ticks divided global clock ticks, multiplied by the number of CPU cores on the compute node. See http://man7.org/linux/man-pages/man5/proc.5.html for details.
 
CPU time is calculated based on data in /proc/<pid>/stat for the KVM process and /proc/stat for global usage. The utime and stime fields in /proc/<pid>/stat are added to calculate VM clock ticks. This is compared to sum of user, system, and idle field in /proc/stat to calculate global clock ticks. The percent usage, then, is VM clock ticks divided global clock ticks, multiplied by the number of CPU cores on the compute node. See http://man7.org/linux/man-pages/man5/proc.5.html for details.
  
Bandwidth is the sum of outgoing and incoming traffic that passes the gateway router. This does not include internal traffic between VMs.
+
Bandwidth is the sum of outgoing and incoming traffic that passes through the gateway router. This does not include internal traffic between VMs.
 +
 
 +
Note that bandwidth is billed as part of the bandwidth pool system, so this really works by having Flexible plans add 0 bandwidth to the account-wide pool. If you have non-flexible virtual machines as well, then you will be able to use unused bandwidth from those VMs on the current calendar month without being charged.

Revision as of 03:58, 26 January 2015

Flexible plans are a feature currently in beta where you pay a base cost for fixed memory and storage resources, but CPU and bandwidth are billed based entirely on usage. These plans are marked "Flexible" in the plan list (from "Flexible 2048" to "Flexible 32768"). Unlike other plans, you can use allocated CPU cores on Flexible plans as much or as little as desired.

Pricing is as follows:

  • Base cost: this is the hourly pricing for the fixed memory and storage resources displayed at https://dynamic.lunanode.com/info.php (which does not include any CPU or bandwidth resources).
  • CPU: $16.00 per CPU-core-month, billed by percent usage per hour. For example, if you use 20% of each of four cores over one week, then the total CPU charge is 0.2 * 4 * (16/4) = $3.20 (in addition to the base cost and any bandwidth charges).
  • Bandwidth: $0.003/GB -- this is the same as our excessive bandwidth rate, and charges in the panel will appear under excessive bandwidth category.

Flexible plans are still in beta, which means they are subject to updates in pricing or resources (including termination of the plan). If any updates are planned, we will send an email notification at least two weeks before the update takes effect.

Note: Flexible plans are currently only available on local storage. The panel will display an error if you attempt to boot a volume-backed instance with a Flexible plan.

Metering

CPU time is calculated based on data in /proc/<pid>/stat for the KVM process and /proc/stat for global usage. The utime and stime fields in /proc/<pid>/stat are added to calculate VM clock ticks. This is compared to sum of user, system, and idle field in /proc/stat to calculate global clock ticks. The percent usage, then, is VM clock ticks divided global clock ticks, multiplied by the number of CPU cores on the compute node. See http://man7.org/linux/man-pages/man5/proc.5.html for details.

Bandwidth is the sum of outgoing and incoming traffic that passes through the gateway router. This does not include internal traffic between VMs.

Note that bandwidth is billed as part of the bandwidth pool system, so this really works by having Flexible plans add 0 bandwidth to the account-wide pool. If you have non-flexible virtual machines as well, then you will be able to use unused bandwidth from those VMs on the current calendar month without being charged.