Code Monkey home page Code Monkey logo

Comments (8)

dunglas avatar dunglas commented on May 19, 2024 1

Currently this file is never dropped/cleaned up (it stores the list of updates to allow retrieving old ones).
But indeed we could provide an expiration mechanism for stored events to prevent this file to grow.

from mercure.

balabis avatar balabis commented on May 19, 2024 1

Hey @dunglas, is this expiration mechanism implemented in some way now? We are facing the same issue, when the file is constantly growing and have to manually empty it.

from mercure.

dunglas avatar dunglas commented on May 19, 2024 1

100 events.

from mercure.

maxgu avatar maxgu commented on May 19, 2024

I have some problem now - Mercure runs on small droplet - 25Gb and for a week it eat all disk space and broke.
How I can trunk DB? Or (best solution) clear old messages, for example - clear all, witch older 3 days?

from mercure.

maxgu avatar maxgu commented on May 19, 2024

@balabis I found solution - https://mercure.rocks/docs/hub/config - Bolt Adapter section

from mercure.

melroy89 avatar melroy89 commented on May 19, 2024

Sorry the documentation of Mercure is once again not clear enough. What is the unit of size? bolt:///var/run/mercure.db?size=100

Eg. What does 100 means? 100 bytes? 100 kB? 100MB? 100GB? Looking at Go code in the repo, the size might be a size of database records? Not sure.

from mercure.

melroy89 avatar melroy89 commented on May 19, 2024

100 events.

Thanks! Maybe document this :)

from mercure.

melroy89 avatar melroy89 commented on May 19, 2024

Ps. so now the mercure.db I got has a size of 3.8GB. So let's say I set a limit of a thousand (1000) events in my case, what size would this result into? Like 10MB? or .. It's a bit of a gut feeling you know what I mean, what I do know is that server owners don't want 5, 10, or 15GB mercure database files :).

from mercure.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.