Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
e9bd394
STAR-567: Add test from DB-1208 (bug itself is not present)
sbtourist Oct 5, 2017
1d6eb62
STAR-570 Synchronize schema pull handling (#175)
k-rus May 31, 2021
7abf863
STAR-572 Improve error message when altering MV (#176)
k-rus Jun 1, 2021
03dc510
STAR-565 Use the indexed item type as backing table key validator (#…
jtgrabowski Jun 1, 2021
c1eefd1
STAR-564 Check only MODIFY on base when updating table with MV (#171)
jtgrabowski Jun 1, 2021
a484e25
STAR-571 fix nanoseconds overflowing in CommitLogService (#174)
jtgrabowski Jun 1, 2021
68984d8
STAR-561 selectors should contain elements with same type (#169)
jtgrabowski Jun 2, 2021
47d1561
STAR-573 Make assassinate more resilient to missing tokens (#178)
k-rus Jun 2, 2021
f90677c
STAR-563: Fix SIGSEGVs on aborted flush
Aug 22, 2017
12db584
STAR-566: Test for wrap-around in estimatedKeysForRanges
jasonstack Oct 4, 2017
b8eb62d
STAR-692: test exposing Date type overflow when using functions
jakubzytka Jun 2, 2021
2a9a89b
STAR-692: protect Date type from overflows regardless of whether it i…
jakubzytka Jun 2, 2021
58d49ab
STAR-749: Fixed ArrayIndexOutOfBoundsException in FunctionResource#fr…
jacek-lewandowski Jun 7, 2021
90d17f0
STAR-578 avoid copying EMPTY_STATIC_ROW to heap with offheap memtable…
djatnieks Jun 11, 2021
18a8ce9
STAR-582 avoid assertion when repairing 1 node cluster (#185)
k-rus Jun 11, 2021
5d10d16
STAR-571 fix *SnichTests (#197)
jtgrabowski Jun 14, 2021
a75b01a
STAR-745: Recreate BF on fp chance change and limit the total memory …
jacek-lewandowski Jun 15, 2021
b777dbe
STAR-748: Fix Scrubber so that it can work in case of broken index (#…
jacek-lewandowski Jun 16, 2021
6e7c128
STAR-583 Fix infinite loop when replaying a truncated commit log file…
djatnieks Jun 17, 2021
5d5368c
STAR-593 Harden txn log files against exceptions
Feb 20, 2018
07666e0
STAR-593 test patched LogReplicaSet.append
k-rus Jun 16, 2021
06d7704
CORE-92: Remove component number argument from getComparatorSize
Nov 6, 2020
9b9775b
CORE-92: Remove misleading method readCollectionSize from CollectionS…
Nov 6, 2020
8b06611
CORE-93: Add ByteComparable, ByteSource and related stuff
Nov 13, 2020
6b5704a
CORE-93: Add isValueLengthFixed method to AbstractType
Nov 6, 2020
cfd23c8
CORE-93: Add implementation of asComparableBytes to types
Nov 6, 2020
7640c04
CORE-93: Add implementation of asComparableBytes to tokens
Nov 6, 2020
7b67b6c
CORE-93: Add implementation of asComparableBytes to partition position
Nov 6, 2020
1540142
CORE-93: Add implementation of asComparableBytes to clustering
Nov 6, 2020
49c3f29
CORE-93: Add some tests
Nov 6, 2020
7bb0ad0
STAR-15: Allow for other implementations of SSTableFormat
Nov 10, 2020
4b0e238
STAR-17: Implements inverse byte-comparable translation
blambov Dec 16, 2020
ce17849
STAR-55: Provides the Trie interface with MemtableTrie implementation
blambov Jan 11, 2021
2f8fbf1
STAR-1: Read path optimizations
Nov 26, 2020
d5b41b4
STAR-172: Update artifacts to be called dse-db rather than cassandra
jakubzytka Mar 1, 2021
02613e3
STAR-75: On-disk Trie support
Mar 3, 2021
20b4628
STAR-121: Index group API changes
mike-tr-adamson Feb 18, 2021
bbc9ca4
STAR-121: Add index support to select statement restrictions
mike-tr-adamson Feb 18, 2021
ee4575d
STAR-121: Build dependencies for SAI
mike-tr-adamson Feb 18, 2021
36d022e
STAR-121: Config support for SAI
mike-tr-adamson Feb 18, 2021
c80316c
STAR-121: On-disk component support for SAI
mike-tr-adamson Feb 18, 2021
868c0a7
STAR-121: Key iteration and utility support for SAI
mike-tr-adamson Feb 18, 2021
c1cad34
STAR-121: Test support for SAI
mike-tr-adamson Feb 18, 2021
54af59d
STAR-121: Storage Attached Index implementation and testing
mike-tr-adamson Feb 18, 2021
8d18720
STAR-347: Fix FailureTest failure
mike-tr-adamson Mar 19, 2021
efc66d1
STAR-361: Query all ranges at once for SAI distributed queries (#85)
mike-tr-adamson Mar 25, 2021
641a5cf
STAR-360: Change compaction pause to be more specific to rewrite
mike-tr-adamson Mar 22, 2021
e798460
STAR-374: Avoid redundant calls to RateLimiter in CompactionTask (#92)
Gerrrr Mar 29, 2021
cf7714e
STAR-348 moved postings decoded to mark on postings reader close (#87)
jasonrutherglen Mar 29, 2021
7d40a6c
STAR-14: Memtable API
blambov Jun 9, 2021
55dbb8e
STAR-489: Add missing expected 'memtable' param of column family in c…
Apr 16, 2021
70fc3e6
STAR-258: Fix Scrubber
Apr 16, 2021
1d64297
STAR-247: TrieIndex SSTable format implementation
Apr 19, 2021
98d8c27
STAR-254 Port DSE custom CQL types (#107)
jtgrabowski Apr 20, 2021
9e9b9e9
STAR-196: Multi-node tests for SAI
mike-tr-adamson Mar 16, 2021
d713b7e
STAR-392: Reuse compaction task ID in compaction history (#93)
Gerrrr Apr 20, 2021
28bd750
STAR-391: Reduce garbage when debug/trace is off in CompactionTask (#94)
Gerrrr Apr 21, 2021
5bd625c
STAR-452: Add EverywhereStrategy (#111)
jtgrabowski Apr 21, 2021
1b5bf82
STAR-453 ignore DSE index creation commands (#117)
jtgrabowski Apr 21, 2021
cf20551
STAR-497 fix pycodestyle (#123)
jtgrabowski Apr 22, 2021
5c12f87
STAR-435 Make MmappedRegions.MAX_SEGMENT_SIZE configurable with syste…
mike-tr-adamson Apr 20, 2021
a757e2f
STAR-297 change dse.trie_size_limit_mb to cassandra.trie_size_limit_mb
mike-tr-adamson Apr 20, 2021
59c12a9
STAR-476 Fix TrieTermsDictionaryTest for duplicate random values
mike-tr-adamson Apr 19, 2021
cb00ffb
STAR-343 Frozen Tuple, Frozen UDT & Boolean support
mike-tr-adamson Apr 20, 2021
79e4a70
STAR-501: Fixed number of CPUs = 2 for testing
Apr 22, 2021
3ad7794
STAR-451 override unsupported DSE compaction strategies (#122)
jtgrabowski Apr 22, 2021
9f5f997
STAR-184 Endpoint grouping for distributed range reads
mike-tr-adamson Apr 15, 2021
e0fa048
STAR-404: Add maxColumnValueLengthsMap support in StatsMetadata (ds-t…
jacek-lewandowski Apr 23, 2021
60d2fbe
STAR-493: Fix Scrubber (missing bad rows incrementation) (#127)
jacek-lewandowski Apr 23, 2021
1f456e2
STAR-410 (#101)
Gerrrr Apr 26, 2021
4c99b0f
STAR-409 Port guardrails from astra branch (#124)
djatnieks Apr 27, 2021
c0100b2
STAR-454 ignore 'nodesync' table option (#126)
jtgrabowski Apr 29, 2021
f401273
STAR-455 ignore VERTEX|EDGE LABEL in CREATE TABLE statement (#128)
jtgrabowski Apr 29, 2021
4a30400
STAR-400: Add a smoke test for mixed sstable formats (ds-trunk) (#136)
jacek-lewandowski May 4, 2021
b91909d
STAR-539: Fix storing stats metadata for big table format (ds-trunk) …
jacek-lewandowski May 4, 2021
00da732
STAR-396: Multi-buffer, sharded memtable trie (#131)
jakubzytka May 5, 2021
7e081ac
STAR-539: Extra fix, missed running bigtable tests again (#143)
jacek-lewandowski May 6, 2021
4c29fc9
STAR-549: Only register index components that exist on disk with SSTable
mike-tr-adamson May 6, 2021
ce958c6
STAR-553: update last flush metrics in TrieMemtable + cosmetics
jakubzytka May 7, 2021
2492b49
STAR-530 SchemaKeyspace is compatible with riptano/6.8-cndb (#133)
jtgrabowski May 10, 2021
c580425
STAR-555: fix commitLogUpperBound initialization in AbstractMemtableW…
jakubzytka May 11, 2021
1f5b424
STAR-511 Port guardrails: ignore table properties (#134)
djatnieks May 13, 2021
0bd7ea3
STAR-513 Add Guardrail to disable TRUNCATE TABLE (#138)
djatnieks May 13, 2021
164f30f
STAR-514 Add guardrail to disable counter columns (#139)
djatnieks May 13, 2021
753fb69
STAR-515 Add guardrail for SASI and STAR-512 Add guardrails for total…
djatnieks May 13, 2021
c7f0c55
STAR-674: Map disk_access_mode auto to standard like DSE
mfleming May 19, 2021
d529aa3
STAR-674: Use object_buffers for memtable_allocation_type like DSE
mfleming May 19, 2021
80abaa7
STAR-674: Switch from CMS to G1 GC like DSE
mfleming May 20, 2021
7ce7a83
STAR-426 Add specific CQL statement to record dropped columns (#156)
djatnieks May 25, 2021
bd77281
STAR-725 Bloom false positive rate includes true negatives (#164)
jtgrabowski May 25, 2021
bd6096e
STAR-431: Add option to prevent any file-I/O from cqlsh
mfleming May 24, 2021
d518098
STAR-674: Enable trickle_fsync by default like DSE
mfleming May 21, 2021
0b65dd4
STAR-431: Add option to prevent any file-I/O from cqlsh (apply from c…
mfleming May 26, 2021
d478c9f
STAR-429 cqlsh disable cqlsh_history logging (#165)
jtgrabowski May 27, 2021
81d62c3
STAR-432. Add options for consistency-level and serial-consistency-le…
tlasica Jun 1, 2021
b90b433
STAR-543 Port remaining guardrails and sync with cndb (#180)
djatnieks Jun 8, 2021
b6ca4e3
STAR-403: Implement basic SSTable read/write benchmarks (#187)
jacek-lewandowski Jun 8, 2021
b708759
STAR-654 Fix permissions race in GuardrailDiskUsageTest.testWriteRequ…
djatnieks Jun 8, 2021
0a42d63
STAR-786: Migrate SAI microbenchmark tests to Stargazer
mike-tr-adamson Jun 9, 2021
cfee60b
STAR-766 fix testGetScannerForNoIntersectingRanges
jtgrabowski Jun 11, 2021
756eb7d
STAR-795: Reduce test sizes (#196)
jacek-lewandowski Jun 14, 2021
4ed6c28
STAR-765. Add --secure-connect-bundle option to cqlsh. (#190)
tlasica Jun 16, 2021
25fa817
STAR-801: Refactor the logic for loading and recreating bf
jacek-lewandowski Jun 22, 2021
1c24e77
STAR-801: Adjust the failing assertion in SSTablesIteratedTest.testNo…
jacek-lewandowski Jun 22, 2021
d7674a8
STAR-801: Fix ScrubberTest failure (and scrubber itself)
jacek-lewandowski Jun 22, 2021
5e0a9a6
STAR-228: OR and IN support for SAI (#206)
mike-tr-adamson Jun 28, 2021
7d0c209
STAR-815: Make MultiRangeReadCommand usage configurable in SAI (#212)
mike-tr-adamson Jul 13, 2021
ac0be81
STAR-813: New MessagingService version for Stargazer (#218)
mike-tr-adamson Jul 15, 2021
8cb7905
STAR-13 Add the Unified Compaction Strategy. (#132)
Gerrrr Jul 15, 2021
75ba24f
Fix JMH libraries
blambov Jul 16, 2021
e3e170f
STAR-839: Add the ability to choose the log file configuration for te…
jacek-lewandowski Jul 21, 2021
e410913
STAR-821 Add failing test to expose problem with OR and PK restrictions
pkolaczk Jul 14, 2021
f2ace24
STAR-821 Add a way to flatten WHERE expression tree
pkolaczk Jul 14, 2021
d4ae7e8
STAR-821 Add ExpressionElement#conjunctiveForm()
pkolaczk Jul 14, 2021
b28f8cd
STAR-821 Reject queries with partition key restriction nested under OR
pkolaczk Jul 16, 2021
6f0f9a8
STAR-821 Allow empty container elements
pkolaczk Jul 16, 2021
9cc2050
STAR-821 Replace EmptyElement with an empty AndElement
pkolaczk Jul 22, 2021
d834519
STAR-821 Cleanup minor code-style issue reported by Sonar
pkolaczk Jul 22, 2021
d40f9e3
STAR-815: MultiRangeReadCommand always used by SAI and remove info lo…
mike-tr-adamson Jul 23, 2021
0969332
STAR-847 Close client to prevent driver queries after dropping user (…
djatnieks Jul 29, 2021
e11d716
STAR-762: Implement paging in bytes (#223)
jacek-lewandowski Jul 30, 2021
f00e340
STAR-767: Do not copy to heap for flushing
blambov Jul 13, 2021
b81104d
Add Cursor walks to trie interface
blambov Apr 2, 2021
09f5584
Fix write benchmark
blambov Apr 2, 2021
6583115
Apply state in array
blambov Apr 2, 2021
abe473f
Retained and reused applyState
blambov Apr 2, 2021
c85baf1
Cursor implementation for MemtableTrie
blambov Apr 3, 2021
989351f
Use TransitionsReceiver, only store backtracking steps
blambov Apr 6, 2021
3b1f8da
Intersection words, but RangeTrieSet is very ugly
blambov Apr 7, 2021
76f706a
AdvanceMultiple in SetIntersectionTrie
blambov Apr 7, 2021
76c42b4
Switch to advanceMultiple not passing last transition to receiver
blambov Apr 23, 2021
9bb32de
Implement MergeTrie cursor
blambov Apr 23, 2021
0b0609a
Precalculate incoming, level and content for MergeTrie
blambov Apr 23, 2021
bd51eb1
Revert "Precalculate incoming, level and content for MergeTrie"
blambov Apr 23, 2021
847f1a7
Fix MergeTrie.ascend
blambov Apr 23, 2021
f61144e
First CollectionMergeTrie implementations
blambov Apr 23, 2021
4e64584
CollectionMergeTrie with advanceMultiple
blambov Apr 23, 2021
5106e4a
More elaborate MemtableReadTrie.advanceMultiple
blambov Apr 24, 2021
87cefe0
greaterCursor and equalCursor
blambov Apr 24, 2021
7e62a7e
some don't redo buffer/offset calculations
blambov Apr 24, 2021
30eca9e
Direct TrieDumper
blambov Aug 9, 2021
0bea6e3
Typed cursor dump
blambov Aug 9, 2021
4f161dd
Remove Node representation of Tries.
blambov Aug 10, 2021
aa615c8
Fix problems in SetIntersectionTrie and RangeTrieSet
blambov Aug 11, 2021
a171b5f
Handle inclusiveness with nextKey, add RangeTrieTest
blambov Aug 11, 2021
310a505
Clean-up
blambov Aug 11, 2021
1c675a3
Further cleanup
blambov Apr 28, 2021
fc85ad2
Don't redo buffer/offset calculations
blambov Apr 24, 2021
934b912
Use sparse order word
blambov Apr 26, 2021
1415f88
Backtracking into split sub-nodes
blambov Apr 26, 2021
bbcb869
Shard on lowest hash bits
blambov May 17, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 3 additions & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
Future version (tbd)
* Require only MODIFY permission on base when updating table with MV (STAR-564)

4.0.1
* Cleanup dependency scopes (CASSANDRA-16704)
* Make JmxHistogram#getRecentValues() and JmxTimer#getRecentValues() thread-safe (CASSANDRA-16707)
Expand Down
4 changes: 2 additions & 2 deletions README.asc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ and running, and demonstrate some simple reads and writes. For a more-complete g

First, we'll unpack our archive:

$ tar -zxvf apache-cassandra-$VERSION.tar.gz
$ cd apache-cassandra-$VERSION
$ tar -zxvf dse-db-$VERSION.tar.gz
$ cd dse-db-$VERSION

After that we start the server. Running the startup script with the -f argument will cause
Cassandra to remain in the foreground and log to standard out; it can be stopped with ctrl-C.
Expand Down
12 changes: 6 additions & 6 deletions bin/cassandra.in.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ CLASSPATH="$CASSANDRA_CONF"
# compiled classes. NOTE: This isn't needed by the startup script,
# it's just used here in constructing the classpath.
if [ -d $CASSANDRA_HOME/build ] ; then
#cassandra_bin="$CASSANDRA_HOME/build/classes/main"
cassandra_bin=`ls -1 $CASSANDRA_HOME/build/apache-cassandra*.jar`
#dse_db_bin="$CASSANDRA_HOME/build/classes/main"
dse_db_bin=`ls -1 $CASSANDRA_HOME/build/dse-db*.jar`

CLASSPATH="$CLASSPATH:$cassandra_bin"
CLASSPATH="$CLASSPATH:$dse_db_bin"
fi

# the default location for commitlogs, sstables, and saved caches
Expand Down Expand Up @@ -112,16 +112,16 @@ JAVA_VERSION=11
if [ "$JVM_VERSION" = "1.8.0" ] ; then
JVM_PATCH_VERSION=${jvmver#*_}
if [ "$JVM_VERSION" \< "1.8" ] || [ "$JVM_VERSION" \> "1.8.2" ] ; then
echo "Cassandra 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or newer). Java $JVM_VERSION is not supported."
echo "DSE DB 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or newer). Java $JVM_VERSION is not supported."
exit 1;
fi
if [ "$JVM_PATCH_VERSION" -lt 151 ] ; then
echo "Cassandra 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or newer). Java 8 update $JVM_PATCH_VERSION is not supported."
echo "DSE DB 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or newer). Java 8 update $JVM_PATCH_VERSION is not supported."
exit 1;
fi
JAVA_VERSION=8
elif [ "$JVM_VERSION" \< "11" ] ; then
echo "Cassandra 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or newer)."
echo "DSE DB 4.0 requires either Java 8 (update 151 or newer) or Java 11 (or newer)."
exit 1;
fi

Expand Down
160 changes: 131 additions & 29 deletions bin/cqlsh.py

Large diffs are not rendered by default.

159 changes: 123 additions & 36 deletions build.xml

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion conf/cassandra-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ if [ $JAVA_VERSION -ge 11 ] ; then
if [ "$?" = "1" ] ; then # [X] to prevent ccm from replacing this line
# only add -Xlog:gc if it's not mentioned in jvm-server.options file
mkdir -p ${CASSANDRA_LOG_DIR}
JVM_OPTS="$JVM_OPTS -Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file=${CASSANDRA_LOG_DIR}/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760"
JVM_OPTS="$JVM_OPTS -Xlog:gc=info,heap*=debug,age*=debug,safepoint=info,promotion*=debug:file=${CASSANDRA_LOG_DIR}/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760"
fi
else
# Java 8
Expand Down
168 changes: 141 additions & 27 deletions conf/cassandra.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@ concurrent_materialized_view_writes: 32
#
# offheap_objects
# off heap objects
memtable_allocation_type: heap_buffers
memtable_allocation_type: offheap_objects

# Limit memory usage for Merkle tree calculations during repairs. The default
# is 1/16th of the available heap. The main tradeoff is that smaller trees
Expand Down Expand Up @@ -633,7 +633,7 @@ index_summary_resize_interval_in_minutes: 60
# buffers. Enable this to avoid sudden dirty buffer flushing from
# impacting read latencies. Almost always a good idea on SSDs; not
# necessarily on platters.
trickle_fsync: false
trickle_fsync: true
trickle_fsync_interval_in_kb: 10240

# TCP port, for commands and data
Expand Down Expand Up @@ -1243,18 +1243,6 @@ transparent_data_encryption_options:
# SAFETY THRESHOLDS #
#####################

# When executing a scan, within or across a partition, we need to keep the
# tombstones seen in memory so we can return them to the coordinator, which
# will use them to make sure other replicas also know about the deleted rows.
# With workloads that generate a lot of tombstones, this can cause performance
# problems and even exaust the server heap.
# (http://www.datastax.com/dev/blog/cassandra-anti-patterns-queues-and-queue-like-datasets)
# Adjust the thresholds here if you understand the dangers and want to
# scan more tombstones anyway. These thresholds may also be adjusted at runtime
# using the StorageService mbean.
tombstone_warn_threshold: 1000
tombstone_failure_threshold: 100000

# Filtering and secondary index queries at read consistency levels above ONE/LOCAL_ONE use a
# mechanism called replica filtering protection to ensure that results from stale replicas do
# not violate consistency. (See CASSANDRA-8272 and CASSANDRA-15907 for more details.) This
Expand All @@ -1275,19 +1263,6 @@ replica_filtering_protection:
cached_rows_warn_threshold: 2000
cached_rows_fail_threshold: 32000

# Log WARN on any multiple-partition batch size exceeding this value. 5kb per batch by default.
# Caution should be taken on increasing the size of this threshold as it can lead to node instability.
batch_size_warn_threshold_in_kb: 5

# Fail any multiple-partition batch exceeding this value. 50kb (10x warn threshold) by default.
batch_size_fail_threshold_in_kb: 50

# Log WARN on any batches not of type LOGGED than span across more partitions than this limit
unlogged_batch_across_partitions_warn_threshold: 10

# Log a warning when compacting partitions larger than this value
compaction_large_partition_warning_threshold_mb: 100

# GC Pauses greater than 200 ms will be logged at INFO level
# This threshold can be adjusted to minimize logging if necessary
# gc_log_threshold_in_ms: 200
Expand Down Expand Up @@ -1419,6 +1394,10 @@ report_unconfirmed_repaired_data_mismatches: false
# table_count_warn_threshold: 150
# keyspace_count_warn_threshold: 40

# This is the page size used internally by aggregation queries. It aims to limit the memory used by aggregation
# queries when there is a lot of data to aggregate.
# aggregation_subpage_size_in_kb: 2048

#########################
# EXPERIMENTAL FEATURES #
#########################
Expand All @@ -1434,3 +1413,138 @@ enable_sasi_indexes: false
# Enables creation of transiently replicated keyspaces on this node.
# Transient replication is experimental and is not recommended for production use.
enable_transient_replication: false

# Emulates DataStax Constellation database-as-a-service defaults.
#
# When enabled, some defaults are modified to match those used by DataStax Constellation (DataStax cloud data
# platform). This includes (but is not limited to) stricter guardrails defaults.
#
# This can be used as an convenience to develop and test applications meant to run on DataStax Constellation.
#
# Warning: when enabled, the updated defaults reflect those of DataStax Constellation _at the time_ of the currently
# used DSE release. This is a best-effort emulation of said defaults. Further, all nodes must use the same
# config value.
# emulate_dbaas_defaults: false

# Guardrails settings.
# guardrails:
# When executing a scan, within or across a partition, we need to keep the
# tombstones seen in memory so we can return them to the coordinator, which
# will use them to make sure other replicas also know about the deleted rows.
# With workloads that generate a lot of tombstones, this can cause performance
# problems and even exhaust the server heap.
# (http://www.datastax.com/dev/blog/cassandra-anti-patterns-queues-and-queue-like-datasets)
# Adjust the thresholds here if you understand the dangers and want to
# scan more tombstones anyway. These thresholds may also be adjusted at runtime
# using the StorageService mbean.
#
# Default tombstone_warn_threshold is 1000, may differ if emulate_dbaas_defaults is enabled
# Default tombstone_failure_threshold is 100000, may differ if emulate_dbaas_defaults is enabled
# tombstone_warn_threshold: 1000
# tombstone_failure_threshold: 100000

# Log a warning when compacting partitions larger than this value.
# Default value is 100mb, may differ if emulate_dbaas_defaults is enabled
# partition_size_warn_threshold_in_mb: 100

# Log WARN on any multiple-partition batch size that exceeds this value. 64kb per batch by default.
# Use caution when increasing the size of this threshold as it can lead to node instability.
# Default value is 64kb, may differ if emulate_dbaas_defaults is enabled
# batch_size_warn_threshold_in_kb: 64

# Fail any multiple-partition batch that exceeds this value. The calculated default is 640kb (10x warn threshold).
# Default value is 640kb, may differ if emulate_dbaas_defaults is enabled
# batch_size_fail_threshold_in_kb: 640

# Log WARN on any batches not of type LOGGED than span across more partitions than this limit.
# Default value is 10, may differ if emulate_dbaas_defaults is enabled
# unlogged_batch_across_partitions_warn_threshold: 10

# Failure threshold to prevent writing large column value into Cassandra.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# column_value_size_failure_threshold_in_kb: -1

# Failure threshold to prevent creating more columns per table than threshold.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# columns_per_table_failure_threshold: -1

# Failure threshold to prevent creating more fields in user-defined-type than threshold.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# fields_per_udt_failure_threshold: -1

# Warning threshold to warn when encountering larger size of collection data than threshold.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# collection_size_warn_threshold_in_kb: -1

# Warning threshold to warn when encountering more elements in collection than threshold.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# items_per_collection_warn_threshold: -1

# Whether read-before-write operation is allowed, eg. setting list element by index, removing list element
# by index. Note: LWT is always allowed.
# Default true to allow read before write operation, may differ if emulate_dbaas_defaults is enabled
# read_before_write_list_operations_enabled: true

# Failure threshold to prevent creating more secondary index per table than threshold (does not apply to CUSTOM INDEX StorageAttachedIndex)
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# secondary_index_per_table_failure_threshold: -1

# Failure threshold for number of StorageAttachedIndex per table (only applies to CUSTOM INDEX StorageAttachedIndex)
# Default is 10 (same when emulate_dbaas_defaults is enabled)
# sai_indexes_per_table_failure_threshold: 10
#
# Failure threshold for total number of StorageAttachedIndex across all keyspaces (only applies to CUSTOM INDEX StorageAttachedIndex)
# Default is 10 (same when emulate_dbaas_defaults is enabled)
# sai_indexes_total_failure_threshold: 100

# Failure threshold to prevent creating more materialized views per table than threshold.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# materialized_view_per_table_failure_threshold: -1

# Warn threshold to warn creating more tables than threshold.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# tables_warn_threshold: -1

# Failure threshold to prevent creating more tables than threshold.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# tables_failure_threshold: -1

# Preventing creating tables with provided configurations.
# Default all properties are allowed, may differ if emulate_dbaas_defaults is enabled
# table_properties_disallowed:

# Whether to allow user-provided timestamp in write request
# Default true to allow user-provided timestamp, may differ if emulate_dbaas_defaults is enabled
# user_timestamps_enabled: true

# Preventing query with provided consistency levels
# Default all consistency levels are allowed.
# write_consistency_levels_disallowed:

# Failure threshold to prevent providing larger paging by bytes than threshold, also served as a hard paging limit
# when paging by rows is used.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# page_size_failure_threshold_in_kb: -1

# Failure threshold to prevent IN query creating size of cartesian product exceeding threshold, eg.
# "a in (1,2,...10) and b in (1,2...10)" results in cartesian product of 100.
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# in_select_cartesian_product_failure_threshold: -1

# Failure threshold to prevent IN query containing more partition keys than threshold
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# partition_keys_in_select_failure_threshold: -1

# Warning threshold to warn when local disk usage exceeding threshold. Valid values: (1, 100]
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# disk_usage_percentage_warn_threshold: -1

# Failure threshold to reject write requests if replica disk usage exceeding threshold. Valid values: (1, 100]
# Default -1 to disable, may differ if emulate_dbaas_defaults is enabled
# disk_usage_percentage_failure_threshold: -1

# Allows configuring max disk size of data directories when calculating thresholds for disk_usage_percentage_warn_threshold
# and disk_usage_percentage_failure_threshold. Valid values: (1, max available disk size of all data directories]
# Default -1 to disable and use the physically available disk size of data directories during calculations.
# may differ if emulate_dbaas_defaults is enabled
# disk_usage_max_disk_size_in_gb: -1
17 changes: 17 additions & 0 deletions conf/cqlshrc.sample.cloud
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
; Copyright DataStax, Inc.
;
; Licensed 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.
;
; Sample ~/.cqlshrc file with cloud configuration.
[connection]
secure_connect_bundle = /path/to/creds.zip
30 changes: 15 additions & 15 deletions conf/jvm11-server.options
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@


### CMS Settings
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=1
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSWaitDuration=10000
-XX:+CMSParallelInitialMarkEnabled
-XX:+CMSEdenChunksRecordAlways
#-XX:+UseConcMarkSweepGC
#-XX:+CMSParallelRemarkEnabled
#-XX:SurvivorRatio=8
#-XX:MaxTenuringThreshold=1
#-XX:CMSInitiatingOccupancyFraction=75
#-XX:+UseCMSInitiatingOccupancyOnly
#-XX:CMSWaitDuration=10000
#-XX:+CMSParallelInitialMarkEnabled
#-XX:+CMSEdenChunksRecordAlways
## some JVMs will fill up their heap when accessed via JMX, see CASSANDRA-6541
-XX:+CMSClassUnloadingEnabled
#-XX:+CMSClassUnloadingEnabled



### G1 Settings
## Use the Hotspot garbage-first collector.
#-XX:+UseG1GC
#-XX:+ParallelRefProcEnabled
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled

#
## Have the JVM do less remembered set work during STW, instead
## preferring concurrent GC. Reduces p99.9 latency.
#-XX:G1RSetUpdatingPauseTimePercent=5
-XX:G1RSetUpdatingPauseTimePercent=5
#
## Main G1GC tunable: lowering the pause target will lower throughput and vise versa.
## 200ms is the JVM default and lowest viable setting
## 1000ms increases throughput. Keep it smaller than the timeouts in cassandra.yaml.
#-XX:MaxGCPauseMillis=500
-XX:MaxGCPauseMillis=500

## Optional G1 Settings
# Save CPU time on large (>= 16GB) heaps by delaying region scanning
Expand Down Expand Up @@ -80,7 +80,7 @@
# Java 11 (and newer) GC logging options:
# See description of https://bugs.openjdk.java.net/browse/JDK-8046148 for details about the syntax
# The following is the equivalent to -XX:+PrintGCDetails -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M
#-Xlog:gc=info,heap*=trace,age*=debug,safepoint=info,promotion*=trace:file=/var/log/cassandra/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760
-Xlog:gc=info,heap*=debug,age*=debug,safepoint=info,promotion*=debug:file=/var/log/cassandra/gc.log:time,uptime,pid,tid,level:filecount=10,filesize=10485760

# Notes for Java 8 migration:
#
Expand Down
30 changes: 15 additions & 15 deletions conf/jvm8-server.options
Original file line number Diff line number Diff line change
Expand Up @@ -18,33 +18,33 @@
#################

### CMS Settings
-XX:+UseParNewGC
-XX:+UseConcMarkSweepGC
-XX:+CMSParallelRemarkEnabled
-XX:SurvivorRatio=8
-XX:MaxTenuringThreshold=1
-XX:CMSInitiatingOccupancyFraction=75
-XX:+UseCMSInitiatingOccupancyOnly
-XX:CMSWaitDuration=10000
-XX:+CMSParallelInitialMarkEnabled
-XX:+CMSEdenChunksRecordAlways
#-XX:+UseParNewGC
#-XX:+UseConcMarkSweepGC
#-XX:+CMSParallelRemarkEnabled
#-XX:SurvivorRatio=8
#-XX:MaxTenuringThreshold=1
#-XX:CMSInitiatingOccupancyFraction=75
#-XX:+UseCMSInitiatingOccupancyOnly
#-XX:CMSWaitDuration=10000
#-XX:+CMSParallelInitialMarkEnabled
#-XX:+CMSEdenChunksRecordAlways
## some JVMs will fill up their heap when accessed via JMX, see CASSANDRA-6541
-XX:+CMSClassUnloadingEnabled
#-XX:+CMSClassUnloadingEnabled

### G1 Settings
## Use the Hotspot garbage-first collector.
#-XX:+UseG1GC
#-XX:+ParallelRefProcEnabled
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled

#
## Have the JVM do less remembered set work during STW, instead
## preferring concurrent GC. Reduces p99.9 latency.
#-XX:G1RSetUpdatingPauseTimePercent=5
-XX:G1RSetUpdatingPauseTimePercent=5
#
## Main G1GC tunable: lowering the pause target will lower throughput and vise versa.
## 200ms is the JVM default and lowest viable setting
## 1000ms increases throughput. Keep it smaller than the timeouts in cassandra.yaml.
#-XX:MaxGCPauseMillis=500
-XX:MaxGCPauseMillis=500

## Optional G1 Settings
# Save CPU time on large (>= 16GB) heaps by delaying region scanning
Expand Down
Loading