Skip to content

Percona Guide

Percona as HEAL's config database: architecture, replication, tables, Consul keys, and links to the upgrade procedures.

4 min read Updated SS

Introduction#

Percona is a service, and support solution for managing and optimizing databases. Percona aims to ensure optimal performance, high availability, and scalability for databases. Percona stands out for its strong emphasis on security, reliability, and performance for database operations. HEAL uses a Percona (MySQL 8.x-compatible) database as its relational store.

Percona is integrated within the HEAL platform as the underlying database layer, providing a robust, high-performance, and scalable foundation for storing only config data.

Percona plays a critical role in ensuring efficient data ingestion and consistent data availability across components like Control Center, data receivers, and analytics modules. Its support for replication and clustering enables HEAL to maintain fault tolerance and seamless data synchronization across nodes, which is essential for large-scale, high-load environments.

Monitoring a MySQL database? MySQL in Supported Technologies covers the MySQL databases that HEAL monitors as components, not HEAL’s own Percona database. This guide covers HEAL’s Percona database layer: its architecture, behavior, tables and Consul keys, with links to the upgrade procedures.

Architecture#

Architecture diagram showing Percona at the center connected to Trino DB, Advance Analytic DS UI, HEAL Control Center, Redis Micro-Service, HEAL API Service, Event Correlation, ML Flow, Job Executor, and Keycloak

Percona Behavior#

Master–Master Replication#

Master–master replication is a bi-directional replication configuration in which two Percona nodes function as both master and replica simultaneously. In this setup, each node supports read and write operations, and any changes performed on one node are automatically replicated to the other, ensuring data consistency and high availability.

Key characteristics are as follows:

  • Both nodes accept read and write operations.
  • Data changes are synchronized across nodes in real time.
  • Provides high availability and redundancy for critical systems.

In this configuration, replication occurs in both directions:

Percona Node 1 Master/Replica and Percona Node 2 Master/Replica bi-directional replication diagram

This setup ensures high availability and redundancy by maintaining synchronized data across both nodes:

  1. Each node acts as both master and replica.
  2. Changes (writes) on Node 1 are replicated to Node 2.
  3. Changes on Node 2 are simultaneously replicated back to Node 1.
  4. Replication uses binary logs and relay logs to sync data between nodes.

Note: Although referred to as “Master–Master” replication, this setup is technically implemented as two Master–Replica replication configurations, established in reverse directions between the nodes.

Percona Tables Overview#

The following section provides a structured description of a few database tables used in HEAL for configuration, data collection, and system management.

For example:

1. Timezone and Type Configuration

  • mst_timezone: Stores timezone details for accounts, applications, and users. Contains only master data.
  • mst_type: Defines attribute types used across HEAL modules (e.g., KPI, agent, signal). Non-modifiable master data.
  • mst_subtype: Defines subtypes corresponding to each type. Non-modifiable master data.

2. Component and Version Management:

  • mst_component_type: Lists supported component types for data collection.
  • mst_component: Contains component details; supports custom entries via API.
  • mst_component_mapping: Maps component types to components.
  • mst_component_version / mst_common_version: Defines supported versions and groups similar versions.

3. Attribute and KPI Configuration:

  • mst_common_attributes: Stores attributes used in data collection.
  • mst_component_attribute_mapping: Maps components to attributes.
  • mst_kpi_group / mst_kpi_details: Defines grouped and non-grouped KPIs.
  • mst_component_version_kpi_mapping: Maps components with KPIs.

4. Producer Configuration:

  • mst_producer_type: Defines supported data collection methods (JDBC, JMX, SSH, HTTP, etc.).
  • mst_producer & related tables: Store producer configurations and parameters.

5. Mapping and Tagging

  • tag_details / tag_mapping: Enables flexible mapping across entities (KPI, services, agents, etc.).

