HarperFast / HarperFast/harper-pro

Expose shard count via cluster status API

Open
#204 0 comments 0 reactions 0 assignees View on GitHub
area:clustering enhancement from-jira
Dominant language
JavaScript
Stars
3
Forks
0
Avg merge
1d 21h
Merged PRs (30d)
80

Description

## Request

When managing a sharded cluster across multiple environments, there is no easy programmatic way to determine how many shards are configured in a replica set. The shard count should be exposed through the cluster status API.

## Current state

`clusterStatus` exposes a `shard` field per-node (the shard index for that node), and internally `knownNodes.ts` builds a `server.shards` Map with all shard→node mappings. However, aggregate shard count is not surfaced in any API response.

## Proposed

Add `shardCount` (or `numberOfShards`) to the cluster/replication status response so consumers can easily determine topology without counting individual node `shard` fields themselves.

🤖 Filed by Claude on behalf of Kris.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.