This is a read-only copy of the MariaDB Knowledgebase generated on 2025-05-01. For the latest, interactive version please visit https://mariadb.com/kb/.

Deploy HTAP Topology

Overview

This procedure describes the deployment of the HTAP topology with MariaDB Enterprise Server and MariaDB Enterprise ColumnStore 23.10.

MariaDB Enterprise ColumnStore 23.10 is a columnar storage engine for MariaDB Enterprise Server. This topology is best suited for Hybrid Transactional-Analytical Processing (HTAP) workloads.

This procedure has 4 steps, which are executed in sequence.

This procedure represents the basic product capability and uses 1 Enterprise ColumnStore node.

This page provides an overview of the topology, requirements, and deployment procedures.

Please read and understand this procedure before executing.

Procedure Steps

Support

Customers can obtain support by submitting a support case.

Components

The following components are deployed during this procedure:

ComponentFunction
MariaDB Enterprise ServerModern SQL RDBMS with high availability, pluggable storage engines, hot online backups, and audit logging.

MariaDB Enterprise Server Components

ComponentDescription
InnoDB• General purpose storage engine
• Support for Online Transactional Processing (OLTP) workloads
• ACID-compliant
• Performance
MariaDB Enterprise ColumnStore 23.10• Columnar storage engine
• Optimized for Online Analytical
• Processing (OLAP) workloads
• Scalable query execution

Topology

es-columnstore-htap-topology-s3-no-title

The MariaDB Enterprise ColumnStore HTAP topology is designed for hybrid transactional-analytical processing (HTAP) workloads.

The topology consists of:

  • One MaxScale node
  • One ColumnStore node running ES and Enterprise ColumnStore

The MaxScale node:

  • Monitors the health and availability of the ColumnStore node using the MariaDB Monitor (mariadbmon)
  • Accepts client and application connections
  • Routes queries to the ColumnStore node using the Read/Write Split Router (readwritesplit)

The ColumnStore node:

  • Receives queries from MaxScale
  • Executes queries
  • Uses a row-based storage engine, such as InnoDB to handle transactional queries
  • Uses Enterprise ColumnStore as the columnar storage engine to handle analytical queries
  • Uses cross-engine JOINs to join transactional and analytical tables
  • Replicates data between engines using MariaDB Replication
  • Optionally uses S3-compatible object storage for Enterprise ColumnStore data

Requirements

These requirements are for the HTAP topology when deployed with MariaDB Enterprise Server 11.4 and MariaDB Enterprise ColumnStore 23.10.

  • Operating System
  • S3-Compatible Object Storage Option
  • Preferred Object Storage Providers: Cloud
  • Preferred Object Storage Providers: Hardware

Operating System

In alignment to the enterprise lifecycle, the HTAP topology with MariaDB Enterprise Server 11.4 and MariaDB Enterprise ColumnStore 23.10 is provided for:

  • Debian 11 (x86_64, ARM64)
  • Debian 12 (x86_64, ARM64)
  • Red Hat Enterprise Linux 8 (x86_64, ARM64)
  • Red Hat Enterprise Linux 9 (x86_64, ARM64)
  • Rocky Linux 8 (x86_64, ARM64)
  • Rocky Linux 9 (x86_64, ARM64)
  • Ubuntu 20.04 LTS (x86_64, ARM64)
  • Ubuntu 22.04 LTS (x86_64, ARM64)
  • Ubuntu 24.04 LTS (x86_64, ARM64)

S3-Compatible Object Storage Option

The HTAP topology can use S3-compatible object storage to store ColumnStore data, but it is not required.

Many S3-compatible object storage services exist. MariaDB Corporation cannot make guarantees about all S3-compatible object storage services, because different services provide different functionality.

For the preferred S3-compatible object storage providers that provide cloud and hardware solutions, see the following sections:

  • Cloud
  • Hardware

The use of non-cloud and non-hardware providers is at your own risk.

If you have any questions about using specific S3-compatible object storage with MariaDB Enterprise ColumnStore, contact us.

Preferred Object Storage Providers: Cloud

  • Amazon Web Services (AWS) S3
  • Google Cloud Storage
  • Azure Storage
  • Alibaba Cloud Object Storage Service

Preferred Object Storage Providers: Hardware

  • Cloudian HyperStore
  • Dell EMC
  • Seagate Lyve Rack
  • Quantum ActiveScale
  • IBM Cloud Object Storage

Limitations

Cross-Database Queries

This implementation relies on replicate_rewrite_db, so it does not support cross-database queries with statement-based replication.

For example, if the replicated database is selected by the USE, then the query will replicate properly:

USE innodb_db;

INSERT INTO htap_test1
   VALUES (100);
SELECT * FROM columnstore_db.htap_test1;

+------+
| id   |
+------+
|  100 |
+------+

However, if the replicated database is not selected, and it is instead prefixed the table name in the query, then the query will not replicate properly:

USE columnstore_db;

INSERT INTO innodb_db.htap_test1
   VALUES (200);
SELECT * FROM columnstore_db.htap_test1;

+------+
| id   |
+------+
|  100 |
+------+

Semi-Synchronous Replication

This implementation has not been tested with semi-synchronous replication.

Parallel Replication

This implementation has not been tested with parallel replication.

Row-Based Replication

This implementation requires the binlog_format system variable to be set to STATEMENT. Row-based replication is not currently supported.

Quick Reference

MariaDB Enterprise Server Configuration Management

MethodDescription
Configuration FileConfiguration files (such as /etc/my.cnf) can be used to set system-variables and options. The server must be restarted to apply changes made to configuration files.
Command-lineThe server can be started with command-line options that set system-variables and options.
SQLUsers can set system-variables that support dynamic changes on-the-fly using the SET statement.

MariaDB Enterprise Server packages are configured to read configuration files from different paths, depending on the operating system. Making custom changes to Enterprise Server default configuration files is not recommended because custom changes may be overwritten by other default configuration files that are loaded later.

To ensure that your custom changes will be read last, create a custom configuration file with the z- prefix in one of the include directories.

DistributionExample Configuration File Path
• CentOS
• Red Hat Enterprise Linux (RHEL)
/etc/my.cnf.d/z-custom-mariadb.cnf
• Debian
• Ubuntu
/etc/my.cnf.d/z-custom-mariadb.cnf

MariaDB Enterprise Server Service Management

The systemctl command is used to start and stop the MariaDB Enterprise Server service.

OperationCommand
Startsudo systemctl start mariadb
Stopsudo systemctl stop mariadb
Restartsudo systemctl restart mariadb
Enable during startupsudo systemctl enable mariadb
Disable during startupsudo systemctl disable mariadb
Statussudo systemctl status mariadb

For additional information, see "Start and Stop Services".

MariaDB Enterprise Server Logs

MariaDB Enterprise Server produces log data that can be helpful in problem diagnosis.

Log filenames and locations may be overridden in the server configuration. The default location of logs is the data directory. The data directory is specified by the datadir system variable.

LogSystem Variable/OptionDefault Filename
MariaDB Error Loglog_error<hostname>.err
MariaDB Enterprise Audit Logserver_audit_file_pathserver_audit.log
Slow Query Logslow_query_log_file<hostname>-slow.log
General Query Loggeneral_log_file<hostname>.log
Binary Loglog_bin<hostname>-bin

Enterprise ColumnStore Service Management

The systemctl command is used to start and stop the ColumnStore service.

OperationCommand
Startsudo systemctl start mariadb-columnstore
Stopsudo systemctl stop mariadb-columnstore
Restartsudo systemctl restart mariadb-columnstore
Enable during startupsudo systemctl enable mariadb-columnstore
Disable during startupsudo systemctl disable mariadb-columnstore
Statussudo systemctl status mariadb-columnstore

Next Step

Navigation in the procedure "Deploy HTAP Topology".

Next: Step 1: Prepare ColumnStore Node.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.