Skip to main content
Magic Containers is ideal for any type of workload, from small experiments to large-scale production applications.

Cost components and rates

There are two types of cost components: based only on amount or on amount and time.
  • Cost components based on time and amount
    • CPU
    • RAM
    • Anycast IP
    • Persistent volumes
  • Cost components based on amount only
    • Egress traffic

CPU

CPU is billed per second of CPU time consumed by your containers. If your container uses an entire CPU core for one second, you pay for one second of CPU time. If it uses half a core for one second, that counts as 0.5 seconds of CPU time. If two cores are used for one second, that counts as 2 seconds of CPU time. Calculation example:
  • CPU cost: $0.02 per CPU per hour
  • Cost per second of CPU time: $0.02 / 60 / 60 = $0.000005555555556 per second
Example scenario: If your application uses 3 seconds of full CPU time per minute; every minute for the period of entire month:
  • 1 minute = 60 seconds
  • CPU usage per hour = 180 seconds ( 3 second per minute * 60 minutes)
  • Hourly CPU cost = 180 x $0.000005555555556 ≈ $0.001
  • Daily CPU cost = 24 x $0.001≈ $0.024
  • Over an entire month (31 days), your CPU cost would be roughly $0.744.

RAM usage

Memory (RAM) is billed in 64 MB increments per hour. Even if your application uses only 10 MB, you’ll pay for one 64 MB block. Usage is calculated hourly and aggregated at the end of the billing cycle.
For actual workload memory, please note that the total reported memory usage charged will include an additional system overhead that is variable with the workload.
Calculation example:
  • RAM Cost: $0.005 per GB per hour (1 GB ~ 16 blocks by 64MB)
  • Cost per 64 MB block per hour: $0.005 / 16 = $0.0003125
Example scenario: If your application uses 512 MB of RAM usage (8 blocks of 64 MB) per hour; every hour for the period of entire month:
  • Price per 512 MB per hour: $0.00025 x 8 = $0.002
  • Price per day: $0.002 x 24 = $0.048
  • Price per month (31d): $0.048 x 31 = $1.488

Anycast IP usage

The cost for Anycast IP (IPv4) is $2 for per month. If you use Anycast IP (IP is attached to the application) only for some period within the month we will charge only for that period. Calculation example:
  • Anycast IP Cost: $2 per month
  • Anycast IP Cost per minute (if 31d month): 2 / 31 / 24 / 60 = $0.000044802867384
Practical scenario: If Anycast IP is attached to your application for 10 days, 7 hours, and 15 minutes in the last month you will be charged for:
  • Anycast IP Cost per hour: $0.000044802867384 x 60 = $0.002688172043011
  • Anycast IP Cost per day: $0.002688172043011 x 24 = $0.064516129032258
  • Total Anycast cost: 10 * $0.064516129032258 + 7 x $0.002688172043011 + 15 x $0.000044802867384 = $0.664650537634417

Persistent volumes

Persistent volumes are billed based on the allocated (provisioned) volume size, not the actual used space. Calculation example:
  • Storage cost: $0.10 per GB per month
  • Daily cost per 1 GB (31 days): $0.10 / 31 = $0.003225806451613 per GB per day
Practical scenario: If you allocate a 20 GB volume for 15 days:
  • Cost = 20 x 15 x $0.003225806451613 = $0.97

Network traffic usage

Network traffic is charged based on the total data transferred each month. The prices vary by region. The MC costs include the following traffic:
  • All egress traffic, except for traffic going through the CDN (CDN traffic is charged as part of the CDN service).
Region prices:
  • Europe & North America: $0.01/GB
  • South America: $0.045/GB
  • Asia & Oceania: $0.03/GB
  • Middle East & Africa: $0.06/GB
Practical Scenario: If your application served 15 GB of traffic from Europe, 10 GB of traffic from the Middle East, and 3 GB from South America, the costs would be calculated as follows:
  • Europe traffic cost: $0.01 x 15 = $0.15
  • Middle East traffic cost: $0.06 x 10 = $0.6
  • South America traffic cost: $0.045 x 3 = $0.135
  • Total: $0.885