dkron icon indicating copy to clipboard operation
dkron copied to clipboard

Replace boltdb with fast-store

Open vcastellm opened this issue 3 years ago • 4 comments

Replacing BoltDB with fast-store increased the speed of the Raft log operations enormously, allowing the user to choose the degree of duration in disk.

Under my tests, with the same degree of duration as boltdb (High) the speed is x2 but using the Mid duration, the default that sync to disk every second, the speed increases tenfold.

Considering that Dkron is not the source of truth for the data it stores, the cost-benefit of using less durability is high.

Note: This will be included in the upcoming v4.x

vcastellm avatar Jun 06 '21 17:06 vcastellm

Yes @yvanoers this is a breaking change, this is why this will be published in 4.x, you can not upgrade in place but it only requires of a rolling deploy.

vcastellm avatar Jun 08 '21 07:06 vcastellm

Yes @yvanoers this is a breaking change, this is why this will be published in 4.x, you can not upgrade in place but it only requires of a rolling deploy.

Ok; is there, or will there be documentation on how to do that? I'm unaware of any.

yvanoers avatar Jun 08 '21 22:06 yvanoers

@yvanoers doc for upgrade strategies here https://dkron.io/usage/upgrade/#rolling-upgrade

vcastellm avatar Jun 09 '21 08:06 vcastellm

Ah yes, great! And here's a PR to improve some of the text: #980 :)

yvanoers avatar Jun 09 '21 19:06 yvanoers

Superseded by #1172

vcastellm avatar Sep 18 '22 16:09 vcastellm