-
Notifications
You must be signed in to change notification settings - Fork 89
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
Scd subscriptions ttl #1134
base: master
Are you sure you want to change the base?
Scd subscriptions ttl #1134
Conversation
Hi @callumdmay, thank you for the contribution. v0.19.0 is going to introduce a command to evict expired subscriptions. See https://github.com/interuss/dss/blob/master/cmds/db-manager/cleanup/README.md for instructions and #1116 for the implementation. In the discussion #1074 leading to this feature, we have left the approach to scheduling open. I just created this issue to make a decision #1135 . |
Hey @barroco, what's the advantage of using the command over enforcing a ttl? That would do the cleanup automatically. Happy to adjust the ttl window as well if we would like to keep around expired subscriptions for longer. |
Hi @callumdmay, thank you for your patience. we discussed during yesterday's contributors sync this topic and we would welcome this contribution in addition to what has been done in #1116. We just have concerns on the following points:
The key point at this stage is that Yugabyte (YSQL mode) does not support the TTL feature. |
There has been prior effort in addressing dangling subscriptions in #1109 and #1088, however in our load testing efforts on v0.18.0 we have observed that some expired subscriptions are not being cleaned up. The root cause of this should be identified eventually, but as a mitigation we can add a row-level ttl to the table to prevent unbounded table growth.