-
-
Notifications
You must be signed in to change notification settings - Fork 409
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
feat(driver,jobs
): local persistent driver based on the boltdb
, fix(worker_watcher
): bug with failed worker while TTL-ed
#771
Conversation
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Codecov Report
@@ Coverage Diff @@
## master #771 +/- ##
==========================================
- Coverage 67.91% 67.80% -0.12%
==========================================
Files 128 132 +4
Lines 10548 11047 +499
==========================================
+ Hits 7164 7490 +326
- Misses 2765 2900 +135
- Partials 619 657 +38
Continue to review full report at Codecov.
|
boltdb
boltdb
, fix(worker_watcher): bug with failed worker while TTL-ed
Fix #771, add tests. Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
boltdb
, fix(worker_watcher): bug with failed worker while TTL-eddriver,jobs
): local persistent driver based on the boltdb
, fix(worker_watcher
): bug with failed worker while TTL-ed
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Update receiver in the amqp driver Add simple (initial) boltdb tests Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Fix issue with Stop in the jobs plugin which didn't destroy the pool. Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Fix bug with survived workers in the debug mode Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Hi, could you elaborate a bit on these limitations of the boltdb driver:
|
Hey @steffendietz . Local driver based on the key-value DB called |
Reason for This PR
closes #770
closes #772
Description of Changes
THIS DRIVER IS FOR THE LOCAL DEVELOPMENT OR FOR THE LOW RPC TASKS (1-5 per second)
boltdb
persistent storage.KV
storage due to theboltdb
limitation. File can't be opened from the different threads/processes.jobs
drivers.worker_watcher
. If RR can't RE-allocate workers (after initial success allocation) for theallocate_timeout
time, it will show the error. If there are no workers at all, RR panics.prefetch
, for the boltdb means, that no more thanprefetch
amount of jobs will be read from the DB at the same time.Config sample:
Arch:
License Acceptance
By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.
PR Checklist
[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]
git commit -s
).CHANGELOG.md
.