Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kolyasya/meteor-oplog-keep-awake
https://github.com/kolyasya/meteor-oplog-keep-awake
Last synced: 3 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/kolyasya/meteor-oplog-keep-awake
- Owner: kolyasya
- License: mit
- Created: 2023-04-20T12:47:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-21T12:45:40.000Z (25 days ago)
- Last Synced: 2024-10-21T19:35:50.051Z (24 days ago)
- Language: JavaScript
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# kolyasya:oplog-keep-awake — Keeps Mongo Oplog awake by upserting values on interval
## Depends on [meteor-synced-cron](https://github.com/percolatestudio/meteor-synced-cron)
To make it work properly you need to use `meteor-synced-cron` in your project
## Installation:
```
meteor add kolyasya:oplog-keep-awake
```## Package settings:
```js
{
// ...regular Meteor settings.json file...packages: {
// ...other packages settings...,
"kolyasya:oplog-keep-awake": {
// Mongo collection name to store single entry
keepAwakeCollectionName: 'keepAwake',// Interval in seconds when the entry will be updated
keepAwakeUpsertIntervalSeconds: 120,
}
}
}
```## Usage example:
Check `./example` directory
```js
import initOplogKeepAwake from 'meteor/kolyasya:oplog-keep-awake';Meteor.startup(() => {
initOplogKeepAwake();SyncedCron.start();
});
```