--- title: Memory quota description: Adapter for a simple in-memory quota management system. location: https://istio.io/docs/reference/config/policy-and-telemetry/adapters/memquota.html layout: protoc-gen-docs generator: protoc-gen-docs supported_templates: quota aliases: - /docs/reference/config/adapters/memquota.html number_of_entries: 3 ---

The `memquota` adapter can be used to support Istio’s quota management system. Although functional, this adapter is not intended for production use and is suited for local testing only. The reason for this limitation is that this adapter can only be used in meshes where there is a single instance of Mixer running for the whole mesh (i.e. non-HA configuration) and if that single instance crashes, all outstanding quota values will be lost.

This adapter supports the quota template.

## Params

Configuration format for the `memquota` adapter.

Field | Type | Description | Required
--- | --- | --- | ---
`quotas` | `Quota[]` | The set of known quotas. | No
`minDeduplicationDuration` | `Duration` | Minimum number of seconds that deduplication is possible for a given operation. | No

## Params.Override

Defines an override value for a quota. If no override matches a particular quota request, the default for the quota is used.

Field | Type | Description | Required
--- | --- | --- | ---
`dimensions` | `map<string, string>` | The specific dimensions for which this override applies. String representation of instance dimensions is used to check against configured dimensions. | No
`maxAmount` | `int64` | The upper limit for this quota. | No
`validDuration` | `Duration` | The amount of time allocated quota remains valid before it is automatically released. This is only meaningful for rate limit quotas, otherwise the value must be zero. | No

## Params.Quota

Defines a quota’s limit and duration.

Field | Type | Description | Required
--- | --- | --- | ---
`name` | `string` | The name of the quota | No
`maxAmount` | `int64` | The upper limit for this quota. | No
`validDuration` | `Duration` | The amount of time allocated quota remains valid before it is automatically released. This is only meaningful for rate limit quotas, otherwise the value must be zero. | No
`overrides` | `Override[]` | Overrides associated with this quota. The first matching override is applied. | No