Balance Threshold Feedback (BTF)
Balance Threshold Feedback (BTF) calculates the available quantity until the next threshold using the gross balance amount.
- Purchased catalog item charges $0.01/MB and download rate is 6MB/min.
- Purchased catalog item charges $0.02/MB and download rate is 3MB/min.
- Purchased catalog item charges $0.03/MB and download rate is 2MB/min.
- Purchased catalog item charges $0.06/MB and download rate is 1MB/min.
BTF uses the reserved amount to detect reservations from other authorizations sharing the balance. BTF considers the proximity to the next threshold, and quota allocation is stepped down when approaching a threshold or credit limit. In general, if 1% of an asset is used and the next threshold is set at 50%, larger quotas are allocated. If 49% of the asset is used and the next threshold is set at 50%, smaller quotas are allocated. A notification is sent as soon as possible after the gross amount reaches a threshold. After a threshold is passed, the proximity to the next threshold is recalculated and quota allocation is reset based on the proximity to the next threshold.
On shared balances, AQM tries to authorize quota across all contexts so that they reach a threshold or credit limit at about the same time. On unshared balances, the quota can drop imder any configured minimums to meet the threshold. AQM grants the target quota if it is less than the scaled distance (D) to the next threshold. Otherwise, AQM grants D if it is greater than the minimum, or if D is less than the minimum, it grants the minimum. On an unshared balance, AQM can grant less than the minimum to hit the unscaled distance to the threshold.
- Data consumption velocity: 1MB/minute
- QVT: 30 seconds (512KB at velocity)
- Default QVT: 5 minutes (5MB at velocity)
- Threshold Scale Factor: 2 (50%)
A factor of 2 implies that usage is two times closer to the threshold than it is. In this case AQM starts to issue smaller quotas twice as early as it normally would, and it issues the quotas more gradually because AQM has more time to slow down.
- D: distance to the next threshold
- If D >= 10MB, grant the default quota and QVT (5MB/5min).
- If 1MB <= D <= 10MB, the quota grant = 50% of D (between 512KB and 5MB) and the QVT = 1 minute per MB of quota.
- If the balance is shared and D <= 1MB, grant the minimum quota and QVT (512KB/30 seconds).
- If the balance is unshared and 512KB < D < 1MB, grant the minimum quota and QVT (512KB/30 seconds).
- If the balance is unshared and D < 512KB, the quota grant = D and the QVT = 30 seconds.
In this final situation, the unscaled distance is used to decide to drop under the minimum to exactly hit a threshold on the unshared balance.
When approaching a threshold, a larger scale factor compensates for inaccurate velocity measurements. The result is more frequent reauthorizations with smaller quotas and validity times.
adaptive_threshold_scale_factor
attribute defined in the service
type definition. This attribute can be set in the <service_type>
node or the <quantity_info>
node. If it is set in the
<service_type>
node, the attribute value applies to the
default context. The value must be greater than or equal to 1.0. The balance template
value overrides the service or context type value. If neither value is set, the default
value (1.0) is used.