LCU Pricing

Last updated: 2021-09-10 16:59:09

    An LCU measures the metrics on which that CLB processes traffic. This document describes how the LCU charge is calculated.

    Note:

    • Only LCU-supported CLB instances will incur LCU usage fees. LCU-supported CLB instances are only available to beta users. To use it, please submit an application.
    • Shared CLB instances are free of LCU charges.

    Pay As You Go

    In the pay-as-you-go model, you will pay for the LCUs consumed based on the following CLB performance metrics:

    Metric Description
    New connections Number of newly established connections per second.
    Concurrent connections Number of concurrent connections.
    Processed traffic Number of bytes (both outbound and inbound) processed by the CLB instance in Gigabytes (GB).
    Rule evaluations (only for HTTP/HTTPS) It is the product of number of rules processed by your CLB instance and queries per second (QPS). The first 10 processed rules are free:
    • For over 10 processed rules, rule evaluations = QPS × (number of processed rules – 10 free rules).
    • For 10 or fewer processed rules, rule evaluations = QPS.
    Note:

    • The number of LCUs consumed for one hour is calculated based on the above four metrics and the maximum consumed across the four metrics will be charged.
    • LCU unit price: 0.0072 USD/hour
    • In the pay-as-you-go model, LCU-billing CLB instances provide the highest performance specification. The metrics are:
      • Concurrent connections: 1,000,000
      • New connections: 100,000
      • QPS: 50,000
      • Bandwidth: 10 Gbps

    The performance specification per LCU varies depending on the protocol.

    Protocol Performance Specification Per LCU
    HTTP/HTTPS
    • 25 new connections per second
    • 3,000 concurrent connections per minute
    • 1 GB of traffic per hour
    • 1,000 rule evaluations per second
    TCP
    • 800 new connections per second
    • 100,000 concurrent connections per minute
    • 1 GB of traffic per hour
    UDP/QUIC
    • 400 new UDP flows
    • 50,000 active UDP flows
    • 1 GB of traffic per hour
    TCP SSL
    • 800 new connections per second
    • 100,000 concurrent connections per minute
    • 50 new TLS flows
    • 3,000 active TLS flows
    • 1 GB of traffic per hour

    Pricing examples

    Assume that your CLB instance receives an average of 100 new connections per second, each lasting 3 minutes. A client sends an average of 4 requests per second per connection, and 1,000 KB of requests and responses are processed per second in total. You have configured an HTTP (80) listener and an HTTPS (443) listener, with 20 forwarding rules to route your client requests. You are charged on the following metrics:

    • New connections (per second): Each LCU provides 25 new connections per second. Since your CLB instance receives 100 new connection per second, this translates to 4 LCUs (100 connections / 25 connections).
    • Concurrent connections (per minute): Each LCU provides 3,000 concurrent connections per minute. Since your CLB instance receives 100 new connection per second (that is, 6,000 new connections per minute), each lasting 3 minutes, this translates to 18,000 concurrent connections (6,000 new connections * 3 minutes), or 6 LCUs (18,000 concurrent connections / 3,000 concurrent connections).
    • Processed traffic (per hour): Each LCU provides 1 GB per hour. Since your CLB instance processes 1,000 KB of data per second, this translates to 3.6 GB per hour or 3.6 LCUs (3.6 GB / 1 GB).
    • Rule evaluations (per second): Each LCU provides 1,000 rule evaluations per second. Since your CLB instance receives 100 new connections per second and a client sends an average of 4 requests per second per connection, your CLB instance receives a total of 400 requests per second. Therefore, 20 forwarding rules for each request results in 4,000 rule evaluations per second (20 forwarding rules – 10 free rules) * 400 or 4 LCUs (4,000 rule evaluations / 1,000 rule evaluations).

    In this example, the concurrent connections translate to 6 LCUs, the maximum LCUs among the four metrics, resulting in a total charge of 0.0432 USD/hour (6 LCUs * 0.0072 USD per LCU) or 31.104 USD/month (0.00432 USD * 24 hours * 30 days).