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

The sink is temporarily unavailable but wants to keep the rules running to cache the data when ekuiper restart #3270

Open
lindayou opened this issue Oct 3, 2024 · 3 comments

Comments

@lindayou
Copy link

lindayou commented Oct 3, 2024

Please describe your problem in detail, if necessary, you can upload the log file through the attachment:
I encountered a situation. When my device restarted, ekuiper also restarted. However, the emqx in the sink defined by the rule could not be connected temporarily. This is the so-called weak network or no network situation. At this time, the rule is in a stopped state. At this time, the function of caching data without network is no longer possible. How can I solve this problem? That is to say, I want to keep the rules running instead of suspending them when emqx in the sink is temporarily unable to connect after restarting ekuiper. status to collect offline data. Thanks

@ngjaying
Copy link
Collaborator

ngjaying commented Oct 4, 2024

Please try the latest v2.x beta version. The rule won't stop when connection fails at the beginning. It will reconnect automatically.

@lindayou
Copy link
Author

lindayou commented Oct 8, 2024

Thank you for your answer。If the reconnection fails, is this rule still running to ensure that unsent data can be cached locally?

@ngjaying
Copy link
Collaborator

ngjaying commented Oct 8, 2024

The rule will keep running but the data will be dropped if sink caching is not enabled. Check https://ekuiper.org/docs/en/latest/guide/sinks/overview.html#caching

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

2 participants