[ 
https://issues.apache.org/jira/browse/CASSANDRA-21517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Michael Semb Wever updated CASSANDRA-21517:
-------------------------------------------
    Description: 
Guardrail values of -1 and 0 both mean unlimited.

https://github.com/apache/cassandra/blob/cassandra-6.0/src/java/org/apache/cassandra/db/guardrails/MaxThreshold.java#L60

This comes from CASSANDRA-17146 and appears to have been an oversight.

This creates difficulties when you need finer control of the guardrails, like 
not being able to configure "more than 0 is a warning" or "more than 0 is a 
failure".

For example, a typically recommended approach to secondary indexes would be as
{code}
# disable secondary_indexes
secondary_indexes_total_fail_threshold = 0
# disable sasi
sasi_indexes_total_fail_threshold: 0
# unlimited sai, but max ten per table
sai_indexes_per_table_fail_threshold: 10
sai_indexes_total_fail_threshold: -1
{code}

  was:
Guardrail values of -1 and 0 both mean unlimited.

https://github.com/apache/cassandra/blob/cassandra-6.0/src/java/org/apache/cassandra/db/guardrails/MaxThreshold.java#L60

This comes from CASSANDRA-17212 and appears to have been an oversight.

This creates difficulties when you need finer control of the guardrails, like 
not being able to configure "more than 0 is a warning" or "more than 0 is a 
failure".

For example, a typically recommended approach to secondary indexes would be as
{code}
# disable secondary_indexes
secondary_indexes_total_fail_threshold = 0
# disable sasi
sasi_indexes_total_fail_threshold: 0
# unlimited sai, but max ten per table
sai_indexes_per_table_fail_threshold: 10
sai_indexes_total_fail_threshold: -1
{code}


> Guardrail values of zero to mean literally zero (i.e. disabled)
> ---------------------------------------------------------------
>
>                 Key: CASSANDRA-21517
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-21517
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: Feature/Guardrails
>            Reporter: Michael Semb Wever
>            Assignee: Michael Semb Wever
>            Priority: Normal
>
> Guardrail values of -1 and 0 both mean unlimited.
> https://github.com/apache/cassandra/blob/cassandra-6.0/src/java/org/apache/cassandra/db/guardrails/MaxThreshold.java#L60
> This comes from CASSANDRA-17146 and appears to have been an oversight.
> This creates difficulties when you need finer control of the guardrails, like 
> not being able to configure "more than 0 is a warning" or "more than 0 is a 
> failure".
> For example, a typically recommended approach to secondary indexes would be as
> {code}
> # disable secondary_indexes
> secondary_indexes_total_fail_threshold = 0
> # disable sasi
> sasi_indexes_total_fail_threshold: 0
> # unlimited sai, but max ten per table
> sai_indexes_per_table_fail_threshold: 10
> sai_indexes_total_fail_threshold: -1
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to