You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
I've tried to run a simple flow that recursively counts from 0 to 100. It ran for ~30 seconds and key-value store took up 150Mb of disk space. I guess this is not something expected to happen.
Sorry for taking so long, but I finally had the time to check this. Unfortunately zio-flow is not optimized for performance at all currently - most of the work was put into making a correct durable executor and trying to make the DSL as ergonomic as possible.
That said the above options, especially PersisterConfig.SnapshotsOnly can be tweaked to achieve much better results. Snapshots only was used during the development but never was intended to be the persister used in real world scenarios. You can switch it to PersisterConfig.PeriodicSnapshots(None, None) to have journal only, and configure it's two parameters to make a snapshot after every N operation or after some elapsed time. The snapshots are big (containing the full stack of the executor) and they should only be used to speed up recovery time from the journal in case of long running flows.
You can further reduce the storage size by using the built-in protobuf mode instead of json.
With journal-only and protobuf the above example runs in around 8 seconds and takes ~2.5M storage.
For better results we would need general optimisations in the executor, there is no specific bug to fix related to this issue.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hi.
I've tried to run a simple flow that recursively counts from 0 to 100. It ran for ~30 seconds and key-value store took up 150Mb of disk space. I guess this is not something expected to happen.
The text was updated successfully, but these errors were encountered: