yifan-c commented on a change in pull request #404: New/fql
URL: https://github.com/apache/cassandra/pull/404#discussion_r372719176
 
 

 ##########
 File path: doc/source/new/fqllogging.rst
 ##########
 @@ -0,0 +1,2096 @@
+.. Licensed to the Apache Software Foundation (ASF) under one
+.. or more contributor license agreements.  See the NOTICE file
+.. distributed with this work for additional information
+.. regarding copyright ownership.  The ASF licenses this file
+.. to you under the Apache License, Version 2.0 (the
+.. "License"); you may not use this file except in compliance
+.. with the License.  You may obtain a copy of the License at
+..
+..     http://www.apache.org/licenses/LICENSE-2.0
+..
+.. Unless required by applicable law or agreed to in writing, software
+.. distributed under the License is distributed on an "AS IS" BASIS,
+.. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+.. See the License for the specific language governing permissions and
+.. limitations under the License.
+
+Full Query Logging
+------------------ 
+
+Apache Cassandra 4.0 adds a new feature to support a means of logging all 
queries as they were invoked (`CASSANDRA-13983
+<https://issues.apache.org/jira/browse/CASSANDRA-13983>`_). For correctness 
testing it's useful to be able to capture production traffic so that it can be 
replayed against both the old and new versions of Cassandra while comparing the 
results.
+
+Cassandra 4.0 includes an implementation of a full query logging (FQL) that 
uses chronicle-queue to implement a rotating log of queries. Some of the 
features of FQL are:
+
+- Single thread asynchronously writes log entries to disk to reduce impact on 
query latency
+- Heap memory usage bounded by a weighted queue with configurable maximum 
weight sitting in front of logging thread
+- If the weighted queue is full producers can be blocked or samples can be 
dropped
+- Disk utilization is bounded by deleting old log segments once a configurable 
size is reached
+- The on disk serialization uses a flexible schema binary format 
(chronicle-wire) making it easy to skip unrecognized fields, add new ones, and 
omit old ones.
+- Can be enabled and configured via JMX, disabled, and reset (delete on disk 
data), logging path is configurable via both JMX and YAML
+- Introduce new ``fqltool`` in ``/bin`` that currently implements Dump which 
can dump in a readable format full query logs as well as follow active full 
query logs
 
 Review comment:
   If the `dump` is mentioned as an item in the list, the other 2 should be 
added too. 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to