You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yifan Cai (Jira)" <ji...@apache.org> on 2020/04/28 21:58:00 UTC

[jira] [Comment Edited] (CASSANDRA-15763) Tunable RangeTombstoneList initial size and resize factor

    [ https://issues.apache.org/jira/browse/CASSANDRA-15763?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17094881#comment-17094881 ] 

Yifan Cai edited comment on CASSANDRA-15763 at 4/28/20, 9:57 PM:
-----------------------------------------------------------------

PR: [https://github.com/apache/cassandra/pull/573]
Code: [https://github.com/yifan-c/cassandra/tree/CASSANDRA-15763-tunable-rtl-init-size-n-factor]
Test: [https://app.circleci.com/pipelines/github/yifan-c/cassandra/60/workflows/3de6fbe8-81e8-4f33-abdd-da72adf4893b]

_Edit: test passed_

The PR added {{initial_range_tombstone_list_allocation_size}} and {{range_tombstone_list_growth_factor}} into config. They are configurable via JMX.
The default values of the 2 new properties are kept the same with the existing hard-coded ones. 
- {{initial_range_tombstone_list_allocation_size}} : 1
- {{range_tombstone_list_growth_factor}}: 1.5


was (Author: yifanc):
PR: [https://github.com/apache/cassandra/pull/573]
Code: [https://github.com/yifan-c/cassandra/tree/CASSANDRA-15763-tunable-rtl-init-size-n-factor]
Test: [https://app.circleci.com/pipelines/github/yifan-c/cassandra/60/workflows/3de6fbe8-81e8-4f33-abdd-da72adf4893b]

The PR added {{initial_range_tombstone_list_allocation_size}} and {{range_tombstone_list_growth_factor}} into config. They are configurable via JMX.
The default values of the 2 new properties are kept the same with the existing hard-coded ones. 
- {{initial_range_tombstone_list_allocation_size}} : 1
- {{range_tombstone_list_growth_factor}}: 1.5

> Tunable RangeTombstoneList initial size and resize factor
> ---------------------------------------------------------
>
>                 Key: CASSANDRA-15763
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-15763
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: Local/Config
>            Reporter: Yifan Cai
>            Assignee: Yifan Cai
>            Priority: Normal
>
> Cassandra allocates a backing array with a fixed size of one when creating a new RangeTombstoneList object. The resize factor is fixed to 1.5.
> The initial size and resize factor could be made tunable so it could reduce cost in some cases. 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org