-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, what is the simplest way to make messages can be restored when server cut off? #369
Comments
@luohao123 Since most of our developers lack experience using BadgerDB as persistent data in a production environment, take a look at the configuration modifications and the addition of garbage collection described in #370 to see if they would be helpful for your use of BadgerDB. |
…dgerDB garbage collection.
* For issues #370, #369, and #363, add BadgerDB garbage collection. * Add default configuration for defaultGcInterval. * Solve DATA RACE. * Place Badger's configuration in main.go for users to adjust as needed. * Add TestGcLoop() for coverage. * Modify GcInterval to shorten test time. * Add the GcDiscardRatio option for the Badger hook, and include more detailed comments in the example. --------- Co-authored-by: JB <28275108+mochi-co@users.noreply.github.com>
@luohao123 Could you please check if version v2.6.0 resolves this issue? |
It's not work , dude. |
@luohao123 The latest progress is discussed here: #375 |
@luohao123 Could this issue be closed? |
The issue has been resolved, and due to the lack of feedback over an extended period, we are closing this issue. If there are any further problems, please reopen it. |
Currently the messages that not sent to client yet will be wiped out when server down.
I previous using badge, but that very terriable, causing about 5GB trash don't know what's file to my server, almost make my server bumm out.
Can just make offline message restore be an default behavior? Really need it!
The text was updated successfully, but these errors were encountered: