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

Can we rollback from randomUID to incremental UID #1406

Open
dilipdevaraj-sfdc opened this issue Nov 8, 2018 · 1 comment
Open

Can we rollback from randomUID to incremental UID #1406

dilipdevaraj-sfdc opened this issue Nov 8, 2018 · 1 comment

Comments

@dilipdevaraj-sfdc
Copy link

Hi TSDB Community,

  • We are using OpenTSDB with incremental UID right now, and are planning to switch to metrics randomUID to reduce HBase hotspotting. Is this what the community suggests ?
    -http://opentsdb.net/docs/build/html/user_guide/writing.html#random-metric-uid-assignment
    (The last line reads "UID change is not backwards compatible so you have to create a new table and migrate your old data.")
    It was not clear if we can rollback from randomUID to incremental UID without any migration of tsdb table data ?
  • Has anyone experienced any issues/performance problems when using randomUID since it retries max 10 times when there is a collision, before failing.

Thanks.

@manolama
Copy link
Member

While you can rollback to the incremental version it will fail when a UID has already been allocated. We'd need to add a bit of code to retry the incrementals as well. Wouldn't be hard to do though.

For the performance problems, with a fairly large space you shouldn't see too many collisions and they should be resolved pretty quickly.

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

No branches or pull requests

2 participants