Skip to content

memcache update: the simple bits - #637

Open
dale-wahl wants to merge 1 commit into
masterfrom
memcache_v2_final_final
Open

dale-wahl wants to merge 1 commit into
masterfrom
memcache_v2_final_final

Conversation

@dale-wahl

Copy link
Copy Markdown
Member

@stijn-uva about as simple as i could make it.

  • wrap the memcache commands, one retry, if fails it warns admins (likely to be missed by anyone without Slack hooks set up; who reads logs unless something actually seems broken?)
  • 600 second timeout on memcache values (so if there is a fail, the processes still using memcache should eventually heal via the database)
  • Limiter needed a fallback for memcache otherwise it crashes
  • _memcache_key fixes keys that fail due to pymemcache/memcached not accepting certain characters (only an issue with weird usernames/tags, but a worthy guard in my opinion)

Note that without the reconnect logic from the other PR, we may see the error again due to unattended upgrades of memcached. Not an issue in our Docker setup luckily.

@dale-wahl
dale-wahl requested a review from stijn-uva November 11, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant