Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-63641

Implement Redis database selection in cache and session store

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.2
    • Fix Version/s: None
    • Component/s: Authentication, Caching
    • Labels:
      None
    • Testing Instructions:
      Hide

      Configuration

      Assuming an existing Redis installation...

      1. Browse to /cache/admin.php and modify your Redis store instance Database ID of any non-zero value. By default the number of databases is 16, on a range of 0 (default) to 15.

      Testing

      1. Verify that redis-cli monitor shows Moodle traffic issuing a SELECT n command before executing any others.
      Show
      Configuration Assuming an existing Redis installation... Browse to /cache/admin.php and modify your Redis store instance Database ID of any non-zero value. By default the number of databases is 16, on a range of 0 (default) to 15. Testing Verify that redis-cli monitor shows Moodle traffic issuing a SELECT n command before executing any others.
    • Affected Branches:
      MOODLE_35_STABLE
    • Pull Master Branch:
      MDL-63641-redis-select-master

      Description

      If an administrator wishes to host multiple "things" (e.g. locks, MUC caches and session data) in a single Redis deployment it makes a lot of sense to isolate the data by database. This enables easier deployments, as purges of the keyspace can take place within a database, and more granular monitoring as per-database keyspace can be extracted from the deployment.

      Moodle currently offers the ability to do this only through a key name prefix.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lukecarrier Luke Carrier
                Reporter:
                lukecarrier Luke Carrier
                Peer reviewer:
                Víctor Déniz Falcón
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Matteo Scaramuccia, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: