site.ini [CassandraSettings]
The block [CassandraSettings] of settings/site.ini, with 21 setting(s).
Apache Cassandra and ScyllaDB (DatabaseImplementation=cassandra or scylladb, expCassandraDB): a data table connection
(datatable.ini, engine cassandra or scylladb) and an import source (exp:cassandra:import), not a site database. Server
is one host or a comma-separated list (host, host:port); Database is the keyspace. The driver needs PHP 8.1 or later
and the library mroosz/php-cassandra (composer require mroosz/php-cassandra). See the Cassandra and ScyllaDB driver
documentation for what it answers and what it refuses.
Never edit settings/site.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:
settings/override/site.ini.append.phpfor every siteaccess,settings/siteaccess/<siteaccess>/site.ini.append.phpfor one siteaccess,extension/<extension>/settings/site.ini.append.phpin an extension (read when the extension is active).
Consistency
The consistency of reads and writes (ONE, LOCAL_ONE, QUORUM, LOCAL_QUORUM, ALL ...); of the counters of new ids
(lightweight transactions): LOCAL_SERIAL or SERIAL
Default: LOCAL_QUORUM.
# settings/override/site.ini.append.php
[CassandraSettings]
Consistency=LOCAL_QUORUM
*/ ?>SerialConsistency
Default: LOCAL_SERIAL.
# settings/override/site.ini.append.php
[CassandraSettings]
SerialConsistency=LOCAL_SERIAL
*/ ?>ReplicationStrategy
A keyspace made by the driver (createDatabase(), AutoCreateKeyspace): SimpleStrategy with ReplicationFactor, or
NetworkTopologyStrategy with DataCenters=dc1:3,dc2:3
Default: SimpleStrategy.
# settings/override/site.ini.append.php
[CassandraSettings]
ReplicationStrategy=SimpleStrategy
*/ ?>ReplicationFactor
Default: 1.
# settings/override/site.ini.append.php
[CassandraSettings]
ReplicationFactor=1
*/ ?>DataCenters
Default: empty.
# settings/override/site.ini.append.php
[CassandraSettings]
DataCenters=
*/ ?>Tablets
ScyllaDB: enabled makes keyspaces with tablets (ScyllaDB 2025.1 does no lightweight transactions on them, which the
new ids need)
Default: disabled.
# settings/override/site.ini.append.php
[CassandraSettings]
Tablets=disabled
*/ ?>AutoCreateKeyspace
enabled: a keyspace that does not exist is made when the connection opens
Default: disabled.
# settings/override/site.ini.append.php
[CassandraSettings]
AutoCreateKeyspace=disabled
*/ ?>TLS
TLS to the nodes; TLSCAFile: the CA of the nodes' certificates; TLSVerifyPeer=disabled accepts any certificate
Default: disabled.
# settings/override/site.ini.append.php
[CassandraSettings]
TLS=disabled
*/ ?>TLSCAFile
Default: empty.
# settings/override/site.ini.append.php
[CassandraSettings]
TLSCAFile=
*/ ?>TLSVerifyPeer
Default: enabled.
# settings/override/site.ini.append.php
[CassandraSettings]
TLSVerifyPeer=enabled
*/ ?>ConnectTimeout
Seconds to connect, and per request
Default: 5.
# settings/override/site.ini.append.php
[CassandraSettings]
ConnectTimeout=5
*/ ?>RequestTimeout
Default: 30.
# settings/override/site.ini.append.php
[CassandraSettings]
RequestTimeout=30
*/ ?>Compression
enabled: LZ4 compression of the protocol (needs PHP's lz4 extension)
Default: disabled.
# settings/override/site.ini.append.php
[CassandraSettings]
Compression=disabled
*/ ?>ProtocolVersion
The version of the native protocol: 4 (Cassandra 3 to 5, ScyllaDB), or 5 (Cassandra 4 and 5; the library cannot send a
statement of more than 128 KiB on it)
Default: 4.
# settings/override/site.ini.append.php
[CassandraSettings]
ProtocolVersion=4
*/ ?>PageSize
Rows per page the server sends
Default: 5000.
# settings/override/site.ini.append.php
[CassandraSettings]
PageSize=5000
*/ ?>ScanLimit
The most rows a statement may read to do in PHP what CQL cannot (OR, LIKE, ORDER BY, OFFSET, a filter on a column
without an index ...); a statement that would read more is refused, never answered from a part of the table
Default: 100000.
# settings/override/site.ini.append.php
[CassandraSettings]
ScanLimit=100000
*/ ?>AllowFiltering
enabled: comparisons of columns that are no key go to the server with ALLOW FILTERING (it reads the table there
instead of sending every row); disabled: they are done in PHP
Default: enabled.
# settings/override/site.ini.append.php
[CassandraSettings]
AllowFiltering=enabled
*/ ?>InsertCheck
An INSERT whose key exists already: read (a lookup before the write, the duplicate refused as SQL does), lwt (INSERT
... IF NOT EXISTS, exact when several write the same key), none (Cassandra's own: the row is written over)
Default: read.
# settings/override/site.ini.append.php
[CassandraSettings]
InsertCheck=read
*/ ?>InListChunkSize
Values per IN list sent to the server
Default: 100.
# settings/override/site.ini.append.php
[CassandraSettings]
InListChunkSize=100
*/ ?>JournalLimit
The writes of a transaction that rollback() can undo (compensating writes)
Default: 10000.
# settings/override/site.ini.append.php
[CassandraSettings]
JournalLimit=10000
*/ ?>ReconnectOnLoss
enabled: a lost connection outside a transaction is opened again
Default: enabled.
# settings/override/site.ini.append.php
[CassandraSettings]
ReconnectOnLoss=enabled
*/ ?>Related
Generated by ./console exp:help:examples from settings/site.ini. Do not edit this page: change the source and generate again (how). Free documentation: GFDL 1.3 or later.