1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redis view counters 1.1.3

Use redis for view counters rather than MySQL

  1. Xon

    Xon Well-Known Member

    Xon submitted a new resource:

    Redis view counters - Use redis for view counters rather than MySQL

    Read more about this resource...
     
  2. Varma

    Varma Member

    I think Redis need to be installed on the server to use this addon ?
     
  3. Strues

    Strues Member

    Certainly does.
     
    Last edited: Jul 3, 2015
  4. Xon

    Xon Well-Known Member

    Correct. Hence why Redis was listed as an additional requirement.

    What sort of problems? I've got this running on Spacebattles and Sufficient Velocity just fine, and the hard part is configuring your config.php file as required for the redis-cache addon.
     
  5. Varma

    Varma Member

    Is there any drastic improvements using it?

    As i may need to install that module on server...
     
  6. Xon

    Xon Well-Known Member

    It is a fairly minor improvement. I have Redis configured to periodically save content, and on restarting it will restore the contents on start.

    Compared to an in-memory table in MySQL which is totally lost on restart, and introduces memory contention for other resources. XF inserts a row for each page view per thread, where as this addon increments a counter per thread.

    If you have a distributed MySQL instance, this means you don't need to replicate a MEMORY table for what is used to collect page view counters.
     
  7. Strues

    Strues Member

    You're absolutely right. Editing my original comment as it was user error.
     
    Xon likes this.
  8. Xon

    Xon Well-Known Member

    eva2000 likes this.
  9. eva2000

    eva2000 Well-Known Member

    @Xon nice gives me a good excuse to play with redis more as I already use it for queued tracking in Piwik Web Analytics.

    For this addon which redis database does it default to ? is there an option to specify which redis database number to use if i want to keep things separate ?
     
    Last edited: Jul 6, 2015
    Xon likes this.
  10. Xon

    Xon Well-Known Member

    :)

    Just the default database, #0.
     
    eva2000 likes this.
  11. Xon

    Xon Well-Known Member

    Xon updated Redis view counters with a new update entry:

    Adjust flushing rate

    Read the rest of this update entry...
     
  12. Xon

    Xon Well-Known Member

  13. Xon

    Xon Well-Known Member

  14. Xon

    Xon Well-Known Member

  15. eva2000

    eva2000 Well-Known Member

    RoldanLT and Xon like this.
  16. RoldanLT

    RoldanLT Well-Known Member

    And it is "appendonly yes" ?
     
  17. Xon

    Xon Well-Known Member

    Yes. I also have fsync set to explicitly off (so the OS will do it eventually). The idea is for low overhead persistence of cached data but as the data can be easily regenerated, I don't mind if it is lost.
     
  18. Xon

    Xon Well-Known Member

    RoldanLT likes this.
  19. RoldanLT

    RoldanLT Well-Known Member

    Where can I enable this?
     
    Last edited: Oct 26, 2015
  20. Mouth

    Mouth Well-Known Member

Share This Page