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

OSS 2.0 GA #19114

Closed
8 tasks done
stuartcarnie opened this issue Jul 28, 2020 · 1 comment
Closed
8 tasks done

OSS 2.0 GA #19114

stuartcarnie opened this issue Jul 28, 2020 · 1 comment
Assignees
Labels
area/2.x OSS 2.0 related issues and PRs epic team/compute team/query

Comments

@stuartcarnie
Copy link
Contributor

stuartcarnie commented Jul 28, 2020

Step 1: Forward port 1.x tsdb, Flux

Step 1a: Initial port 1.x tsdb, Flux

  • Est: 3-4 weeks
  • Current 1.x Flux (0.66.1)
  • Includes replacement abstractions to support storage read / write (e.g. MetaClient)
  • V2 reads and writes should work

Success

  • V2 Reads work
  • V2 Writes work
  • Create and delete buckets work
  • Onboarding / setup works

Step 2: Parallel tracks

These can run in parallel

2a: 1.x Compatibility

Compute Team

Success

  • V1 /query (InfluxQL) works
  • V2 /write works

2b: Flux Upgrade

Flux Team

Success

  • Running latest Flux
  • Build steps socialized / updated

2c: Migration Tooling / Retention Policy / Backup Restore

Storage Team, Compute Team

Other work:

  • Unknown unknowns that won't reveal themselves until we're in the trenches

Design Discussions

On Disk Structure

Every bucket will have its own database and retention policy. To state it another way, every database will have exactly one retention policy, which is the bucket.

Creating two buckets, bucket-a and bucket-b would result in the following:

data/
  bucket-a/
    autogen/
  bucket-b/
    autogen/

NOTE: The bucket metadata will be separate from the TSM 1 metadata (database name, retention policy name, shards, etc). As is with 1.x, the database name and retention policy names are immutable. Other metadata, such as shard duration may be exposed via subcommands of the influx CLI tool.

Migration

Given the above property, if the user has the following existing structure:

data/
    my-db-1/
        default/
        1year
    my-db-2/
        autogen/
        1year

The resulting layout on disk will be:

data/
    my-db-1-default/
        autogen/
    my-db-1-1year/
        autogen/
    my-db-2-autogen/
        autogen/
    my-db-2-1year/
        autogen/
@stuartcarnie
Copy link
Contributor Author

OSS 2.0 is generally available. See the official release announcement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/2.x OSS 2.0 related issues and PRs epic team/compute team/query
Projects
None yet
Development

No branches or pull requests

3 participants