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

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

    XMLWordPrintable

Details

    • MOODLE_400_STABLE
    • Moderate

    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

              Unassigned Unassigned
              brendanheywood Brendan Heywood
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: