Containers, Kubernetes, OpenShift on Power

 View Only

Best Practices Guide for deploying MariaDB Enterprise Server on IBM Power with Red Hat Enterprise Linux

By Jenna Murillo posted Mon August 12, 2024 01:35 PM

  

Best Practices Guide for deploying MariaDB Enterprise Server on IBM Power with Red Hat Enterprise Linux

In today's data-driven world, businesses require robust database solutions that deliver exceptional performance and cost-effectiveness. This best practice guide explores the powerful combination of MariaDB® Enterprise Server on IBM® Power® with Red Hat® Enterprise Linux®. This deployment strategy unlocks significant cost savings while unleashing superior performance per core compared to traditional x86 platforms. We'll delve into the configuration steps for both on-premises and off-premises deployments, leveraging IBM Power Virtual Server for maximum flexibility. Get ready to optimize your database infrastructure and empower your applications with unmatched efficiency.

Background

MariaDB Enterprise Server is a modern relational database management system (RDBMS) supporting ACID-compliant transactions, analytics, data warehousing, and distributed SQL. For more information, refer to the MariaDB Enterprise Server Technical Documentation.

IBM Power is a family of servers designed to provide the agility, reliability, and sustainability organizations require. For more information, refer to the IBM Power Facts and Features Documentation.

Configuration

Running MariaDB on IBM Power offers substantial cost reductions and up to 4.2x superior performance per core compared to the x86 platform. See the MariaDB Performance Benchmarking on Linux on Power for more detailed performance results. To achieve optimal performance results, follow these steps.

Environmental setup

  • Decide on deploying Red Hat OpenShift Container Platform on-premises or off-premises with IBM Power Virtual Server in the IBM Cloud.
  • Install Red Hat Enterprise Linux CoreOS, which includes Red Hat OpenShift Container Platform 4.x, on the prepared hardware.

Configure MariaDB database to run on-premises

Leverage IBM Power's scalability and performance for demanding workloads. Its exceptional virtualization and management features enhance flexibility, security, and isolation, with an integrated stack for seamless operation. Additionally, IBM Power boasts a leading reliability rating for 14 consecutive years, translating to a distinct total cost of ownership (TCO) advantage.

Follow these steps to configure the database to run on IBM Power:

  1. Primary/Replica deployment: To install MariaDB Enterprise in a Primary/Replica architecture, refer to the Deploy Primary/Replica Topology with Enterprise Server 10.6 documentation.
  2. Install Enterprise Server on each database node:
    1. Retrieve your MariaDB Enterprise Download Token.
    2. Configure the repository using mariadb_es_repo_setup command.
    3. Install MariaDB Enterprise Server with the package manager.
  3. Configure the primary database node:
    1. Configure memory settings for optimal performance and stability (refer to the Memory configuration section).
    2. Create a replication user.
    3. Create a MaxScale user.
  4. Configure the replica database nodes and start replication:
    1. Configure memory settings as on the previous step.
    2. Create the replication and MaxScale users.
    3. Start replication.
  5. Test the database nodes and replication:
    1. Test the Enterprise Server service.
    2. Test local client connections.
    3. Verify replication status.
    4. Test Data Definition Language (DDL) and Data Manipulation Language (DML) operations.
  6. Install MaxScale on each MaxScale node:
    1. Use mariadb_es_repo_setup with your MariaDB Enterprise Download Token to configure the repository.
    2. Install MaxScale using the package manager.
  7. Configure MaxScale to manage the database nodes:
    1. Configure server objects.
    2. Configure MariaDB monitor.
    3. Choose and configure a MaxScale router.
    4. Configure a listener.
  8. Test MaxScale:
    1. Verify global configuration.
    2. Check server, monitor, and service configurations.

Memory configuration for optimal performance and stability

Refer to the following resources for in-depth configuration guides:

Configure MariaDB memory usage:

  1. Check the available RAM on the server.
  2. Determine concurrency requirements - expected maximum simultaneous connections.
  3. Calculate potential total RAM usage for connections.
  4. Calculate RAM usage by the OS.
  5. Configure the InnoDB buffer pool to utilize the remaining available RAM.

 

Configure Linux for MariaDB:

  1. Check the disk IO scheduler and adjust if necessary.
  2. Check the open files limit.
  3. Set the open files limit using the appropriate method: 
    1. For system: Edit mariadb.service.
    2. For mysqld_safe: Edit the server configuration file.
    3. For MySQL user: Edit the limits.conf file.
  4. Configure swappiness: Set to a low number or disable it entirely. 

Configure MariaDB database to run off-premises with IBM Power Virtual Server

IBM Power Virtual Server is a Power Systems offering. Power Virtual Servers are located in the IBM data centers, distinct from the IBM Cloud servers, with separate networks and direct-attached storage. You can use the Power Virtual Servers to deploy a virtual server, also known as a logical partition (LPAR), within minutes. Power Virtual Server LPARs align with MariaDB certified on-premises LPAR configuration.

For detailed instructions on how to set up IBM Power Virtual Server for installing Red Hat OpenShift Container Platform, refer to the Set up IBM Power Virtual Server for installing Red Hat OpenShift Container Platform documentation.

For detailed instructions on how to deploy Red Hat OpenShift Container Platform on IBM Power Virtual Server using user-provisioned infrastructure installation, refer to the Deploy Red Hat OpenShift Container Platform on IBM Power Virtual Server using user-provisioned infrastructure installation documentation.

Conclusion

Implement these best practices and witness the performance and cost benefits of deploying MariaDB Enterprise Server on IBM Power with Red Hat Enterprise Linux. Empower your applications with a robust database foundation.

Permalink