• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

Using redis as a cache

Scheduled Pinned Locked Moved Feature Requests
redismongodbnginxcache
2 Posts 2 Posters 557 Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BuZz
    wrote on last edited by BuZz
    #1

    I run a forum with currently 4 nodebb processes which are proxied to from nginx, with a mongodb database backend and redis enabled (which from my understanding is used for sessions only in this configuration).

    In this configuration every nodebb process eats a fair amount of memory (to note it was reduced significantly with one of the recent versions. 1.15.x I think - I did see some cache related changes).

    Please correct me if I'm wrong, but is each nodebb process in this configuration handling its own post cache etc?

    It would seem like a good idea to be able to use redis as a cache backend on top of mongodb - but perhaps I am way off how it works. My knowledge of the codebase is very limited.

    [Edit] I forgot to say, thanks very much for your continued work on this excellent forum software. Is it possible to make a donation as I've been running it for 4 years for our project and am not on a paid plan etc.

    1 Reply Last reply
    0
  • barisB Offline
    barisB Offline
    <baris> NodeBB
    wrote on last edited by
    #2

    In your setup redis will be used for sessions, pubsub and socket.io will use it to pass around messages.

    Each nodejs process has it's own post cache, you can see the caches at /admin/advanced/cache.

    Redis pubsub is also used to clear cache on the other nodejs process when it is cleared on one nodejs process. For example when a post is edited it's cache will be cleared on the other nodes.

    1 Reply Last reply
    1

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development