Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
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
Brand Logo

agnos.is Forums

  1. Home
  2. Tech
  3. Redis Maintenance

Redis Maintenance

Scheduled Pinned Locked Moved Tech
5 Posts 4 Posters 64 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.
  • ? Offline
    ? Offline
    Guest
    wrote on last edited by
    #1

    Hello,

    Have a 7+ year old install of nodebb, running on redis - the redis database size is 50gb+..

    Does anyone have any reccomendations on cleaning up orphan/old/data - for instance, i notice we have a lot of ip:::uid keys, - some records being 15mb+ which i assume are not all needed? Older users also seem to have a bunch of IP's in their uid::ip keys.

    Any advice greatly appreciated, am trying to shave as much space as possible!

    baris@community.nodebb.orgB 1 Reply Last reply
    0
    • ? Guest

      Hello,

      Have a 7+ year old install of nodebb, running on redis - the redis database size is 50gb+..

      Does anyone have any reccomendations on cleaning up orphan/old/data - for instance, i notice we have a lot of ip:::uid keys, - some records being 15mb+ which i assume are not all needed? Older users also seem to have a bunch of IP's in their uid::ip keys.

      Any advice greatly appreciated, am trying to shave as much space as possible!

      baris@community.nodebb.orgB This user is from outside of this forum
      baris@community.nodebb.orgB This user is from outside of this forum
      [email protected]
      wrote on last edited by
      #2

      You can delete all they keys that start with analytics, ip:recent and errors. That should save you alot of space. Can also write a script to delete users who haven't logged on in x years and haven't posted anything.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        Guest
        wrote on last edited by
        #3

        hi - ran those, it cleared up a little bit of space, nothing significant.
        What data needs to be kept in ip:* ? It appears i have... a few records here (an obscene amount)

        1 Reply Last reply
        0
        • julian@community.nodebb.orgJ This user is from outside of this forum
          julian@community.nodebb.orgJ This user is from outside of this forum
          [email protected]
          wrote on last edited by
          #4

          @smyther42 It's a mapping of ip addresses to user ids. You can safely delete those too.

          1 Reply Last reply
          0
          • dk@community.nodebb.orgD This user is from outside of this forum
            dk@community.nodebb.orgD This user is from outside of this forum
            [email protected]
            wrote on last edited by
            #5

            Are you using redis as presist database? You'd better choose to migrate to mongodb. It's not a good idea to store persistent data in redis. It will eat up a lot of memory. I once asked for support to help me migrate my data and paid a fee for it, but I believe it's worth it.

            1 Reply Last reply
            1
            0
            • System shared this topic on
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups