Commit 49ca420c authored by David H. Wilkins's avatar David H. Wilkins

Reduce redis key size by half for Prometheus::ProxyService

- Prometheus::ProxyService is sending over the contents of cache_key
  in with_reactive_cache and the keys are being duplicated by
  ReactiveCaching#full_reactive_cache_key since it calls
  Prometheus::ProxyService::reactive_cache_key
parent e66fd303
......@@ -5,7 +5,7 @@ module Prometheus
include ReactiveCaching
include Gitlab::Utils::StrongMemoize
self.reactive_cache_key = ->(service) { service.cache_key }
self.reactive_cache_key = ->(service) { [] }
self.reactive_cache_lease_timeout = 30.seconds
self.reactive_cache_refresh_interval = 30.seconds
self.reactive_cache_lifetime = 1.minute
......
---
title: use-smaller-prometheus-redis-keys
merge_request: 20006
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment