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

Convert redis session store to use a HASH for smaller delta writes

    XMLWordPrintable

    Details

    • Difficulty:
      Moderate
    • Affected Branches:
      MOODLE_400_STABLE

      Description

      This is a more aggressive performance optimization similar to MDL-69707.

      By storing each session as a redis hash we can track which attributes inside the session object have changed or been removed, and when we write close the session we can only set the parts which have changed.

      Almost all session mutations are fairly simple, a ball park might be 1-5% of the session size, we might save around 90% of write traffic, or 45% of redis session IO overall.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              brendanheywood Brendan Heywood
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: