MariaDB or PostgreSQL, ready
When you connect a server you choose the database and SERVILINUX installs it with your system’s version, listening only inside the server.
Databases
The database is usually the first thing to fall short when a project grows. Choosing well, setting it up for your server and organizing large tables makes the difference between a page that flies and one that crawls.
Swipe the diagram to see all of it
An orders table with over a million rows, split by month. When the shop or the API asks for October orders, PostgreSQL only reads the October partition and leaves the rest untouched: less disk, less memory and faster answers.
When you connect a server you choose the database and SERVILINUX installs it with your system’s version, listening only inside the server.
If an app on another server needs the database, you open its port only to that IP with the panel firewall.
Connections, queries per second, cache and disk use of MariaDB and PostgreSQL, with alerts and history.
Ask how to fit the settings to your server’s memory, which indexes are missing or how to split a table that keeps growing. It explains every change before you apply it.
First, memory. With 16 GB and the database as the main service, this is a good starting point:
# /etc/postgresql/17/main/conf.d/servilinux.conf
# 16 GB RAM, SSD disk
shared_buffers = 4GB
effective_cache_size = 12GB
work_mem = 32MB
maintenance_work_mem = 1GB
random_page_cost = 1.1
effective_io_concurrency = 200Then split the table by month. That way each query reads only the month it needs and archiving old months is instant:
CREATE TABLE pedidos (
id bigserial,
creado timestamptz NOT NULL,
cliente_id bigint NOT NULL,
total numeric(12,2),
PRIMARY KEY (id, creado)
) PARTITION BY RANGE (creado);
CREATE TABLE pedidos_2026_10 PARTITION OF pedidos
FOR VALUES FROM ('2026-10-01') TO ('2026-11-01');
CREATE INDEX ON pedidos (cliente_id, creado);Create each month’s partition before it starts; you can schedule a task that does it automatically. If your apps also run on this server, lower shared_buffers to 3 GB. Shall I review the slowest queries first?
Coming soon to the panel: create databases and users with passwords that never travel in clear text, scheduled backups with restore and secure access from DBeaver or TablePlus.
In SERVILINUX
MariaDB or PostgreSQL when you connect the server.
Put the connection details in the project variables.
Its metrics and alerts appear next to the server’s.
Settings, indexes and partitions explained step by step.
Connect your first server in minutes. The rest, from any cloud you prefer, join the same panel.