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

Caleb Rackliffe commented on CASSANDRA-17188:
---------------------------------------------

bq. I'd be happy waiting for CASSANDRA-15234 if we think that the rebase it's 
easier. In the end we don't even have a reviewer for this ticket yet, 
CASSANDRA-15234 is almost ready, and I'm already waiting for that ticket before 
start working on other guardrails that will require measurement units.

It should be soon. [~dcapwell] and I are done with our reviews, and most of the 
conversations from it have been resolved.

[~benedict] Do you think we should freeze all ongoing guardrails work on the 
entire YAML restructuring that you and I have proposed 
[here|https://github.com/maedhroz/cassandra/commit/49e83c70eba3357978d1081ecf500bbbdee960d8]
 and 
[here|https://github.com/belliottsmith/cassandra/commits/CASSANDRA-15234-grouping-ideas],
 or just the more specific conversation around how the "limits" or "guardrails" 
section in the config should look? As long as we have basic agreement that 
there will be such a section, the scope of the conversation seems manageable 
and something we can solve by the time we release 4.1. It's literally this in 
trunk right now:

{noformat}
# Guardrails settings.
# guardrails:
# Whether guardrails are enabled or not. Guardrails are disabled by default.
# enabled: false
# Guardrail to warn or abort when creating more user keyspaces than threshold.
# The two thresholds default to -1 to disable.
#     keyspaces:
#         warn_threshold: -1
#         abort_threshold: -1
# Guardrail to warn or abort when creating more user tables than threshold.
# The two thresholds default to -1 to disable.
#     tables:
#         warn_threshold: -1
#         abort_threshold: -1
# Guardrail to warn or abort when creating/altering a table with more columns 
per table than threshold.
# The two thresholds default to -1 to disable.
#     columns_per_table:
#         warn_threshold: -1
#         abort_threshold: -1
# Guardrail to warn or abort when creating more secondary indexes per table 
than threshold.
# The two thresholds default to -1 to disable.
#     secondary_indexes_per_table:
#         warn_threshold: -1
#         abort_threshold: -1
# Guardrail to warn or abort when creating more materialized views per table 
than threshold.
# The two thresholds default to -1 to disable.
#     materialized_views_per_table:
#         warn_threshold: -1
#         abort_threshold: -1
# Guardrail to ignore or reject properties when creating tables. By default all 
properties are allowed.
#     table_properties:
#         ignored: []
#         disallowed: []
# Guardrail to allow/disallow user-provided timestamps. Defaults to true.
#     user_timestamps_enabled: true
# Guardrail to warn or abort when using a page size greater than threshold.
# The two thresholds default to -1 to disable.
#     page_size:
#       warn_threshold: -1
#       abort_threshold: -1
# Guardrail to allow/disallow list operations that require read before write, 
i.e. setting list element by index and
# removing list elements by either index or value. Defaults to true.
#     read_before_write_list_operations_enabled: true
{noformat}

We could always drag it back to the mailing list, but it's not really that 
huge, and the proposals we might have for or against it in its current form 
probably only deal with a few axes of design/layout.

> Guardrails for consistency levels
> ---------------------------------
>
>                 Key: CASSANDRA-17188
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-17188
>             Project: Cassandra
>          Issue Type: New Feature
>          Components: Feature/Guardrails
>            Reporter: Andres de la Peña
>            Assignee: Andres de la Peña
>            Priority: Normal
>             Fix For: 4.x
>
>
> Add guardrails for read/write consistency levels, for example:
> {code:java}
> # Guardrail to warn about or reject read consistency levels.
> # By default all consistency levels are allowed.
>     read_consistency_levels:
>         warned: []
>         disallowed: []
> # Guardrail to warn about or reject write consistency levels.
> # By default all consistency levels are allowed.
>     write_consistency_levels:
>         warned: []
>         disallowed: []
> {code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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

Reply via email to