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

file.ini [eZDFSClusteringSettings]

The settings of [eZDFSClusteringSettings] in file.ini: MountPointPath, DBBackend, DFSBackend, DBHost, DBPort, DBSocket, DBName, DBUser ...

Download as PDF

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

On this page

file.ini [eZDFSClusteringSettings]

The block [eZDFSClusteringSettings] of settings/file.ini, with 12 setting(s).

DFS Cluster Handler settings

Never edit settings/file.ini itself: an update replaces it. Put the settings you change in an override, which wins over the shipped file:

  • settings/override/file.ini.append.php for every siteaccess,
  • settings/siteaccess/<siteaccess>/file.ini.append.php for one siteaccess,
  • extension/<extension>/settings/file.ini.append.php in an extension (read when the extension is active).

MountPointPath

Path to the NFS mount point
Can be relative to the Exponential root, or absolute

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
MountPointPath=
*/ ?>

DBBackend

Database backend
Available options:

  • MySQLi: eZDFSFileHandlerMySQLiBackend
  • PostgreSQL 13 and later: expDFSFileHandlerPostgresqlBackend (in the kernel; the earlier name
    eZDFSFileHandlerPostgresqlBackend works too). Set DBPort=5432 and create the tables with
    kernel/sql/postgresql/cluster_dfs_schema.sql. Optional: DBLockTimeout=<seconds> (default 10), how long
    a statement waits for a row lock before the transaction is retried (DBExecuteRetries).
    DBPersistentConnection=enabled keeps one connection per PHP worker between requests (PDO persistent), which
    saves the login round trips of every request when the database is on another machine; count the workers of
    every node against the server's max_connections first.
  • SQLite 3.24 and later, one machine only (a one-node cluster, tests): expDFSFileHandlerSQLiteBackend (in the
    kernel). DBName is the database file (an absolute path, or a name in var/storage/sqlite3); create the tables with
    kernel/sql/sqlite/cluster_dfs_schema.sql. DBHost, DBPort, DBSocket, DBUser and DBPassword are not used.
    Optional: DBLockTimeout=<seconds> (default 10), how long a write waits for the database's lock.
  • MongoDB 5.0 and later, one server or a replica set: expDFSFileHandlerMongoDBBackend (in the kernel, only the PHP
    extension mongodb). DBHost and DBPort, or DBSocket, or a whole mongodb:// or mongodb+srv:// connection string in
    DBHost (a replica set); DBName is the database (DBUser is authenticated against it). Create the collections with
    exp:cluster:enable or expDFSFileHandlerMongoDBBackend::createSchema() (kernel/sql/mongodb/cluster_dfs_schema.json).
    Optional: DBLockTimeout=<seconds> (default 10), how long finding a server may take.
  • Oracle 12.1 and later: expDFSFileHandlerOracleBackend (in the kernel, only the PHP extension oci8). DBName is the
    connect string (Easy Connect host:port/service, a TNS alias or a descriptor); DBHost, DBPort and DBSocket are not
    used. Create the tables with kernel/sql/oracle/cluster_dfs_schema.sql (the ezoracle extension's old
    eZDFSFileHandlerOracleBackend table: cluster_dfs_schema_upgrade.sql). Optional: DBLockTimeout=<seconds> (default
    10), how long a change waits for a row lock; DBPersistentConnection=enabled for oci_pconnect().

Default: eZDFSFileHandlerMySQLiBackend.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBBackend=eZDFSFileHandlerMySQLiBackend
*/ ?>

DFSBackend

Default: eZDFSFileHandlerDFSBackend.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DFSBackend=eZDFSFileHandlerDFSBackend
*/ ?>

DBHost

Default: dbhost.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBHost=dbhost
*/ ?>

DBPort

Default: 3306.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBPort=3306
*/ ?>

DBSocket

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBSocket=
*/ ?>

DBName

Default: cluster.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBName=cluster
*/ ?>

DBUser

Default: root.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBUser=root
*/ ?>

DBPassword

Default: empty.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBPassword=
*/ ?>

DBConnectRetries

Default: 3.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBConnectRetries=3
*/ ?>

DBExecuteRetries

Default: 20.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
DBExecuteRetries=20
*/ ?>

MaxCopyRetries

Max number of times a dfs file is tried to be copied.
Increase this value if you find files like expiryXYZtmp.php with 0 byte size

Default: 5.

<?php /* #?ini charset="utf-8"?
# settings/override/file.ini.append.php
[eZDFSClusteringSettings]
MaxCopyRetries=5
*/ ?>

Generated by ./console exp:help:examples from settings/file.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