Hosting and sites One-node cluster for Exponential sites

Deutsch

One-node cluster for Exponential sites

What a one-node cluster is, what changes on your site, which sites can use it and why it makes a second server easy later.

Exponential can run one site on several web servers at once. For that it keeps its stored files (images, uploads, and the pages it has built and cached) in a cluster: a shared folder for the files plus an index of them in the site's database. Every server that runs the site reads the same folder and the same index.

A one-node cluster is that setup on the one server your site already runs on. Nothing moves, and your visitors notice no difference. The site is simply ready for a second server: when one is added later, it only has to reach the same folder and the same database.

What changes on your site

A folder dfsin your hosting account, next to httpdocs; it holds the cluster's copy of your stored files
Two tablesezdfsfile and ezdfsfile_cache in your site's own database: the index of the files
Two settings filesa marked section in settings/override/file.ini.append.php and the file config.cluster.php; please leave both as they are
A web server ruleimages of your site are answered through Exponential's cluster gateway (index_cluster.php)

Your files stay in your hosting account and in your backups, as before. The space the dfs folder takes counts toward your plan's disk space; a site's stored files are copied into it once.

Which sites can use it

  • Exponential sites (6.x) on a MySQL/MariaDB database.
  • PostgreSQL sites as soon as their Exponential version includes the PostgreSQL cluster backend; until then the Settings tab says so.
  • Not sites on SQLite, and not sites that already have cluster settings of their own (we leave those alone).

Safe by design

The switch checks your site afterwards: the front page, the admin sign-in and a stored image must answer as before. If anything does not, the site goes back to how it was by itself and you get a mail saying so. Switching the cluster off moves the files back the same way.

To switch it on, see Switch a site to a one-node cluster. For more servers, see Adding a second server.