NEW IN v0.3.0

Cluster Operations Guide

Detailed instructions for managing your MynaDB cluster through the Admin Console. This guide covers node management, table operations, scale-in workflows, event monitoring, meta and data operations, debug tools, and settings.

Nodes Management

The Nodes page (/nodes) displays all registered cluster nodes in a card-based grid layout. Each card shows the node ID, advertise address, and color-coded badges for role, state, and mode.

Filters

Use the filter bar at the top to narrow the node list:

Filter Options Description
Search Free text Filter nodes by ID or address
Role Meta, Router, Data, Compactor Filter by the node's cluster role
State Active, Inactive, Draining, Retiring, Drained Filter by operational state
Mode Primary, Standby Filter by node mode (data nodes only)

Node Cards

Each node card displays:

Click any node card to navigate to the Node Detail page.

Node Detail Page

The Node Detail page (/nodes/:id) provides full information about a single node and management actions:

Action Description
Flush Node Force the node to flush its in-memory write cache to Parquet files
Compact Node Trigger compaction of all tables on this node
Clear Node Cache Clear the node's metadata and query result caches
Retire Node Begin retiring the node -- migrates tables to other nodes, then drains
Cancel Retire Cancel an in-progress retirement (available during draining/retiring states)

When a node is in a retiring or draining state, the detail page shows a progress tracker with the number of tables migrated and remaining.

⚠ Retire vs Remove

Always use the Retire action instead of abruptly stopping a data node. Retiring gracefully migrates table ownership to other healthy nodes before the node shuts down, preventing data unavailability.

Tables Management

The Tables page (/tables) lists all tables registered in the cluster with key metadata and management actions.

Table List

The table list supports search, filtering by catalog and schema, and pagination (20 tables per page). Each row displays:

Column Description
Name Fully qualified name (catalog.schema.table)
Size Total storage size across all partitions
Rows Approximate total row count
Partitions Number of date partitions
Owner Node The primary data node responsible for this table (clickable link to node detail)
Replica Count Number of replica copies across nodes
Actions Reassign button to move the table to a different node

Reassign Table

Click the Reassign button on any table row to open a dialog where you can select a target data node. Table reassignment transfers ownership so that the new node handles writes and compaction for that table.

Common reasons to reassign a table:

Scale-In Operations

The Scale-In page (/scale-in) provides a guided three-step wizard for gracefully reducing the number of data nodes in your cluster.

Step 1: Configure

In the configuration step, you specify:

Strategy Description
Least Loaded Retire the nodes with the fewest tables (minimizes migration work)
First In Retire the oldest nodes by registration time
Last In Retire the most recently added nodes
HA Unit Retire nodes from the same availability zone to maintain zone balance

Optionally, you can manually select specific node IDs instead of using an automatic strategy. The wizard shows recommendations based on the current cluster state.

Step 2: Preview

After configuring, the wizard performs a dry-run and displays the scale-in plan:

Review the plan carefully before proceeding. You can go back to Step 1 to adjust the configuration.

Step 3: Execute

Click Execute to begin the scale-in operation. The page shows real-time progress:

You can Cancel a running scale-in operation. Cancellation stops future migrations but does not roll back already-completed table moves.

💡 Scale-In Best Practices

Scale in one or two nodes at a time rather than many at once. This limits the amount of in-flight table migration and reduces impact on query performance. See Cluster Scaling for architectural details.

Events Monitoring

The Events page (/events) displays a real-time stream of cluster events delivered via WebSocket.

Real-Time Stream

Events appear as cards in reverse chronological order. Each event card shows:

Connection Status

A status indicator shows whether the WebSocket connection to the admin node is active. If the connection drops, the page automatically attempts to reconnect. Use Pause / Resume to temporarily stop the live stream without disconnecting.

Filters

Filter Options
Time Range All Time, Last 1 Hour, Last 24 Hours, Last 7 Days
Event Type Select from the event types listed below
Event Source Filter by originating node or component

Event Types

Event Type Description
NodeJoined A node registered with the meta service
NodeLeft A node deregistered or timed out
NodeStateChanged A node transitioned between states (Active, Retiring, Drained, etc.)
LeaderChanged A new meta leader was elected
TableReassigned A table's ownership was moved to a different node
TableOwnerSet A table was assigned an owner for the first time
TableOwnerRemoved A table's owner was removed (node failure or deregistration)
CacheInvalidate A cache invalidation message was broadcast to data nodes
SchemaChanged A table's schema was modified (new columns, type changes)
FlushForRecovery A node was instructed to flush its cache for WAL recovery
DistributionConfigChanged The table distribution configuration was updated
TablesCacheRefresh The tables cache was refreshed on one or more nodes
Unknown An unrecognized event type (forward compatibility)

Export

Use the export buttons to download the current event list:

Enable Browser Notifications (bell icon) to receive desktop alerts for important events like node failures or leader changes.

Meta Operations

The Meta Operations page (/meta-operations) provides visibility and control over the meta service cluster.

Meta Cluster Status

The status section displays:

Meta Peers

A table lists all meta service instances with their addresses, roles (Leader/Follower), and connectivity status.

Leader Elections

Two buttons allow you to manually trigger leader election actions:

⚠ Election Caution

Manually triggering elections causes a brief disruption while a new leader is elected. Only use these during maintenance windows or when troubleshooting leadership issues.

Distribution Configuration

The distribution configuration controls how new tables are assigned to data nodes. You can view and modify:

Data Operations

The Data Operations page (/data-operations) provides bulk and per-node operations for all data nodes in the cluster.

Summary Cards

At the top, summary cards show the total number of data nodes, active nodes, and the last operation status.

Bulk Operations

Action Description
Flush All Trigger a cache flush on all active data nodes simultaneously
Compact All Trigger compaction on all active data nodes simultaneously

Per-Node Operations

Below the bulk actions, a table lists each data node with individual action buttons:

Action Description
Flush Flush the node's in-memory write cache to Parquet files on disk/object store
Compact Run compaction on all tables owned by this node, merging small L0 files into larger L1/L2 files
Clear Cache Clear the node's metadata cache and query result cache to free memory

Each action button shows a loading spinner while the operation is in progress. State badges on each row indicate the node's current operational status.

Debug Tools

The Debug Tools page (/debug) provides utilities for testing, profiling, and cache management.

Test Data Generation

Generate sample time-series data for testing and demonstration. Configure:

Option Description
Data Types CPU, Memory, Disk, Network metrics (select one or more)
Database Target catalog name for the generated data
Date Range Start and end dates for the generated time series
Points Number of data points to generate per metric type

Click Generate to write the test data via the data node's write API. The data is immediately queryable in the Query Console.

Profiling

Download profiling snapshots from the data nodes:

Profiles are downloaded as files that can be analyzed with standard profiling tools like pprof or flamegraph generators.

Cache Management

Settings

The Settings page (/settings) displays the current admin node configuration in a read-only view.

Information Displayed

Use the Refresh button to reload the configuration from the admin node.

💡 Configuration Changes

The Settings page is read-only. To change the admin node configuration, edit the TOML config file and restart the admin node. See Admin Guide - Configuration for available options.