Offer the sharding setting when creating a Fabric cluster

Đang mở
#2,084 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
58/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript

Hướng nghiên cứu

Start by reading Studio's create-cluster flow and configRestrictions.ts, then check how it submits cluster settings and displays errors from central-manager. Add an optional sharding section with the stated limits, compatibility checks, and read-only-after-creation behavior; keep replication restrictions unchanged. Done when the supported sharding settings validate before submission and central-manager scale-in errors appear unchanged.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

Central-manager accepts sharding: { shards, minOwners } on POST /Cluster (HarperFast/central-manager#527), for Harper 5.4 schema-defined sharding. Studio's create-cluster flow has no way to set it, so a sharded Fabric cluster can only be created through the API. Studio's configRestrictions.ts blocks editing replication except databases, which should stay as it is: shard settings are managed by Fabric, not by node config edits.

Proposed

An optional sharding section in the create-cluster flow:

  • Shards: 2 to 256.
  • Owners per shard (minOwners): default 2; 1 allowed, with a warning that losing that one owner loses the shard's records for good.
  • Validate before submit as central-manager does: Harper 5.4.0-beta.3 or later, a hosted (not self-hosted) cluster with region plans, and at least shards * minOwners instances across the chosen plans. Central-manager answers 400 with the reason otherwise.
  • After creation the setting is read-only. It cannot be changed or turned on later (HarperFast/central-manager#1158 covers enabling on an existing cluster, HarperFast/central-manager#1159 changing the shard count).

On scale-in, central-manager refuses a change that would leave a shard with fewer than minOwners running owners and names the shard. Studio should show that message as is.

Not in scope

Showing shard ownership on the cluster page is #2081 and is not part of this issue.

🤖 Generated by Anthropic Claude Code (Claude Opus); posted via @kriszyp.

Ngôn ngữ chính
TypeScript
Star
5
Fork
4
Merge trung bình
2 ngày 13 giờ
Pull request đã merge (30 ngày)
60

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của HarperFast/studio

Tất cả issue của HarperFast/studio

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.