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

[Enhancement]: Attach space dimension to tablespace #4055

Open
glep207 opened this issue Feb 4, 2022 · 0 comments
Open

[Enhancement]: Attach space dimension to tablespace #4055

glep207 opened this issue Feb 4, 2022 · 0 comments
Labels
enhancement An enhancement to an existing feature for functionality

Comments

@glep207
Copy link

glep207 commented Feb 4, 2022

What type of enhancement is this?

Other

What subsystems and features will be improved?

Partitioning

What does the enhancement do?

A single hypertable receives different data with very different volumes and retention requirements. The application writing to Timescale does not allow spreading the data across several hypertables (which would be another solution). Disk space is limited.
I would like to define space dimensions with a different retention period, with the fast-growing data (with a shorter retention) being assigned to a specific tablespace, which will be located on tmpfs to relieve the main disk. The risk of data loss by placing the tablespace on tmpfs is accepted - only a short time span would be affected. The data would be aggregated with a continuous aggregate before the chunks are dropped.

The problem is that the current partitioning scheme distributes chunks to the available tablespaces randomly - chunks from a given partition are allocated preferentially to the tablespace, but one cannot specify that tablespace.

The proposal is to add an argument "tablespace" to add_dimension(), so that all chunks for that dimension will be placed on the specified tablespace.

The feature is probably relevant for single-node deployments only.

Related issues (links to follow):

Implementation challenges

No response

@glep207 glep207 added the enhancement An enhancement to an existing feature for functionality label Feb 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An enhancement to an existing feature for functionality
Projects
None yet
Development

No branches or pull requests

1 participant