Urgent.News

What's breaking now, across thousands of outlets.

Tech

GBase Database(GBase 8c): How to Build a Three-Node HA Cluster with gbase.yml

Writing a gbase.yml configuration from scratch is easier when you understand why each section exists. Instead of copying a template and changing IP addresses, this guide walks through the configuration of a three-node, single-HA-group deployment for GBase Database(GBase 8c). The example covers the environment, control plane, GTM, coordinators, and data nodes, explaining the purpose of each…

Creating a three-node high-availability (HA) cluster for GBase Database (GBase 8c) begins with understanding the gbase.yml configuration file. This guide breaks down the configuration process for each component of the deployment.

First, start with the env section of the configuration. This section specifies key parameters such as package location, installation directory, software version, installation user, and SSH settings. Ensure the `pkg_path` points to the correct GBase Database installation package, the `prefix` is an empty directory owned by the `gbase` user, and the `version` matches the package version you are using. The `multiple-nodes` setting indicates a distributed deployment mode, not the number of physical hosts.

Next, focus on the control plane configuration, which includes gha_server and DCS components. For a single-HA-group deployment, define two gha_server instances for management-service redundancy and three DCS nodes to ensure an odd-sized quorum, allowing the cluster to maintain a majority even if one node fails. Confirm that all DCS nodes can communicate with each other and that their configured addresses align with the actual control-plane network addresses.

The GTM (Global Transaction Manager) handles transaction management for the database. This guide sets up one primary and one standby instance of GTM. Note that the `host` addresses represent the data-plane communication addresses, while `agent_host` addresses are used for management communication. Ensure that both the data-plane and control-plane addresses are reachable through their respective networks.

Additionally, GTM instances use different `agent_port` values despite having the same database service port to facilitate proper configurations on servers with dual-NIC setups.

The coordinator layer provides SQL entry points for client connections. In a three-node single-HA-group deployment, three coordinator instances are configured. Unlike GTM, the coordinator nodes are configured as primary entry points rather than using a primary/standby role arrangement. Each coordinator instance is defined with specific parameters such as `host`, `agent_host`, `role`, `port`, `proxy_port`, `agent_port`, and `az`.

Ensure all three coordinator entries are completed with the actual host and agent_host addresses according to the official single-HA-group deployment example.

The final and critical part of the configuration is the configuration of the data-node group and replicas. This section defines a DN (Data Node) group containing three instances: one primary and two standby replicas. Each instance is assigned specific roles, ports, proxy ports, agent ports, and availability zones (az). The primary node (dn1_1) handles main data operations, while dn1_2 and dn1_3 are standby replicas, each placed in different availability zones (az1 and az2) to enhance fault tolerance.

If a failure occurs in one zone, the remaining nodes can continue operations, provided the replication state is healthy. However, losing an entire availability zone could impact the majority requirement, so proper zone placement is crucial based on the production environment's failure domains.

Before proceeding with the installation, thoroughly review the entire gbase.yml configuration. This review ensures that all components are correctly configured and aligned with the intended production environment's requirements.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Meta's $15 Billion Bond Issuance, On The Day $58 Billion In Orders: What Happened Inside My Quest Headset: Lazy Eye Dad’s 90 Day Amblyotube Developer Log, Dichoptic Rendering…

Meta's $15 Billion Bond Issue, On the Day $58 Billion in Orders Came In: What Happened Inside My Quest Headset. A Lazy Eye Dad's 90-Day Amblyotube Developer Diary.

  • Meta issues 150 billion dollar bond, sparking 580 billion dollar order surge
  • Developer documents Amblyotube 90-day journal in Quest 3 headset
  • Dichoptic rendering pipeline improves lazy eye correction with 94% adherence

Doosan to Build New CCL Production Line in China’s Changshu

Doosan Corp. is expanding its production capacity for copper-clad laminate (CCL) in China as it accelerates efforts to strengthen its global manufacturing network and respond to growing demand for…

  • Doosan Corp. to build new CCL production line in Changshu, China.
  • KRW 970 billion investment plan includes KRW 550 billion for China.
  • Facilities to be constructed in phases through 2028, starting second half of 2028.

Fixing vibecoded website's errors

Why AI-Generated Supabase Apps Leak User Data, and How to Audit Row-Level Security Before Launch fixier fixier fixier Follow Nov 6 Why AI-Generated Supabase Apps Leak User Data, and How to Audit…

GBase Database(GBase 8c) Installation: The Four-Step Workflow from Trust to Deployment

Writing gbase.yml is only the beginning. Installing GBase Database(GBase 8c) requires four steps in a specific order: SSH trust setup, environment validation, environment repair, and cluster…

  • Establish SSH trust between nodes before installation
  • Perform 18 environment checks to validate target machines
  • Use ghactl install command to complete GBase Database deployment

More from Friday 6 November →