Product capabilities

Every capability in KDSS serves one goal: keep massive datasets intact for the long term on as few drives as possible — and give operators a clear view and firm control of the system.

Data reliability & self-healing

Survive multiple simultaneous failures. Find and fix bad disks automatically.

Reed-Solomon erasure coding provides the redundancy, placement rules make sure that redundancy is real, and layered health monitoring with storage-side rebuild brings the cluster back to full protection on its own.

Erasure coding sized to your cluster

Each 256 MB block is encoded into one stripe, and its data and parity shards are spread across different nodes. KDSS picks a conservative profile automatically based on node count; larger clusters can opt into higher-density profiles.

  • 29+3: any 3 shards (disks or nodes) can be lost at once and data stays readable and rebuildable
  • 90.6% storage efficiency, versus 33.3% for triple replication
  • Large stripes keep metadata small — data locations are recorded per stripe (plus directory and file metadata)
  • Encoding built on klauspost/reedsolomon with SIMD acceleration
Storage efficiency by profile: 3 replicas 33.3%, 5+2 71.4%, 9+2 81.8%, 18+3 85.7%, 22+3 88.0%, 29+3 90.6%, 31+3 91.2%
ProfileSelectionEfficiencyToleratesMin. nodes
EC 5+2Auto71.4%28
EC 9+2Auto81.8%212
EC 18+3Auto85.7%322
EC 22+3Manual88.0%326
EC 29+3Auto90.6%333

Additional manual profiles: 19+3, 21+3 and 31+3 (91.2% efficiency). 31+2 carries only two parity shards and lower fault tolerance — use with care.

Placement rules and audit

Two shards of the same stripe never land on the same node. The rule is enforced on the write, repair and rebalance paths, and a background audit continuously re-checks every stripe so redundancy is never silently eroded.

Identity checks on every read

Each read verifies the stripe ID and shard index, so a misrouted request can never return another stripe's data as its own.

Background CRC scrubbing

Shards are re-read and CRC-checked on a schedule to catch silent corruption early. Scrubbing is rate-limited (20 MB/s per node by default) and its cycle is configurable.

Four-layer disk health monitoring with automatic isolation

Disks rarely fail all at once — they slow down, throw errors and stall first. KDSS watches every disk from four angles, because the earlier a problem is caught, the less it costs.

  • Periodic SMART collection to track wear
  • Fast kernel-log scanning with debounced confirmation to avoid false alarms
  • Stuck-I/O watchdog: no response for 120 s on read or 300 s on write
  • Sliding I/O-error window: isolate past a threshold, rejoin automatically after transient faults
Four detection layers lead to automatic isolation, storage-side rebuild and in-place repair, restoring full redundancy

Storage-side rebuild, worst first

Repair runs on the storage nodes themselves: they fetch surviving shards, decode locally and write straight to disk, cutting relay traffic. Stripes with the most missing shards are repaired first; hundreds of thousands of stripes can be queued within minutes and are claimed by multiple Masters in parallel.

In-place repair

After a disk is replaced, the data that lived on it is written back to the same positions on the new disk, keeping the layout exactly as it was.

Recycle bin and two-phase GC

Deletes go to a recycle bin first, so mistakes can be undone. Garbage collection runs in two phases with a configurable retention window, and a read-only reconciliation tool accounts for orphaned shards.

Cross-node and intra-node balancing

On-demand rebalancing picks source nodes that deviate from the mean beyond a threshold and moves shards to the emptiest eligible target, with double duplicate checks and versioned updates. Disks within a node can be balanced as well.

Raw-disk storage engine

No local file system. KDSS writes to block devices directly.

Each storage node treats every HDD as an append-only log. Removing the file-system layer shortens the write path, cuts head seeks and makes recovery after a crash far simpler.

Sequential appends, longer HDD life

All writes are sequential appends aligned to 4 KB. Fewer seeks mean steadier throughput and help extend drive life.

Dual superblocks, self-identifying disks

Primary and backup superblocks are each CRC-protected. Every disk records its node ID, disk ID and UUID, so moved slots and renamed devices are corrected at startup — and a wrong disk is refused.

End-to-end CRC

The local index runs on BadgerDB. Every read is verified with CRC32, including streaming reads, so corrupted data is never returned as good data.

Crash recovery and selectable durability

After a clean shutdown a node starts in seconds. After a power loss, the engine scans forward from the write frontier to complete its index; if compaction was interrupted, it can rebuild the index for the whole disk. All disks open in parallel.

Durability is selectable in three modes, with the safest as the default.

fsync modeBehaviorTypical use
immediate DefaultEvery write is flushed to diskGeneral purpose, safest
batchGroup commit — several writes flushed togetherWrite-heavy workloads that benefit from fewer flushes
deferredFlushed in the background every 5 seconds; a power loss can lose up to the last ~5 seconds of writesHardware with power-loss protection (such as a RAID card with a BBU), where that window is acceptable

Exact-size space reuse and safe compaction

Deletes are soft: data goes to the recycle bin and is released as a hole only after a configurable freeze period. A new shard of exactly the same size can then be written straight into that hole — an exact match that leaves no fragments.

  • Compaction moves tail data into holes, then truncates the freed tail
  • Every moved shard is read back and verified; the whole process is crash-safe
  • Cluster metadata is untouched during compaction
