Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • infrastructure infrastructure
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 108
    • Issues 108
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 19
    • Merge requests 19
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Arch LinuxArch Linux
  • infrastructureinfrastructure
  • Merge requests
  • !413

mirrorauth: Ensure archweb is queried only once per cache TTL

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Evangelos Foutras requested to merge mirrorauth-cache-tweaks into master Jun 04, 2021
  • Overview 0
  • Commits 2
  • Pipelines 1
  • Changes 1

The first commit adjusts the cache key to not include the original request URI. [1] The second one tweaks how cache entries are populated and refreshed to avoid hitting archweb multiple times while entries are inserted or updated (if stale). [2]

I have tested and deployed these changes. Seems to work well! 🐈

[1] this gets us from many auth requests (1 per URL) down to a handful (however many pacman does concurrently)
[2] after this I now only notice at most one auth request per 5 minutes for both nonexistent and stale cache entries

Edited Jun 04, 2021 by Evangelos Foutras
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: mirrorauth-cache-tweaks