MariaDB Consulting for Teams That Run MariaDB at Scale
MinervaDB delivers senior-led MariaDB consulting, on-site and remote, for engineering teams whose business depends on the database: architecture and schema design, performance engineering, benchmarking, capacity planning, high availability, reliability engineering, data recovery and security.
Every MariaDB consulting engagement is led by principal-level DBAs who have carried production estates through seasonal traffic peaks, strict SLAs and 3 a.m. failovers. We are vendor-neutral, we work on Community and Enterprise Server alike, and we are usually available at short notice.
Architecting MariaDB operations for web-scale performance and reliability
MariaDB runs checkouts, ledgers and real-time analytics, yet many teams still treat it as just another MySQL fork. It is a distinct engine with its own optimizer, replication, storage engines and release calendar, and our MariaDB consulting practice treats it that way.
The first question in any MariaDB consulting engagement is which server is actually running, and for how long it will be maintained. MariaDB Community Server 10.6 reached end of life on 6 July 2026, and it is still the version we find most often in estates that have not been touched for a few years. Four long-term series are maintained today: 10.11, 11.4, 11.8 and 12.3. The 13.x line is a rolling release and not a production target.
For an estate on 10.6 or older we normally plan to land on 11.8 or 12.3, one major version at a time, with every hop rehearsed on a clone. The dates in Figure 1 come from the MariaDB Foundation’s maintenance policy, which we re-read at the start of each engagement.
- Upgrades from 10.x into 11.8 cross the change of default character set to
utf8mb4with UCA 14.0.0 collations; mixed-collation joins are the usual casualty - Recent series enable
innodb_snapshot_isolationby default, which surfaces write conflicts that older versions hid - System variables removed in a new series stop the server from starting if
my.cnfstill sets them, so we boot the target version against a copy of the production configuration first - MariaDB to MySQL has no in-place path. We say so before a team adopts MariaDB-only features, not after
-- Step zero on every server. Read-only.
SELECT
VERSION() AS server_version,
@@version_comment AS distribution,
@@innodb_version AS innodb_version,
@@character_set_server AS default_charset,
@@collation_server AS default_collation,
@@gtid_strict_mode AS gtid_strict_mode;
Listing 1. Distribution packages that install a mysql command frequently run MariaDB. Our MariaDB consulting work establishes vendor, version and defaults before any version-sensitive advice is given.
Capacity planning and sizing: right-size before you scale
Capacity planning is where most scaling incidents are quietly won or lost. Under-provision and the database throttles during a checkout stampede or a month-end batch. Over-provision and budget burns on cores that never leave idle.
The discipline we apply in MariaDB consulting is to size an instance around its most saturated resource, because a database is only as fast as whichever of CPU, memory, storage or network hits the wall first. We size across four coupled dimensions: CPU for concurrency and query execution, memory for the InnoDB buffer pool and per-connection buffers, storage IOPS and throughput for redo, flushing and cache misses, and network for replication and result sets.
We forecast concurrency with Little’s Law, L = λW, where λ is the arrival rate in queries per second and W is the average service time. 8,000 queries per second at a 4 ms service time means roughly 32 queries in flight, a figure that drives both max_connections and core count. The arithmetic is illustrative; the inputs come from your own telemetry.
- Size the buffer pool for the hot working set first, then IOPS to survive cache misses, then CPU for concurrency, then network for replication fan-out
- Getting that order wrong is the most common cause of “we scaled the instance up and it is still slow”
- Confirm the fit with 7 to 14 days of production metrics before committing to an instance family or reserved capacity
- Surviving nodes must carry full load after a loss: plan N−1, not N
| Workload profile | vCPU : RAM | Storage class | Buffer pool | Primary bottleneck |
|---|---|---|---|---|
| OLTP, read-heavy | 1 : 4 | General-purpose SSD | about 75% of RAM | Buffer pool hit ratio |
| OLTP, write-heavy | 1 : 2 | Provisioned IOPS or local NVMe | about 65% of RAM | Redo and flush throughput |
| OLTP, balanced | 1 : 3 | General-purpose SSD | about 70% of RAM | Mixed; watch p95 latency |
| Analytics, columnar | 1 : 8 | Throughput-optimised | Not applicable (ColumnStore) | Scan throughput and RAM |
| High-concurrency web | 1 : 3 | General-purpose SSD plus a pooler | about 70% of RAM | Connection and thread scheduling |
| Batch and ETL | 1 : 4 | Provisioned IOPS or local NVMe | about 65% of RAM | Sequential write throughput |
Starting points only, expressed as vCPU to GiB of RAM. The right node is the smallest one whose bottleneck column has comfortable headroom under measured peak load. Local NVMe is ephemeral and must be paired with replication and backups.
-- Is the working set in memory, and is purge keeping up? Sample twice and compare the deltas.
SELECT
variable_name,
variable_value
FROM
information_schema.global_status
WHERE
variable_name IN (
'Innodb_buffer_pool_read_requests',
'Innodb_buffer_pool_reads',
'Innodb_buffer_pool_wait_free',
'Innodb_history_list_length',
'Threads_running',
'Max_used_connections'
);
Listing 2. Six counters that anchor a MariaDB consulting sizing discussion. A rising Innodb_buffer_pool_reads delta under steady traffic says the buffer pool is too small for the working set; a growing history list says long transactions are stalling purge.
Optimal and scalable SQL engineering
Fast databases start with disciplined SQL and schema. In MariaDB consulting work we treat every query as a contract against an index, and we help teams enforce that contract in CI so regressions do not reach production.
Schema first, queries second
Use INT UNSIGNED until you expect more than four billion rows, then move to BIGINT. utf8mb4 is mandatory: the legacy three-byte utf8 cannot store four-byte characters such as emoji, and the failures are hard to trace.
Access-path contracts
Every hot SELECT should use a covering index or prune to a partition. A CI gate that fails the build when rows examined greatly exceed rows returned is a reliable early warning for a missing or wrong index.
Hot-spot-free identifiers
CREATE SEQUENCE with a cache hands out identifiers without the contention of a single AUTO_INCREMENT counter. For multi-region writes we combine sequences with an increment and offset per region so identifiers never collide.
-- MariaDB-specific: ANALYZE runs the statement and reports estimated and actual rows side by side.
ANALYZE FORMAT=JSON
SELECT
o.order_id,
o.total_amount,
o.created_at
FROM
orders AS o
WHERE
o.customer_id = 48213
AND o.created_at >= NOW() - INTERVAL 30 DAY
ORDER BY
o.created_at DESC
LIMIT 20;
-- If r_rows is far above the rows returned, the access path is wrong. A composite index that matches
-- the filter and the sort removes both the scan and the filesort (descending key parts: MariaDB 10.8+).
ALTER TABLE orders
ADD INDEX idx_orders_customer_id_created_at (customer_id, created_at DESC),
ALGORITHM = INPLACE,
LOCK = NONE;
-- One sequence per region; increment and start keep the ranges disjoint.
CREATE SEQUENCE seq_order_id
START WITH 1
INCREMENT BY 3
CACHE 1000
ENGINE = InnoDB;
Listing 3. A typical MariaDB consulting change: plan evidence first, an online index build, and a cached sequence. Table and column names are placeholders. Blast radius of the ALTER: I/O and replication lag while the index builds; rollback is DROP INDEX.
Choosing storage engines and designing schema for scale
One of MariaDB’s strengths is its pluggable storage engine architecture. Choosing the engine per table, instead of defaulting everything to InnoDB, can change compression, write throughput or scan speed by a wide margin.
| Engine | Best for | Avoid when | Key characteristic |
|---|---|---|---|
| InnoDB | Default OLTP needing ACID and row locks | Streaming very large BLOBs | Crash-safe, MVCC, clustered index |
| MyRocks | Write-heavy workloads where compression matters | Heavy range scans; mixed-engine transactions | LSM tree, low write amplification |
| Aria | Internal temporary tables, read-mostly lookups | Transactional user data | Lightweight, crash-safe, not transactional |
| ColumnStore | Large-scale analytics | Sub-second point lookups | Distributed columnar MPP |
| Spider | Transparent horizontal sharding | Workloads dominated by cross-shard joins | Federated sharding layer |
Functional partitioning
Split a monolithic schema into domain-aligned services, each with its own database, so teams can evolve and scale their data without cross-team migration coupling.
Horizontal sharding key rules
Key cardinality should comfortably exceed the number of future shards. Distribution must be even, validated on real data and not assumed. Avoid cross-shard unique constraints, because they force expensive global coordination.
JSON instead of EAV
For sparse attributes, a JSON column with generated columns over the keys you filter on avoids joining several attribute tables in a classic entity-attribute-value model, and keeps the hot paths indexable.
Purge-lag early warning
In MariaDB consulting reviews we alert on Innodb_history_list_length rising steadily against its own baseline. It means long-running transactions are stalling purge, and undo growth and slower reads follow.
Vectors beside relational rows
MariaDB Vector adds a VECTOR(n) column type and a VECTOR INDEX to the server, available from MariaDB Community Server 11.7 and MariaDB Enterprise Server 11.4.5-3. For a catalogue, a knowledge base or a support history that already lives in MariaDB, that removes a second datastore and a sync job: the embedding is written in the same transaction as the row and is covered by the same backup.
We treat it as schema design. Dimension count is fixed in the column definition, the distance metric is fixed in the index, and both follow from the embedding model, so a model change is a migration to plan. Before recommending it we measure recall and latency on your data, and where the numbers call for a dedicated engine our vector data engineering team says so.
CREATE TABLE document_embeddings (
document_id BIGINT UNSIGNED NOT NULL,
chunk_no SMALLINT UNSIGNED NOT NULL,
body TEXT NOT NULL,
embedding VECTOR(1536) NOT NULL,
CONSTRAINT pk_document_embeddings
PRIMARY KEY (document_id, chunk_no),
VECTOR INDEX vidx_document_embeddings_embedding (embedding)
M = 8 DISTANCE = cosine
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4;
SELECT
document_id,
chunk_no
FROM
document_embeddings
ORDER BY
VEC_DISTANCE_COSINE(embedding, VEC_FromText(@query_vector))
LIMIT 10;
Listing 4. One vector index per table, on a NOT NULL column, queried with a bare ORDER BY … LIMIT. Confirm with ANALYZE that the vector index was used.
Performance and scalability deep dive
In our MariaDB consulting practice, tuning is measured against a repeatable number, not a feeling. We baseline first, change one thing, and measure again on the same data.
Benchmarking toolkit
We baseline with sysbench for synthetic comparison and with a replay of captured production traffic for anything that will drive a purchasing decision. A benchmark result we report always names the hardware, the MariaDB version, the configuration and the dataset size, so that it can be reproduced.
Tuning workflow
Capture the slow query log with plans for a representative window, rank statements by total time, then work down the list with ANALYZE FORMAT=JSON. Afterwards we remove redundant indexes, because every index that is never read still costs writes.
Scale-out without shards
Before accepting the operational cost of sharding we exhaust replica-based scaling: asynchronous and semi-synchronous replicas for reads, and Galera where synchronous writes are worth their latency.
# Synthetic baseline. Credentials come from the environment, never from the command history. sysbench oltp_read_write \ --mysql-host="$DB_HOST" \ --mysql-user="$DB_USER" \ --mysql-password="$DB_PASSWORD" \ --mysql-db=sbtest \ --tables=32 \ --table-size=10000000 \ --threads=128 \ --time=300 \ --report-interval=1 \ run
Listing 5. Run against a test instance only. Thread count, table count and table size are illustrative and are set from the production workload shape.
| Parameter | What we often inherit | Proposed starting point | Applies |
|---|---|---|---|
innodb_buffer_pool_size |
Default 128 MiB, or a guess | 70 to 75% of RAM on a dedicated host, confirmed against the working set | Online, SET GLOBAL |
log_slow_verbosity |
Empty | query_plan,innodb |
Online |
long_query_time |
10 seconds | 0.1 seconds | Online; new sessions |
thread_handling |
one-thread-per-connection |
pool-of-threads for high connection counts |
Restart |
max_connections |
Tens of thousands “to be safe” | Sized from Little’s Law, with a pooler in front | Online |
innodb_flush_method |
Copied from an old MySQL guide | Leave at the default; the variable is deprecated in the 11.x series | Remove from my.cnf |
Quick wins we typically validate in a first MariaDB consulting engagement. Each is checked on your version before it is applied, staged on a replica first, and recorded with the previous value as the rollback.
High availability and disaster recovery
MariaDB consulting on availability starts by matching the topology to the business’s tolerance for data loss and downtime, and to budget. The objectives below are design targets. They become commitments only after a drill has measured them on your system.
| Solution | Data-loss exposure | Recovery | Relative cost |
|---|---|---|---|
| Async replica with automated failover | The replication lag at the moment of failure | Promotion by MaxScale or Orchestrator | $ |
| Semi-synchronous replication | None for acknowledged commits with AFTER_SYNC |
Promotion of the acknowledging replica | $$ |
| Galera three-node cluster | None for committed transactions | Traffic moves to surviving nodes | $$ |
| Cross-region replica plus delayed replica | Cross-region lag; the delay protects against operator error | Controlled regional failover | $$$ |
MaxScale is a capable proxy with automatic failover, read/write splitting and transaction replay. It is released under the Business Source License, so production use needs a licensing check, and we raise that in every design. ProxySQL and HAProxy are open alternatives with different capabilities.
Galera suits read-heavy workloads with modest, well-distributed writes. Large transactions, hot rows and long-running DDL are where it hurts, and flow control is the first thing we read when a cluster stalls.
-- Galera health in one statement.
SELECT
variable_name,
variable_value
FROM
information_schema.global_status
WHERE
variable_name IN (
'wsrep_cluster_size',
'wsrep_cluster_status',
'wsrep_local_state_comment',
'wsrep_flow_control_paused',
'wsrep_local_recv_queue_avg',
'wsrep_local_cert_failures'
);
Listing 6. A wsrep_flow_control_paused value that keeps rising means one node cannot keep up and is throttling the whole cluster.
# Galera node, MariaDB 11.8 LTS. Every value explicit; addresses are placeholders. [mariadb] binlog_format = ROW default_storage_engine = InnoDB innodb_autoinc_lock_mode = 2 innodb_flush_log_at_trx_commit = 1 wsrep_on = ON wsrep_provider = /usr/lib/galera/libgalera_smm.so wsrep_cluster_name = prod_orders wsrep_cluster_address = gcomm://10.0.1.11,10.0.2.11,10.0.3.11 wsrep_node_address = 10.0.1.11 wsrep_sst_method = mariabackup wsrep_slave_threads = 8 wsrep_provider_options = "gcache.size=4G"
Listing 7. A minimal Galera configuration. gcache.size decides whether a returning node catches up incrementally or needs a full state transfer, so we size it from write volume and the longest maintenance window.
# Physical, hot: full backup streamed and compressed, then verified by preparing it elsewhere. mariadb-backup --backup --stream=mbstream --user="$BACKUP_USER" --password="$BACKUP_PASSWORD" \ | zstd -T4 > /backup/full_$(date +%F).mbstream.zst # Logical: consistent snapshot with the binary log position recorded as a comment. mariadb-dump --single-transaction --master-data=2 --routines --triggers --events \ --databases orders > /backup/orders_$(date +%F).sql # Restore drill on an isolated host: unpack, prepare, start, compare checksums. zstd -dc /backup/full_LATEST.mbstream.zst | mbstream -x -C /restore/data mariadb-backup --prepare --target-dir=/restore/data
Listing 8. The shape of the backup set. Binary log retention is set with binlog_expire_logs_seconds and the logs are shipped off the host, so point-in-time recovery does not depend on the server that failed.
Remote DBA services: the 24×7 run-book
Where MariaDB consulting ends, operations begin. Our managed operations desk works from a codified run-book, so every engineer on every shift responds the same way to the same signal. Predictable operations are the foundation of measurable reliability.
Golden-signals dashboard
Queries per second, 95th-percentile latency, replication lag, disk utilisation and Innodb_row_lock_waits. Everything else is a drill-down from these five.
Failover you rehearse
We run scheduled failover and zone-loss drills in staging and, with your consent, in controlled production windows. Failover you do not rehearse is failover you do not have.
Automated first response
Sustained replication lag pages the on-call DBA before customers notice. Disk utilisation above an agreed threshold triggers a purge review and a capacity alert, well before writes stall.
The run-book, thresholds and escalation path are written with your team during onboarding, and many teams move from a MariaDB consulting project straight to this desk. See MariaDB Support and Remote DBA for coverage tiers.
Data privacy and security in MariaDB consulting
We implement masking and pseudonymisation so that personal, cardholder and health data never leave production unprotected. Security is designed into the data path, not bolted on at the perimeter.
- MaxScale masking filter: pattern-based obfuscation applied at the proxy layer
- Tokenisation with a keyed hash for analytics copies, with keys held outside the database
- Data-at-rest encryption for tablespaces, redo and binary logs through a key management plugin
- Right-to-erasure workflows:
DELETEfollowed by an online rebuild to reclaim space - The server audit plugin shipping to an append-only store
| Regulation | Technical control | Audit artefact |
|---|---|---|
| GDPR | Pseudonymisation; deletion within an agreed SLA | Data-processing register |
| PCI DSS v4.0 | Network segmentation; PAN truncation | ASV scan report, ROC |
| HIPAA | Encryption at rest; TLS in transit | Security risk analysis |
| SOX | Immutable audit trail; dual control | Signed database change log |
When to bring in MariaDB consulting
Most teams ask for MariaDB consulting at one of four moments.
A traffic step is coming
You expect a multiple of today’s load within a quarter and need to know, with numbers, that the platform will hold.
Lag nobody can explain
Replication lag is cyclic and the dashboards are not telling you why.
An audit is close
A compliance audit is weeks away and card numbers or personal data are still in plaintext.
A migration with no downtime budget
From Amazon RDS to self-managed Galera, the reverse, or off an end-of-life version.
Every MariaDB consulting conversation can start with a free 30-minute architecture review. You leave with a short, prioritised list for your own dataset and growth curve, whether or not you engage us afterwards. Book your architecture review or email contact@minervadb.com.
MariaDB consulting rates, audits and flexible plans
We do both on-site and remote MariaDB consulting. You pay for the hours worked and for the instances we audit. We never ask for advances. Rates are in US dollars, plus GST or other goods and services tax where relevant.
| Service | What it covers | Rate |
|---|---|---|
| Remote MariaDB consulting | Performance optimisation, vertical and horizontal scaling, high availability, disaster recovery, usually at short notice | US $350 per hour |
| On-site MariaDB consulting | Senior consultants on your premises for strategic and technical work; we have travelled to 46 cities for database architecture and DBA consulting | US $500 per hour |
| MariaDB performance audit and health check | Configuration, expensive SQL, index operations, performance, scalability and reliability, with a detailed diagnostics report and recommendations | US $30,000 per MariaDB instance |
| MariaDB security audit | Database infrastructure operations security audit, with an actionable compliance and security plan for fixing vulnerabilities | US $25,000 per MariaDB instance |
| Data recovery services | Accidentally dropped databases or tables, corrupted data files, backups, replication or file systems. We always try our best and our recovery rate is high, but we cannot promise to recover 100% of the data | US $500 per hour |
Flexible consulting plans
For a startup, or a team that needs only a few hours each month: on-demand MariaDB consulting from the same senior consultants without a long-term contract.
| Average hours per month | Quarterly | Six-monthly | Annually |
|---|---|---|---|
| 4 | US $4,500 | US $8,500 | US $15,500 |
| 8 | US $7,500 | US $12,500 | US $25,500 |
| 12 | US $7,500 | US $15,500 | US $27,500 |
| 16 | US $8,500 | US $16,500 | US $30,500 |
| 20 | US $10,500 | US $18,800 | US $35,500 |
| 24 | US $15,000 | US $25,000 | US $45,500 |
| 28 | US $18,500 | US $35,500 | US $52,500 |
| 32 | US $21,500 | US $40,000 | US $55,500 |
| 36 | US $28,000 | US $52,000 | US $75,000 |
| 40 | US $35,500 | US $65,500 | US $82,000 |
What you get beyond the hours
Vendor-neutral and independent
Enterprise-class MariaDB consulting, 24×7 support and remote DBA services across MariaDB, MySQL, MyRocks, PostgreSQL and ClickHouse, with no licence to sell you.
A distributed 24×7 team
Consultants work from locations worldwide, which lets us hire the best people wherever they live and keep a desk staffed around the clock.
Pay as you go
You pay only for the MariaDB consulting hours worked. A pay-per-incident option exists for a single problem, and emergency support is available even if you are not yet a customer.
Transparent ticketing
Every piece of work is reported in detail: what we changed, why, and what it did for your database infrastructure.
Vacation DBA service
We cover your database operations while your resident DBA is on leave.
Cloud DBA services
IaaS and DBaaS alike, including Amazon RDS and Aurora, EC2, Google Cloud SQL, Microsoft Azure and Oracle Cloud, plus MariaDB ColumnStore and ClickHouse for analytics.
MariaDB consulting: frequently asked questions
What does a MariaDB consulting engagement with MinervaDB look like?
It starts with read-only access and a baseline: version and configuration, slow query log, replication and backup state. Within the first week you receive a ranked list of findings with the measurement behind each one. We then either hand that list to your team or carry out the changes with you, staged on a replica first and each with a written rollback.
Do you work on MariaDB Community Server, Enterprise Server and managed services such as Amazon RDS?
Yes. Our MariaDB consulting team is vendor-neutral and works on Community Server, MariaDB Enterprise Server, and MariaDB on Amazon RDS, Azure and Google Cloud. We state clearly where behaviour differs between them, and we do not sell licences or subscriptions.
We are still on MariaDB 10.6 or older. What should we do?
Community maintenance for 10.6 ended on 6 July 2026, so the server no longer receives community security fixes. In a MariaDB consulting engagement we normally plan a move to the 11.8 or 12.3 long-term series, one major version at a time, with each hop rehearsed on a clone of production and the configuration, character set and SQL checked against the target version first.
Should we use Galera or standard replication for high availability?
It depends on the write pattern. Replication with automated failover is simpler and tolerates large transactions. Galera removes data loss on node failure and keeps the cluster writable, but commit latency follows the slowest node and hot rows cause certification conflicts. A MariaDB consulting review decides from your workload measurements, not from preference.
Is MaxScale free to use in production?
Recent MaxScale versions are released under the Business Source License, which restricts production use without a subscription until each version reaches its change date. We raise this in every design that includes MaxScale and compare it with ProxySQL and HAProxy for the same requirement.
Can you migrate us from MySQL to MariaDB, or from MariaDB back to MySQL?
Both, and it is a common MariaDB consulting request. MySQL to MariaDB is usually the easier direction. MariaDB to MySQL has no in-place path, because data formats and GTID implementations have diverged, so it is a logical migration with an application audit. We tell you which features you depend on before you commit to either direction.
How is MariaDB consulting priced?
Remote consulting is US $350 per hour and on-site consulting is US $500 per hour. A performance audit and health check is US $30,000 per MariaDB instance, and a security audit is US $25,000 per instance. Flexible plans start at US $4,500 per quarter for an average of four hours a month. You pay only for hours worked and we do not ask for advances.
How quickly can a MariaDB consulting engagement start?
Usually at short notice. Emergency support is available around the clock, including for organisations that are not yet customers, and a Severity 1 incident gets a response within 15 minutes under a support agreement.
MinervaDB contacts: sales and general inquiries
Reach the MariaDB consulting team by phone or email at any hour.
| Business function | Contact |
|---|---|
| Global sales, 24×7 | (844) 588-7287 (USA, toll free) · (415) 212-6625 (USA) · (778) 770-5251 (Canada) |
| Fax | +1 (209) 314-2364 |
| General, sales and consulting | contact@minervadb.com |
| Support | support@minervadb.com |
| Remote DBA | remotedba@minervadb.com |
| Shiv Iyer, Founder and Principal | shiv@minervadb.com |
| Corporate address, California | MinervaDB Inc., 440 N Barranca Ave #9718, Covina, CA 91723 |
| Corporate address, Delaware | MinervaDB Inc., PO Box 2093 Philadelphia Pike #3339, Claymont, DE 19703 |
Related services and guides
MariaDB Support · MySQL Consulting · MySQL Support · Data Engineering · Mastering MySQL Schema Changes with gh-ost · The Guide to Database Corruption: Prevention, Detection and Recovery · Vertica Support · Greenplum Consultative Support
MariaDB is a trademark of MariaDB plc. MinervaDB is an independent services firm and is not affiliated with or endorsed by MariaDB plc or the MariaDB Foundation. Test every change before applying it to production and keep a proven disaster recovery posture.
Talk to the MariaDB consulting team
To see how MariaDB consulting from MinervaDB can help you architect and run enterprise-class MariaDB infrastructure, book an appointment or send us an email.