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

Add support for TimeWindow Compaction Strategy #1432

Closed
hasmikhail opened this Issue Jul 6, 2016 · 4 comments

Comments

Projects
None yet
6 participants
@hasmikhail

hasmikhail commented Jul 6, 2016

extracted from PR #511

"DTCS will be deprecated, suggest support TWCS , see https://issues.apache.org/jira/browse/CASSANDRA-9666"

cassandra implementation jeffjirsa/cassandra@f966b5b

@tzach tzach added this to the Yellowfin milestone Aug 7, 2016

@dorlaor dorlaor modified the milestones: 1.5, Yellowfin Sep 7, 2016

@slivne slivne modified the milestones: 1.6, 1.5 Sep 27, 2016

@slivne slivne modified the milestones: 1.6, 1.8 Nov 27, 2016

raphaelsc added a commit to raphaelsc/scylla that referenced this issue Jul 17, 2017

sstables: implement time window compaction strategy
For more details, https://issues.apache.org/jira/browse/CASSANDRA-9666

Fixes #1432.

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>

raphaelsc added a commit to raphaelsc/scylla that referenced this issue Jul 19, 2017

sstables: implement time window compaction strategy
For more details, https://issues.apache.org/jira/browse/CASSANDRA-9666

Fixes #1432.

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>

@avikivity avikivity closed this in 206d30c Jul 19, 2017

avikivity added a commit that referenced this issue Jul 19, 2017

Merge "Time window compaction strategy support" from Raphael
"Time window strategy was introduced to address several limitations of
date tiered strategy. In addition, its options are much easier to reason
about, basically just window size and window unit.
TWCS will work to keep only one sstable in each window. So the only real
optimization needed is to align partition key to the window.
Size tiered strategy is used to reduce write amplification when compacting
the incoming window.

For more details: https://issues.apache.org/jira/browse/CASSANDRA-9666

Fixes #1432."

* 'twcs_v2' of github.com:raphaelsc/scylla:
  tests: add tests for time window compaction strategy
  compaction: wire up time window compaction strategy
  compaction/twcs: override default values with options in schema
  sstables: implement time window compaction strategy
  sstables: import TimeWindowCompactionStrategy.java
@qrpike

This comment has been minimized.

Show comment
Hide comment
@qrpike

qrpike Nov 28, 2017

@hasmikhail Are there any updates on this? I am using scylla 2.0.1 and when I try to alter my table to use TWCS I get that the strategy isnt found.

eg:

ALTER TABLE prices WITH compaction = {
	'compaction_window_size': '30', 
	'compaction_window_unit': 'DAYS', 
	'class': 'TimeWindowCompactionStrategy'};

I get: ConfigurationException: Unable to find compaction strategy class 'TimeWindowCompactionStrategy'

qrpike commented Nov 28, 2017

@hasmikhail Are there any updates on this? I am using scylla 2.0.1 and when I try to alter my table to use TWCS I get that the strategy isnt found.

eg:

ALTER TABLE prices WITH compaction = {
	'compaction_window_size': '30', 
	'compaction_window_unit': 'DAYS', 
	'class': 'TimeWindowCompactionStrategy'};

I get: ConfigurationException: Unable to find compaction strategy class 'TimeWindowCompactionStrategy'

@slivne

This comment has been minimized.

Show comment
Hide comment
@slivne

slivne Nov 28, 2017

Contributor
Contributor

slivne commented Nov 28, 2017

@raphaelsc

This comment has been minimized.

Show comment
Hide comment
@raphaelsc

raphaelsc Nov 28, 2017

Contributor
Contributor

raphaelsc commented Nov 28, 2017

@tzach tzach modified the milestones: 2.0, 2.1 Nov 28, 2017

@qrpike

This comment has been minimized.

Show comment
Hide comment
@qrpike

qrpike Nov 29, 2017

@slivne Any rough estimates on 2.1 release date?

Thanks for the great work on this project!

qrpike commented Nov 29, 2017

@slivne Any rough estimates on 2.1 release date?

Thanks for the great work on this project!

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