Deletes leave holes, same-size shards reuse them, and compaction moves tail data into holes before truncating

Three-tier capacity protection

Running out of space is one of the most common storage incidents. KDSS tightens in three steps — stop new writes while keeping repair alive, then take a full disk out of the write ring, and finally go read-only at the hard limit. Repair always has somewhere to write.

  • Cluster reaches the reject line (99% by default): new writes stop, repair continues
  • A disk reaches its limit (99.5% by default, configurable to 99.8%): it leaves the write ring and only accepts repair
  • A disk has less than 4 GiB free: fully read-only
Three-tier capacity protection: cluster at 99% stops new writes; a disk at 99.5% leaves the write ring; a disk under 4 GiB free becomes read-only
Access

Mount it like a local directory, or access it over S3

One cluster serves both POSIX file access and an S3-compatible API. In production, about 99% of reads and writes go through the FUSE client.

POSIX

ksfs FUSE client

Mount the cluster as a local directory; existing applications read and write without changes.

  • df -h reports the cluster's real capacity
  • fsync durability semantics
  • Tunable read/write buffers, concurrency and rate limits
  • Optional parallel EC verification on write
S3

S3-compatible gateway

Supports the core S3 API. Verified clients: AWS CLI, boto3 and s3cmd (configured as documented).

  • Streaming I/O for large objects: buffered up to 64 MB, streamed in parts beyond that, with bounded memory
  • Range reads and multipart uploads
  • Buckets and access keys managed from the console

Supported S3 operations

ScopeOperations
BucketListBuckets · CreateBucket · DeleteBucket · HeadBucket · ListObjectsV2
ObjectPutObject · GetObject (incl. Range) · HeadObject · DeleteObject · CopyObject
MultipartCreateMultipartUpload · UploadPart · CompleteMultipartUpload · AbortMultipartUpload · ListParts · ListMultipartUploads

Operations not listed here — such as versioning, lifecycle and object lock — are not currently supported. See Docs · S3 API for details.

Using the AWS CLI

# Point the CLI at the KDSS S3 gateway
# 让 AWS CLI 指向 KDSS S3 网关(端口 9000)
export EP=http://s3.example.internal:9000
aws --endpoint-url $EP s3 mb s3://archive
aws --endpoint-url $EP s3 cp ./dataset.tar s3://archive/2026/
aws --endpoint-url $EP s3 ls s3://archive/2026/
Operations & observability

Full visibility, firm control, upgrades without downtime

The web console, built-in alerting and Prometheus metrics cover day-to-day operations, while replicated Masters and rolling upgrades keep maintenance invisible to applications.

Web console and "max writable now"

Built on Vue 3 and Element Plus, the console covers cluster, node and disk views, buckets and access keys, a file browser, alert rules and channels, audit logs and user management.

The capacity panel goes beyond free space. It combines the reject line, per-node headroom and erasure-coding placement rules to show max writable and conservative writable capacity in real time — how much you can actually still write.

Console capacity panel: total, used, recycle bin, max writable and conservative writable
Capacity panel (illustrative values)

Built-in, tiered alerting

P0 / P1 / P2 severities with debouncing and reminder intervals, delivered via Lark and email, with full alert history.

  • Too few writable nodes, capacity pressure
  • Disk failures, MongoDB liveness

Prometheus and alert templates

All metrics live in the kdss_* namespace, and /metrics supports Bearer-token authentication. Each release ships 63 alert-rule templates ready for your existing monitoring stack.

Replicated Masters with leader election

A typical deployment runs five Masters with leader election backed by a MongoDB replica set and majority writes. Failover is automatic, and client writes are redirected to the new leader.

Rolling upgrades, no maintenance window

By default, upgrades proceed one node at a time. Each node enters maintenance mode, waits for in-flight writes to drain, is replaced and verified, and only then returns to service.

The number of nodes in maintenance at the same time is capped at parity shards − 1. With 29+3, that is two nodes, leaving headroom for unexpected failures.

Cordon the node

It stops receiving new write allocations.

Drain in-flight writes

Writes already under way finish first.

Replace and verify

Swap the binary, then check node and disk health.

Uncordon and move on

Writes resume; the next node begins.

Security

Guarded accounts, interfaces and traffic

KDSS is usually deployed on a private network. On top of that, the console, the metrics endpoint and inter-component traffic each have their own authentication and protection.

Multi-user RBAC

Three built-in roles — admin, storage_admin and readonly — so each team gets only the scope its job requires.

Login protection

JWT sessions, bcrypt-hashed passwords, login rate limiting and CAPTCHA against brute force, plus CSRF protection.

Authenticated metrics

/metrics supports Bearer-token authentication, so only authorized scrapers can read cluster metrics.

Optional gRPC mTLS

Mutual TLS can be enabled for gRPC traffic between components, or left off to simplify private-network deployments.

S3 access keys

S3 requests are signed with AWS SigV4, and access keys are created and managed centrally in the console.

Audit logs

Console audit logs record administrative actions for later review.

Is KDSS the right fit for your data?

Tell us about your data volume, access patterns and data-center constraints, and we will recommend node counts, an erasure-coding profile and a hardware configuration.