Skip to content

Exponential CMS

Clustering and DFS

Run one Exponential site on several servers: the DFS file handler, its database backends and the cluster gateway.

A cluster runs one Exponential site on several web servers. They share the database, and stored files (images, uploads, public caches) live on a shared disk that every server mounts. Exponential's DFS file handler keeps an index of those files in a database, so every server sees the same files at the same moment.

One command for a one-node cluster

./console exp:cluster:enable            # dry run
./console exp:cluster:enable --apply
./console exp:cluster:disable --apply   # back to a single file system

exp:cluster:enable creates the share, the cluster tables and the settings and moves the files in. A one-node cluster is ready for a second server.

The settings

In file.ini, [ClusteringSettings] FileHandler=eZDFSFileHandler, and in [eZDFSClusteringSettings] the MountPointPath of the share and the DBBackend, host, port, name and user of the index database.

Index database backends

  • MySQL and MariaDB (the default backend).
  • PostgreSQL 13 to 19.
  • Oracle 12.1 or newer.
  • MongoDB 5.0 or newer.
  • SQLite 3.24 or newer, for one machine only.

The site's database and the cluster index database are separate choices.

The cluster gateway

index_cluster.php streams stored images and public cache files from the share. Rewrite rules send var/storage/images and var/cache/public requests to it; its settings are constants in config.cluster.php.

Sessions and health checks

  • Share sessions between servers: the database session handler, a shared Valkey or Redis, or sticky sessions at the load balancer.
  • A load balancer can check /ezinfo/is_alive on each server.

Maintenance commands

exp:clusterize moves files into the cluster (and back with -u), exp:clusterpurge purges files of given scopes, and exp:dfscleanup compares the index with the files on the share.

Hosted by 7x? 7x cluster hosting sets all of this up for you.

Last updated 11/26/2026. Something missing or wrong? Write to info@se7enx.com.