6. Agent and Account Management:

  • agent / component_agent / jim_agent: Stores agent configurations.
  • agent_account_mapping / agent_comp_instance_mapping: Defines agent relationships.

7. Maintenance and Scheduling:

  • maintenance_details: Defines maintenance windows for filtering KPI data.
  • service_maintenance_mapping / recurring_details: Maps and schedules maintenance.

8. Access Control and User Management:

  • mst_roles / mst_access_profiles: Defines roles and access profiles.
  • user_attributes / user_access_details: Stores user access and permissions.

9. Routing and UI Configuration:

  • mst_routes / mst_page_actions: Defines API routes and UI actions.
  • mst_routes_mapping: Maps routes to features and permissions.

10. KPI Configuration:

  • comp_instance_kpi_configuration: Stores persistence and suppression settings.
  • comp_instance_kpi_threshold_details: Stores threshold configurations per KPI.

Note: Do not modify the tables below:

  • mst_access_profile_feature_mapping
  • mst_access_profile_mapping
  • mst_access_profiles
  • mst_big_features
  • mst_category_details
  • mst_common_attribute_type_values
  • mst_common_attributes
  • mst_common_version
  • mst_component
  • mst_component_attribute_auto_discovery_mapping
  • mst_component_attribute_mapping
  • mst_component_files
  • mst_component_mapping
  • mst_component_type
  • mst_component_version
  • mst_component_version_kpi_mapping
  • mst_computed_kpi_details
  • mst_computed_kpi_mappings
  • mst_connector_chain_worker_mapping
  • mst_connector_chains
  • mst_connector_details
  • mst_connector_instance_details
  • mst_connector_instance_worker_parameters_mapping
  • mst_connector_template
  • mst_connector_worker_parameters
  • mst_connector_workers
  • mst_dashboard
  • mst_dashboard_filters
  • mst_dashboard_filters_mapping
  • mst_date_component_data
  • mst_date_picker_setting
  • mst_datepicker_dashboard_mapping
  • mst_domain_entities
  • mst_domain_feature_mapping
  • mst_error_codes
  • mst_features
  • mst_filter_types
  • mst_graphql_queries
  • mst_graphql_query_entities_mapping
  • mst_jim_exit_details
  • mst_jim_exit_type_mapping
  • mst_kpi_details
  • mst_kpi_group
  • mst_llm_commands
  • mst_page_actions
  • mst_producer
  • mst_producer_attributes
  • mst_producer_kpi_mapping
  • mst_producer_type
  • mst_refresh_conf_details
  • mst_role_feature_mapping
  • mst_roles
  • mst_routes
  • mst_routes_mapping
  • mst_sub_type
  • mst_timezone
  • mst_type
  • mst_widget_types

Consul Keys#

The Percona module utilizes a set of consul keys designed to facilitate its configuration and operation. These keys are essential for the module to function correctly and efficiently.

The consul keys are as follows:

service/perconadb/idleconnections
service/perconadb/maxpoolsize
service/perconadb/connectiontimeout
service/perconadb/idleconnectiontimeout
service/perconadb/maxlifetime
service/perconadb/tls1.2/jdbcparams
service/perconadb/ip
service/perconadb/port
service/perconadb/username
service/perconadb/password_ui

Upgrading Percona#

Percona installation is performed automatically as part of the HEAL installer. The Percona upgrade procedures are in Install & Upgrade > Upgrade & Migration:

  • Upgrading Percona to v9.7.1 (sign-in required) — upgrade Percona to v9.7.1 in High Availability (HA) and standalone deployments. You migrate Percona to the intermediate version v8.4.8 first, validate it, and then upgrade it to v9.7.1.
  • Upgrade Percona to v8.4.8 (HEAL v2.3.2 to v2.3.4) — upgrade the two Percona nodes from v8.0.42 to v8.4.8 on HEAL v2.3.2, HEAL v2.3.3 and HEAL v2.3.4, with the replication checks before and after the upgrade.

Next