[
https://issues.apache.org/jira/browse/CASSANDRA-21589?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18107895#comment-18107895
]
Dmitry Konstantinov edited comment on CASSANDRA-21589 at 8/25/26 1:21 PM:
--------------------------------------------------------------------------
Yes, because we should be very careful about introducing new logic into the hot
path that works with Cells (such as guardrails). Even a small amount of
overhead here can get magnified significantly.
200k batches/sec x 10 rows => 2 mln row/s x 5 value columns => 10mln
operations per cell per sec
was (Author: dnk):
Yes, because we should be very careful about introducing new logic into the hot
path that works with Cells (such as guardrails). Even a small amount of
overhead here can get magnified significantly.
> isOrdinaryUser check performed by Guardrail.enabled is expensive
> ----------------------------------------------------------------
>
> Key: CASSANDRA-21589
> URL: https://issues.apache.org/jira/browse/CASSANDRA-21589
> Project: Apache Cassandra
> Issue Type: Improvement
> Components: Feature/Guardrails
> Reporter: Dmitry Konstantinov
> Assignee: Dmitry Konstantinov
> Priority: Normal
> Fix For: 6.x, 7.x
>
> Attachments: 21589_after_cpu.html, 21589_before_cpu.html,
> cpu-heatmap_write.html, image-2026-08-20-16-05-55-487.png
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> We can get like 18% of CPU overhead for this check for a write load if
> authorization is enabled
> [^cpu-heatmap_write.html]
> write test:
> https://issues.apache.org/jira/browse/CASSANDRA-18831?focusedCommentId=18056293&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-18056293
> Guardrails:
> org.apache.cassandra.cql3.RowUpdateBuilder#validateCell -
> columnValueSize/columnTextAndVarcharValueSize
> org.apache.cassandra.cql3.statements.ModificationStatement#validateDiskUsage
> !image-2026-08-20-16-05-55-487.png|width=600!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]