We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

  1. 08 Aug, 2011 1 commit
    • Evan Prodromou's avatar
      Store pkeys in cache for listGet() · ed31052d
      Evan Prodromou authored
      I was storing the full objects in the cache for the listGet()
      function. I've changed it to store only pkeys, and use pivotGet() to
      get all the corresponding values.
      This also required changing pivotGet() so it can get objects with
      multi-column pkeys, which complicated the whole thing quite a bit. But
      it seems to work OK.
  2. 02 Aug, 2011 5 commits
  3. 14 Jul, 2011 2 commits
  4. 11 Jul, 2011 1 commit
  5. 11 Apr, 2011 1 commit
  6. 22 Mar, 2011 1 commit
    • Evan Prodromou's avatar
      Mass replacement of #-comments with //-comments · 83fb5e60
      Evan Prodromou authored
      like leprous boils in our code. So, I've replaced all of them with //
      comments instead. It's a massive, meaningless, and potentially buggy
      change -- great one for the middle of a release cycle, eh?
  7. 31 Jan, 2011 2 commits
    • Brion Vibber's avatar
      Performance counters: records number of total and unique cache... · de7726dd
      Brion Vibber authored
      Performance counters: records number of total and unique cache get/set/incr/deletes and queries, and logs to syslog.
      $config['site']['logperf'] = true; // to record & dump total hits of each type and the runtime to syslog
      $config['site']['logperf_detail'] = true; // very verbose -- dump the individual cache keys and queries as they get used (may contain private info in some queries)
      Seeing 180 cache gets on a timeline page seems not unusual currently; since these run in serial, even relatively small roundtrip times can add up heavily.
      We should consider ways to reduce the number of round trips, such as more frequently storing compound objects or the output of processing in memcached.
      Doing parallel multi-key lookups could also help by collapsing round-trip times, but might not be easy to fit into SN's object model. (For things like streams this should actually work pretty well -- grab the list, then when it's returned go grab all the individual items in parallel and return the list)
    • Brion Vibber's avatar
      Fix for ticket #3020: set MySQL session time_zone variable to UTC ('+0:00') so... · 54f7154d
      Brion Vibber authored
      Fix for ticket #3020: set MySQL session time_zone variable to UTC ('+0:00') so TIMESTAMP column values are comparable against our other UTC timestamp values.
      MySQL stores TIMESTAMP columns as UTC, but with a local time interface. (SRSLY?!) DATETIME columns are always bare and assumed to be local time, but we keep only UTC in them.
      Forcing the session time_zone to UTC means we won't have to worry as much about what we're sending/receiving in there.
      Also will let us remove the hack in master commit a7abb232 for session tweaks
  8. 27 Dec, 2010 1 commit
  9. 17 Dec, 2010 1 commit
  10. 15 Oct, 2010 1 commit
  11. 28 Sep, 2010 1 commit
  12. 06 Sep, 2010 3 commits
  13. 06 Aug, 2010 1 commit
    • Brion Vibber's avatar
      OStatus/FeedSub: tweaked PuSH feed garbage collection so other plugins can... · 7e55fc00
      Brion Vibber authored
      OStatus/FeedSub: tweaked PuSH feed garbage collection so other plugins can declare usage of a low-level feed or an OStatus profile besides profile subscriptions & group memberships.
      SubMirror: redid add-mirror frontend to accept a feed URL, then pass that on to OStatus, instead of pulling from your subscriptions.
      Profile: tweaked subscriberCount() so it doesn't subtract 1 for foreign profiles who aren't subscribed to themselves; instead excludes the self-subscription in the count query.
      Memcached_DataObject: tweak to avoid extra error spew in the DB error raising
      Work in progress: tweaking feedsub garbage collection so we can count other uses
  14. 30 Jul, 2010 1 commit
  15. 29 Jul, 2010 1 commit
  16. 14 Jul, 2010 1 commit
  17. 04 Jun, 2010 2 commits
  18. 07 Apr, 2010 1 commit
  19. 29 Mar, 2010 1 commit
  20. 24 Mar, 2010 1 commit
  21. 24 Feb, 2010 1 commit
  22. 16 Feb, 2010 1 commit
    • Brion Vibber's avatar
      Stomp queue restructuring for mass scalability: · c74aea58
      Brion Vibber authored
      - Multiplexing queues into groups and for multiple sites.
      - Sharing vs breakout configurable per site and per queue via $config['queue']['breakout']
      - Detect how many times a message is redelivered, discard if it's killed too many daemons
       - count configurable with $config['queue']['max_retries']
       - can dump the items to files in $config['queue']['dead_letter_dir']
      Queue daemon memory & resource leak fixes:
      - avoid unnecessary reconnections to memcached server (switch persistent connections back in on second initialization, assuming it's child process)
      - monkey-patch for leaky .ini loads in DB_DataObject::databaseStructure() - was leaking 200k per active switch
      - applied leak fixes to Status_network as well, using intermediate base Safe_DataObject for both it and Memcache_DataObject
      Misc queue fixes:
      - correct handling of child processes exiting due to signal termination instead of regular exit
      - shutdown instead of infinite respawn loop if we're already past the soft memory limit at startup
      - Added --all option for xmppdaemon... still opens one xmpp connection per site that has xmpp active
      Cache updates:
      - add Cache::increment() method with native support for memcached atomic increment
  23. 05 Feb, 2010 1 commit
  24. 29 Jan, 2010 1 commit
  25. 28 Jan, 2010 3 commits
  26. 25 Jan, 2010 2 commits
    • Evan Prodromou's avatar
      Offload inbox updates to a queue handler to speed up posting online · e26a843c
      Evan Prodromou authored
      Moved much of the writing that happens when posting a notice to a new
      queuehandler, distribqueuehandler. This updates tags, groups, replies
      and inboxes at queue time (or at Web time, if queues are disabled).
      To make this work well, I had to break up the monolithic
      Notice::blowCaches() and make cache blowing happen closer to where
      data is updated.
      Squashed commit of the following:
      commit 5257626c62750ac4ac1db0ce2b71410c5711cfa3
      Author: Evan Prodromou <evan@status.net>
      Date:   Mon Jan 25 14:56:41 2010 -0500
          slightly better handling of blowing tag memory cache
      commit 8a22a3cdf6ec28685da129a0313e7b2a0837c9ef
      Author: Evan Prodromou <evan@status.net>
      Date:   Mon Jan 25 01:42:56 2010 -0500
          change 'distribute' to 'distrib' so not too long for dbqueue
      commit 7a063315b0f7fad27cb6fbd2bdd74e253af83e4f
      Author: Evan Prodromou <evan@status.net>
      Date:   Mon Jan 25 01:39:15 2010 -0500
          change handle_notice() to handle() in distributqueuehandler
      commit 1a39ccd28b9994137d7bfd21bb4f230546938e77
      Author: Evan Prodromou <evan@status.net>
      Date:   Mon Jan 25 16:05:25 2010 -0500
          error with queuemanager
      commit e6b3bb93f305cfd2de71a6340b8aa6fb890049b7
      Author: Evan Prodromou <evan@status.net>
      Date:   Mon Jan 25 01:11:34 2010 -0500
          Blow memcache at different point rather than one big function for Notice class
      commit 94d557cdc016187d1d0647ae1794cd94d6fb8ac8
      Author: Evan Prodromou <evan@status.net>
      Date:   Mon Jan 25 00:48:44 2010 -0500
          Blow memcache at different point rather than one big function for Notice class
      commit 1c781dd08c88a35dafc5c01230b4872fd6b95182
      Author: Evan Prodromou <evan@status.net>
      Date:   Wed Jan 20 08:54:18 2010 -0500
          move broadcasting and distributing to new queuehandler
      commit da3e46d26b84e4f028f34a13fd2ee373e4c1b954
      Author: Evan Prodromou <evan@status.net>
      Date:   Wed Jan 20 08:53:12 2010 -0500
          Move distribution of notices to new distribute queue handler
    • Evan Prodromou's avatar
      Recover caching logic lost in bad merge · e6cf293d
      Evan Prodromou authored
      I made a bad merge on Jan 10th from master to 0.9.x. This lost a number
      of memcache enhancements made on the 0.9.x branch. I've been able to
      re-do the manual merge, and this represents the changes. Most of them
      are related to caching on insert.
  27. 22 Jan, 2010 1 commit
  28. 21 Jan, 2010 1 commit