Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #10152

Closed
Open
Created Apr 22, 2016 by Administrator@rootOwner

Redis namespace support option

Created by: virtuman

Since open source redis doesn't support the database name (instead it accesses them by number) it would be nice to utilize namespace feature or at least the database number within redis.

Most of the applications don't explicitly specify DB number and if you have 1 shared instance of REDIS a lot of your applications will tend to use DB0 as it is the default DB number.

Current Redis implementation already supports namespaces. But since Redis doesn't really penalize for additional levels of enclosure of namespaces (except for extra characters in key names), and to allow for a little bit of flexibility of what is mentioned above - all that needs to be done is add a prefix to all redis key commands that is configurable via gitlab options.

Current naming of redis keys:

db0:
  cache:
     ..
  resque:
     ..
  session:
     ..

Proposed change:

  1. add configurable option for redis key prefix, with empty default value (for backwards compatibility)
  2. add the value of #1 (closed) as prefix to all keys (or commands that handle redis communications):
db0:
  **namespace:**
      cache:
         ..
      resque:
         ..
      session:
         ..
Assignee
Assign to
Time tracking