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

Add support for TimeWindow Compaction Strategy #1432

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

Add support for TimeWindow Compaction Strategy #1432

hasmikhail opened this issue Jul 6, 2016 · 4 comments

Comments

@hasmikhail
Copy link

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
For more details, https://issues.apache.org/jira/browse/CASSANDRA-9666

Fixes scylladb#1432.

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
raphaelsc added a commit to raphaelsc/scylla that referenced this issue Jul 19, 2017
For more details, https://issues.apache.org/jira/browse/CASSANDRA-9666

Fixes scylladb#1432.

Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com>
avikivity added a commit that referenced this issue Jul 19, 2017
"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
Copy link

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
Copy link
Contributor

slivne commented Nov 28, 2017 via email

@raphaelsc
Copy link
Member

raphaelsc commented Nov 28, 2017 via email

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

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
Projects
None yet
Development

No branches or pull requests

6 participants