Versions in this module Expand all Collapse all v0 v0.1.0 Jul 17, 2018 Changes in this version + const ConfigName + type Autoscaler struct + func New(config *Config, model v1alpha1.RevisionRequestConcurrencyModelType, ...) *Autoscaler + func (a *Autoscaler) Record(ctx context.Context, stat Stat) + func (a *Autoscaler) Scale(ctx context.Context, now time.Time) (int32, bool) + type Config struct + ConcurrencyQuantumOfTime time.Duration + EnableScaleToZero bool + EnableVPA bool + MaxScaleUpRate float64 + MultiTargetConcurrency float64 + PanicWindow time.Duration + ScaleToZeroThreshold time.Duration + SingleTargetConcurrency float64 + StableWindow time.Duration + VPAMultiTargetConcurrency float64 + func NewConfigFromConfigMap(configMap *corev1.ConfigMap) (*Config, error) + func NewConfigFromMap(data map[string]string) (*Config, error) + func (c *Config) TargetConcurrency(model v1alpha1.RevisionRequestConcurrencyModelType) float64 + type Measurement int + const ActualPodCountM + const DesiredPodCountM + const ObservedPanicConcurrencyM + const ObservedPodCountM + const ObservedStableConcurrencyM + const PanicM + const RequestedPodCountM + const TargetConcurrencyM + type Reporter struct + func NewStatsReporter(podNamespace string, config string, revision string) (*Reporter, error) + func (r *Reporter) Report(m Measurement, v float64) error + type Stat struct + AverageConcurrentRequests float64 + PodName string + RequestCount int32 + Time *time.Time + type StatMessage struct + RevisionKey string + Stat Stat + type StatsReporter interface + Report func(m Measurement, v float64) error