Requirements#
What an Empowerment Center 8 installation needs before you start: software, memory and CPU, own database, network and ports. The memory figures are a starting point; they are adjusted later with what the operations console shows.
Software#
| Part | Requirement |
|---|---|
| Containers | Docker 24 or later with Docker Compose v2, or an orchestrator that runs the same images (Kubernetes, for example). It can also be installed without containers: see Installing without containers. |
| Backend without containers | A Java 25 JRE. |
| Frontend without containers | Any web server that can serve static files and act as a reverse proxy with the rules in The reverse proxy and TLS. |
| Own database | PostgreSQL 18 with PostGIS 3.6 and the pg_trgm extension, which is the default engine, or an Oracle Database 19c or later schema (see below). |
| Client databases | Oracle, SQL Server or PostgreSQL. ECenter is tested with Oracle Database 23 Free, SQL Server 2022 and PostgreSQL 18. The queries it generates use FETCH FIRST and OFFSET … FETCH, which require at least Oracle 12c and SQL Server 2012. |
| Users' browsers | A current version of Chrome, Edge, Firefox (also the ESR) or Safari, on the desktop or on mobile: those supported by Angular, with which the web application is built. |
| Headless browser (optional) | The chromedp/headless-shell image with the version that deploy/compose.yaml brings. |
| Routing engine (optional) | Valhalla 3.9 (the ghcr.io/valhalla/valhalla-scripted image of deploy/compose.yaml) or OpenRouteService. |
The own database#
The own database can be in PostgreSQL, which is the default engine and the one of the sample installation, or in an Oracle schema, for those who want a single database. It is chosen with ECENTER_DB_URL. In both, ECenter creates and updates its schema by itself, on startup.
In PostgreSQL#
The own database must meet three conditions:
- The ECenter user owns the database and is not a superuser. Since PostgreSQL 15 only the owner can create tables in the
publicschema. Not being a superuser limits what someone who obtained its password could do. On a managed service, create a user that owns the database; do not use the service administrator. - The
postgisextension exists in the database. It is not a trusted extension: a superuser (or whoever administers the service) must create it before the first start, withCREATE EXTENSION postgis;in the ECenter database. Geographic layers and maps use it. - The
pg_trgmextension exists, or the ECenter user can create it. It has been trusted since PostgreSQL 13: the database owner creates it. If the user does not have theCREATEpermission on the database and the extension has not been created, the backend does not start and the log says which permission is missing. The text searches of the audit, the command palette and the user list use it.
With the sample Docker Compose installation you do not have to do any of this: the database container prepares it the first time it starts (see Installing with Docker Compose).
-- On your own or a managed PostgreSQL, as superuser, before the first start
CREATE ROLE ecenter LOGIN NOSUPERUSER NOCREATEDB NOCREATEROLE PASSWORD 'change-this-key';
CREATE DATABASE ecenter OWNER ecenter;
\c ecenter
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
In Oracle#
| What | Requirement |
|---|---|
| Version | Oracle Database 19c or later, in any edition. |
| Character set | The database in AL32UTF8. |
| Options | None: no Spatial, no Text, no Partitioning. PostGIS and pg_trgm are not needed. |
| User | A single one for ECenter, with CREATE SESSION, CREATE TABLE, CREATE SEQUENCE and CREATE TRIGGER and quota on its tablespace, and nothing else. It is not the user with which the connections query the data. |
How it is prepared, how it is chosen and what changes compared with PostgreSQL is in The own database in Oracle.
Connections#
The backend opens at most 10 connections to the own database (the default pool), shared by requests, jobs and maintenance. With several instances, the total cannot exceed PostgreSQL's max_connections (100 in the PostGIS image); in Oracle, count them in PROCESSES and SESSIONS. See Resources, jobs and queries.
Memory and CPU#
To start with:
| Part | CPU | Memory |
|---|---|---|
| Backend | 2 | 4 GB |
| Own database | — | 1 GB |
| Frontend | — | 256 MB |
| Headless browser (optional) | — | 1-2 GB (2 GB in deploy/compose.yaml, with its shared memory) |
| Valhalla routing engine (optional) | 2 | 6 GB to build the graph of Spain the first time; about 250 MB while running |
What needs the most memory are cubes: what each one calculates stays in the backend's memory until it expires. A cube cannot exceed an estimated 256 MB (ecenter.cube.max-bytes) and 200,000 value combinations (ecenter.cube.max-rows).
Important
The backend JVM takes 75 % of its container's memory limit for its heap. The container must have a limit: without one, the JVM would see all the machine's memory and take 75 % of it, shared with the database and with Chromium. deploy/compose.yaml sets a limit on each service. If you install without containers, or with an orchestrator that sets no limits, set the heap by hand (see Memory).
With real use, look in Administration › Operations at the memory after the last garbage collection (the alert fires at 90 %), the queued jobs and the sessions waiting in each pool.
Disk#
| What | How much |
|---|---|
| Own database | It grows mainly with the audit: each query to a client database leaves an entry with its SQL, which is kept for 90 days. As a reference, in PostgreSQL, a million entries take about 600 MB of table and about 270 MB of search indexes. |
| Container logs | With deploy/compose.yaml, at most 5 files of 50 MB per service. |
| Backend temporary files | External data and layer uploads, while they last (up to 24 hours), in the JVM's temporary directory. A file cannot exceed 100 MB by default. The console warns if less than 1 GB is free. |
| Routing engine | For Spain and the Canary Islands, about 6 GB (the extract, the graph and its auxiliary databases). |
Network#
- A host name of its own with its TLS certificate (
ecenter.example.org), on the frontend or on the proxy in front of it. ECenter goes at the root of that name, not under a path. - The backend must reach the own database, each client database that is added, the SMTP server and, if they are used, the identity provider, the headless browser and the routing engine.
- The headless browser must reach the frontend and, if there is a base map, the base map server. Without internet access a self-hosted base map is needed.
- Users' browsers only need to reach the frontend and, if there is an external base map, its provider.
Ports#
| Port | Part | Who uses it | Published? |
|---|---|---|---|
8080 (or that of ECENTER_HTTP_PORT) |
Frontend | Users, or the proxy in front | Yes: it is the only entry point |
8443 (or another) |
Frontend with its own TLS | Users | Only if the frontend terminates TLS |
8080 |
Backend | Frontend | No |
5432 in PostgreSQL or 1521 in Oracle, unless changed |
Own database | Backend | No |
That of each engine (1521 in Oracle, 1433 in SQL Server and 5432 in PostgreSQL, unless changed) |
Client databases | Backend | No |
587, 465 or 25 |
SMTP server | Backend | No |
9222 |
Headless browser (DevTools) | Backend | Never: whoever reaches it can open any page with that browser |
8002 |
Valhalla | Backend | No |
That of ECENTER_MANAGEMENT_PORT (for example, 9090) |
Backend, management port | Prometheus and the orchestrator's probes | No: only on the internal network |
License#
Each installation needs an Action Ware license, issued for the installation's identifier. Without it you can sign in and install it, but nothing else. See The license.