Skip to content
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

Too many workflows at temporal #2376

Open
nhdms opened this issue Dec 19, 2024 · 7 comments
Open

Too many workflows at temporal #2376

nhdms opened this issue Dec 19, 2024 · 7 comments
Assignees

Comments

@nhdms
Copy link

nhdms commented Dec 19, 2024

Hi team,
I've been running peerdb for about half a day, but the number of "Continue as New" workflows keeps increasing continuously. Is there any problem here?
Thanks
image

@iamKunalGupta
Copy link
Member

Can you let us know the PeerDB version? cc @heavycrystal

@heavycrystal
Copy link
Contributor

what is your Sync Interval? You can find it in the status page of the mirror

@nhdms
Copy link
Author

nhdms commented Dec 19, 2024

I'm using the default interval (60s) and latest version of peerdb (0.20.2) @heavycrystal @iamKunalGupta
Thanks

@heavycrystal
Copy link
Contributor

A workflow should ContinueAsNew every interval, which is 60 seconds so this seems reasonable.
If you're concerned about too many workflows you can increase the interval of the mirror. We're also working on reducing the number of workflows needed overall and you should see improvements in upcoming releases

@nhdms
Copy link
Author

nhdms commented Dec 20, 2024

@heavycrystal Thank you, after 1 day, my Mirror (postgresql to clickhouse) is stuck here.
I tried to decrease max_batch_size to 100000 and increase the timeout to 0, but nothing changed

image image image

@nhdms
Copy link
Author

nhdms commented Dec 20, 2024

image And the lag size keeps increasing, and it causes all other mirrors to get stuck :'(

@heavycrystal
Copy link
Contributor

logs will be needed from the PeerDB containers to help debug this, it'll be easier to join our Slack for the same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants