1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

12 Commits

Author SHA1 Message Date
Kenny Lee Sin Cheong
5f63b3a7bb chore: drop deprecated tables and remove unused code (PROJQUAY-522) (#2089)
* chore: drop deprecated tables and remove unused code

* isort imports

* migration: check for table existence before drop
2023-08-25 12:17:24 -04:00
Kenny Lee Sin Cheong
0999baa29e chore: fix rediscluster cache config key name (PROJQUAY-2101) (#849)
Look for "rediscluster" instead of "redis-cluster" in the cache config.
2021-07-23 15:40:29 -04:00
Kenny Lee Sin Cheong
cd6871c14f cache: add support for redis cluster mode (PROJQUAY-2101) (#810)
Adds support to use redis in cluster mode when using redis instead of
memcached for caching.
2021-07-22 12:25:46 -04:00
Syed Mushtaq Ahmed
b33f125c58 modelcache: Add read and write endpoints to Redis (PROJQUAY-1939) (#795)
Adds `read_client` and `write_client` to Redis ModelCache to separate out read
and write calls to different endpoints
2021-05-20 16:04:36 -04:00
Syed Mushtaq Ahmed
df4ad94527 modelcache: Make ModelCache TTL configurable (PROJQUAY-1878) (#765)
Adds a configuration option to modify the cache expiry timeout
for ModelCache objects

Co-authored-by: Syed <syed@apache.org>
2021-04-28 10:46:32 -04:00
Alec Merdler
1180ea99fa cache: remove GlobalLock from redis model cache (PROJQUAY-1902) (#755)
Remove GlobalLock from Redis model cache implementation in
favor of 'nx=True' when setting the key.

Signed-off-by: Alec Merdler <alecmerdler@gmail.com>
2021-04-19 19:06:18 -07:00
Alec Merdler
780685c490 cache: add Redis model cache implementation (PROJQUAY-788) (#444)
Adds implementation of DataModelCache interface backed by Redis.
All containers in a Quay cluster deployment will share a single
model cache, rather than each container using its own cache.

Signed-off-by: Alec Merdler <alecmerdler@gmail.com>
2021-04-15 10:31:42 -07:00
Joseph Schorr
9a9608de3f Adds a pre-disconnect option to memcache (#459)
Add a config option for configuring whether to pre-disconnect from the
DB before making a memcache call
2020-06-25 16:08:36 -04:00
Joseph Schorr
8ff86175b8 Fix handling of client connections in pymemcache cache (#433)
pymemcache is apparently not thread safe, so our reuse of the client
was causing the occasional hang on read. This change has us open a new
connection per request, and then close it once complete. We also make
sure to close the DB connection before making the memcache connection,
in case the memcache connection takes a bit of time

We should investigate switching to the PooledClient library for reusing
connections (safely) once we verify this change works
2020-06-10 13:19:23 -04:00
alecmerdler
3dd5f045ff fix all the docstrings 2020-02-05 19:55:07 -08:00
Tom McKay
e6ae94db8b 'make black' results 2019-12-02 12:23:08 -05:00
Jimmy Zelinskie
9c0dd3b722 initial import for Open Source 🎉 2019-11-12 11:09:47 -05:00