Reciprocal Storage & Scaling
Backdit has no tokens, no blockchain, and no global reputation ledger. Storage is accounted strictly per partner between pairs of accounts in non-transferable GiB-hours. Understanding this rule avoids the most common newcomer surprise.
Rule #1: Strictly Per-Partner Credit & Empty Disk Is Not Instant Space
Section titled “Rule #1: Strictly Per-Partner Credit & Empty Disk Is Not Instant Space”Setting max_capacity_gb = 2000 tells peers you are willing to host up to 2 TB of shards, not that you immediately hold 2 TB of upload credit.
Moreover, GiB-hour credit is tracked strictly per partner (BilateralAccountLedger keyed by remote_account): credit earned hosting for Peer A can only be spent storing on Peer A, never in a global pool.
delta = (bytes_hosted_for_peer - bytes_stored_by_peer) * dt- Single-step accrual
dtis capped atMAX_ACCRUAL_STEP_SECS = 6 hours(21,600s) and clock rollbacks safely rebasedt = 0without freezing future accrual. SPEND_HORIZON_SECS = 30 daysandBANK_HORIZON_SECS = 30 days(MIN_BANK_BASIS = 1 GiB) bound untrusted burst debt while honoring sustained hosting over a 30-day rolling window without clawbacks.- Quota Sizing Rule (
2.2 - 2.5x): RS8+6expands1 TBof source backups to1.75 TBof remote shards (1.75x). Divided by80%usable quota (100%minus Backdit’s20%reserve_basis_points = 2000), that baseline is~2.19x(1.75 / 0.80 = 2.1875). Plan to offer roughly2.2 - 2.5 TBof disk per1 TByou want backed up to leave headroom for repair turnover, peer churn, and the5%bootstrap pool (bootstrap_pool_basis_points = 500).
How You Start on Day 1 (Temporary Trial Slices)
Section titled “How You Start on Day 1 (Temporary Trial Slices)”A brand-new node has hosted 0 bytes for anyone yet. To let you run real encrypted backups immediately while your node comes online and attracts peer shards:
- Hosts advertise
;pool=openor;pool=closedin Identify metadata. - Hosts with open pools allocate
5%of their post-reserve usable quota (bootstrap_pool_basis_points = 500) for temporary unbacked trial slices, capped at512 MiBper remote account (max_bootstrap_debt_bytes). - Across
14+open-pool peers, you can test real RS8+6uploads immediately on Day 1. - Trial slices are temporary: if you make no reciprocal progress (
bytes_stored_by_peer == 0) for30days and the host’s trial pool exceeds85%full, the host’s garbage collector can reclaim those trial slices down to70%. - The
GET /api/v1/statusendpoint and Backup page surfaceestimated_immediate_upload_bytesandestimated_immediate_upload_hostsso you can inspect your current headroom before starting a job.
How Bilateral Capacity Grows
Section titled “How Bilateral Capacity Grows”- Peer Width (Many Smaller Peers):
MAX_STICKY_PARTNERS = 48controls only how many established partners your node proactively protects in connection headroom and re-dials on idle. It is not a cap on how many peers can store shards on your disk. However, because credit is strictly per partner, scaling across many smaller peers is possible only when you also store shards on those same peers (for example across multiple uploads), not guaranteed from a single upload:src/controller/upload/reuses itsverified_poolacross stripes of an individual upload (withMAX_DISCOVERY_CANDIDATES = 48host probes per selection;ShardDistributor::MAX_UNIQUE_PEERS = 100insrc/controller/distribution/mod.rsis not used in the upload pipeline). - Bilateral Depth with High-Usage Homelabbers:
There is no central demand-matching service. Pairing with other high-usage homelabbers happens as a natural outcome of bilateral storage usage: peers who store substantial backups on your node build credit with you while your uploads build credit with them over the
30-day spend and bank horizons. - Trusted Accounts (
[[economy.trusted_accounts]]): Off by default and strictly separate from[network].friendspeering allowlists. Configure explicit per-account quotas keyed by canonical 64-hexAccountIdwhen you want asymmetric capacity for friends, family, or a second NAS of your own without relaxing stranger caps:[[economy.trusted_accounts]]account_id = "0123456789abcdef0123456789abcdef0123456789abcdef0123456789abcdef"label = "Second NAS"max_hosted_gb = 500gc_exempt = true
Outage, Eviction & Clean-Machine Rebuild Safety
Section titled “Outage, Eviction & Clean-Machine Rebuild Safety”Verified directly against src/gc/reclaim.rs and src/gc/mod.rs:
- No deletion for outages under
60days (and why freeloaders cannot exploit it): Committed placements are never deleted based on transient peer absence or outages shorter than60days (STALE_PARTNER_INACTIVE_DAYS = 60). This does not let a newcomer dump1 TBand vanish for60days: at upload admission (StorageHeadroomSnapshot::admit_shard_store_with_economy), unbacked strangers are strictly capped at512 MiBper host inside the5%aggregate bootstrap pool (1 TBuploads require active mutual hosting or prior earned credit with each partner). Reboots and24-word clean-machine rebuilds do not purge your backups. - Creditors, trusted accounts, and Recovery Capsules are never evicted:
reclaim_stale_partners_on_disk_pressureandreclaim_bootstrap_debt_atstrictly protect net creditors (balance_byte_seconds < 0),gc_exemptentries in[[economy.trusted_accounts]], and Recovery Capsules. - Unreciprocated trial debt is reclaimable after
30days under pool pressure:GarbageCollectorwaits15mafter boot and runs every24h. When aggregate unbacked bootstrap debt exceeds85%(bootstrap_reclaim_threshold_bps = 8500),reclaim_bootstrap_debt_atreclaims the oldest placements from zero-reciprocity accounts (bytes_stored_by_peer == 0) with>= 30 daysof accumulated debt down to70%(bootstrap_reclaim_target_bps = 7000). (Note:src/config/storage.rsexposesbootstrap_reclaim_idle_days = 14, whilesrc/gc/reclaim.rsenforces the30-day debt check.) - Stale non-creditor pressure valve (
>= 60days): Only when committed hosted bytes exceed90%(STALE_PARTNER_PRESSURE_THRESHOLD_PCT) of usable quota (reclaiming down to80%) or physical free disk drops below an emergency floor above100 MiB(DISK_FLOOR) does GC evict non-creditor, non-gc_exemptpartners continuously inactive for>= 60 days. - Ledger preservation across rebuilds: Two-tier Recovery Capsules preserve bilateral ledgers across clean-machine restores (
bytes_hosted_for_peerresets accurately from localTABLE_HOST_PLACEMENTSwhile keepingbytes_stored_by_peerand historicalbalance_byte_seconds).