Comments (8)
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.
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.
100 events.
from mercure.
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.
@balabis I found solution - https://mercure.rocks/docs/hub/config - Bolt Adapter section
from mercure.
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.
100 events.
Thanks! Maybe document this :)
from mercure.
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)
- Change to `mercure/caddy` breaks older cached builds HOT 1
- Mercure.db keep increasing like crazy HOT 3
- Allow debug UI to open without tailing / in URL HOT 2
- feat: Add a health check endpoint HOT 3
- ERR_HTTP2_PROTOCOL_ERROR, reducing write_timeout doesn't work HOT 2
- feat: Support JWKS for JWT validation HOT 2
- Mercure call in browser is still pending HOT 7
- Create a mercure-server command HOT 1
- Issue on multiple connections with proxy Apache HOT 4
- Why can i subscribe to topics which are not specified in the JWT token ? HOT 2
- Filtering subscriptions by topic doesn't work HOT 1
- Troubleshooting Mercure deployment on Digital Ocean APP Platform
- Mercure inside docker and behind server host Nginx proxy HOT 1
- Using NATS as backend for Mercure API/Protocol? HOT 6
- Switch from golang-jwt/jwt to go-jose/go-jose HOT 3
- Help for configuring Mercure behind nginx as proxy-server HOT 6
- I'm trying to get mercure to work on a Plesk server, but it's unreachable HOT 1
- Upstream Error when Using Mercure with Nginx Ingress on Kubernetes
- Strugling to format http.log.access.log0 logs to full json HOT 2
- CORS (403 Errors) when OPTIONS requests sent
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mercure.