Uploaded image for project: 'Z-Push'
  1. Z-Push
  2. ZP-1432

Save device data on the same memcached server

    Details

    • Type: Improvement
    • Status: QA
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.0 beta1, 2.5.0
    • Component/s: None
    • Labels:
      None

      Description

      It is possible to configure multiple memcached servers when using IpcMemcachedProvider backend. The device data however might end up on different memcached servers because the hashing algorithm takes only the key into account.

      PHP Memcached class provides *ByKey (addByKey, setByKey, getByKey etc) functions which accept $server_key parameter. The extension then will hash on the $server_key to select the memcached server. This would increase performance as there will be only one connection to one memcached server.

      This is a rather big change as it requires interface update.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Manfred Manfred Kutas
                Reporter:
                Manfred Manfred Kutas
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: