Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,196 of 9,196 pages
About the help in other languages
All help pages

site.ini [CassandraSettings]

The settings of [CassandraSettings] in site.ini: Consistency, SerialConsistency, ReplicationStrategy, ReplicationFactor, DataCenters, Tablets, AutoCreateKeyspace, TLS ...

Download as PDF

Address: https://doc.exponential.earth/learninminutes/exphelp/viewer/examples/ini-settings/site/CassandraSettings.md

On this page

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.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/site.ini.append.php for one siteaccess,
  • extension/<extension>/settings/site.ini.append.php in 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.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
Consistency=LOCAL_QUORUM
*/ ?>

SerialConsistency

Default: LOCAL_SERIAL.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
ReplicationStrategy=SimpleStrategy
*/ ?>

ReplicationFactor

Default: 1.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
ReplicationFactor=1
*/ ?>

DataCenters

Default: empty.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
TLS=disabled
*/ ?>

TLSCAFile

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
TLSCAFile=
*/ ?>

TLSVerifyPeer

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
TLSVerifyPeer=enabled
*/ ?>

ConnectTimeout

Seconds to connect, and per request

Default: 5.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
ConnectTimeout=5
*/ ?>

RequestTimeout

Default: 30.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
RequestTimeout=30
*/ ?>

Compression

enabled: LZ4 compression of the protocol (needs PHP's lz4 extension)

Default: disabled.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
ProtocolVersion=4
*/ ?>

PageSize

Rows per page the server sends

Default: 5000.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# 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.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
InsertCheck=read
*/ ?>

InListChunkSize

Values per IN list sent to the server

Default: 100.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
InListChunkSize=100
*/ ?>

JournalLimit

The writes of a transaction that rollback() can undo (compensating writes)

Default: 10000.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
JournalLimit=10000
*/ ?>

ReconnectOnLoss

enabled: a lost connection outside a transaction is opened again

Default: enabled.

<?php /* #?ini charset="utf-8"?
# settings/override/site.ini.append.php
[CassandraSettings]
ReconnectOnLoss=enabled
*/ ?>

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.

Something wrong on this page? Report an error

Documentation license

This documentation is free documentation, licensed under the GNU Free Documentation License 1.3 or later.

Exponential Copyright © 1998-2026 Exponential Foundation and 7x