istio: istio.io/istio/mixer/adapter/memquota Index | Files | Directories

package memquota

import "istio.io/istio/mixer/adapter/memquota"

Package memquota provides a simple in-memory quota implementation. It's trivial to set up, but it has various limitations:

- Obviously, the data set must be able to fit in memory.

- When Mixer crashes/restarts, all quota values are erased. This means this isn't good for allocation quotas although it works well enough for rate limits quotas.

- Since the data is all memory-resident and there isn't any cross-node synchronization, this adapter can't be used in an Istio mixer where a single service can be handled by different mixer instances.

Index

Package Files

dedup.go keys.go memquota.go rollingWindow.go

func GetInfo Uses

func GetInfo() adapter.Info

GetInfo returns the Info associated with this adapter implementation.

type Limit Uses

type Limit interface {
    GetMaxAmount() int64
    GetValidDuration() time.Duration
}

Limit is implemented by Quota and Override messages.

Directories

PathSynopsis
config

Package memquota imports 12 packages (graph) and is imported by 2 packages. Updated 2019-10-18. Refresh now. Tools for package owners.