You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dmitry Konstantinov (Jira)" <ji...@apache.org> on 2025/09/04 13:04:00 UTC

[jira] [Comment Edited] (CASSANDRA-20885) Optimize org.apache.cassandra.audit.AuditLogManager#batchSuccess

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

Dmitry Konstantinov edited comment on CASSANDRA-20885 at 9/4/25 1:03 PM:
-------------------------------------------------------------------------

we can add an API like: isFiltered(AuditLogEntryType auditLogEntryType) to check if we need BATCH events to audit

[^audit_batch_perf.patch] - a sketch for the idea


was (Author: dnk):
we can add an additional API like: isFiltered(AuditLogEntryType auditLogEntryType) to check if we need BATCH events to audit

[^audit_batch_perf.patch] - a sketch for the idea

> Optimize org.apache.cassandra.audit.AuditLogManager#batchSuccess
> ----------------------------------------------------------------
>
>                 Key: CASSANDRA-20885
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20885
>             Project: Apache Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Dmitry Konstantinov
>            Assignee: Dmitry Konstantinov
>            Priority: Normal
>         Attachments: audit_batch_perf.patch, image-2025-09-04-13-52-19-490.png
>
>
> When we have an audit enabled for DDL/LOGIN events (and it is disabled for DML) we have an overhead for BATCH operations (0.75% of CPU usage in a real business workload), when we build an audit event for them to throw it away after it.
> !image-2025-09-04-13-52-19-490.png|width=600!
>  
> {code:java}
> UUID batchId = UUID.randomUUID();
> String queryString = String.format("BatchId:[%s] - BATCH of [%d] statements", batchId, statements.size()); {code}



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

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