Launching TestFlows Machine: self-service deterministic simulation testing environment Read the post

Account and billing

Most of what the account page on the website does, the client does too.

Command Does
machine account show shows your account
machine account provision sets up account storage ahead of time; the first session or disk build does it otherwise
machine account credits shows your credits
machine account activity lists what they were spent on
machine account products list lists what is for sale
machine account buy-usage opens checkout for a pack of usage credits, as listed by products
machine account buy-plan subscribes to a plan, or switches tier if you already have a paid one
machine account upgrade-plan, machine account downgrade-plan moves you to a higher or lower plan
machine account cancel cancels the subscription: the plan stays until it renews, then drops to Free, and your usage credits stay
machine account invoices lists your invoices
machine account orders lists your purchases, and resumes or cancels a pending checkout
machine account payment updates your payment method
machine account portal opens your billing settings
machine account api-keys creates, lists, deletes and sets the expiry of API keys
machine account devices lists where you are signed in (--revoke signs one out)
machine account email changes your email address
machine account close closes the account, in two steps (--cancel stops it)

payment, portal, cancel, upgrade-plan and downgrade-plan open a browser. Add --link to print the address instead.

Sessions use credits. Machine writes an amount of credits with the sign ₡, so ₡0.375 is 0.375 credits. The price is per vCPU-hour, and depends on the hardware class. A session is created on standard-ip unless you pick another class, and it uses ₡0.375 a vCPU-hour. standard-ie uses ₡0.30. Each vCPU comes with 2G of memory and 16G of disk. A session that asks for more memory or disk than that is charged for as many vCPUs as would come with it. machine sessions classes lists the current price of each class. A paid plan includes plan credits every month. The Free plan includes them for the first 60 days after you sign up, and after that your account stays on Free and its sessions use usage credits. You buy usage credits at €1 a credit. A credit has no cash value. machine account show shows when your Free credits end. The Free plan depends on available capacity, and its conditions may change with one week’s notice.

Pricing lists the plans and their prices per user a month. Each plan is priced for one user, so a team takes a plan for each of its users. For machines reserved for your team alone, in our cloud or for your infrastructure, contact sales@testflows.com.

A running session is charged an hour ahead. When it stops, the unused part of its last hour is given back. In the activity, a Charged row’s TIME is the hour, and a Settled row’s TIME is negative: the part given back. A session’s rows therefore add up to the time it ran, and their CHANGE adds up to the credits it used. machine account activity <session> lists a session’s charges and what they add up to. How credits are granted and used is in the usage credit terms.

Runs, logs and disks take up space in your account. machine storage show says how much, and machine storage prune frees the space that deleted runs and disks left behind. A prune does nothing while that space is less than 5% of your storage. machine storage prune --status shows the current or last prune.

machine storage check reads everything in your account’s storage back and reports what it could not read, showing its progress as it goes. It writes nothing.

Your plan’s storage quota counts the TOTAL that machine storage show reports: what your runs and disks hold, and the space deleted ones have not given back yet. machine account show shows the same figure. Deleting a run or a disk moves its space to PRUNABLE, which still counts until you prune. The figures are from the last measurement, and machine storage --refresh measures again.

At the quota, a session starts no machine and creates no branch: machine create, machine start, machine fork, machine go, machine detach and machine disks build are refused. A machine that is already running keeps recording and saving. To get under the quota, delete runs or disks, stop your sessions, and prune.