Filecoin 백서

Filecoin

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 52쪽 중 25쪽

ly fee. This fee replaces the previous batch fee model and introduces a predictable cost structure tied to each sector's quality-adjusted power and the network's circulating supply. The fee begins accruing the day after a sector is committed or extended. It is deducted automatically at the end of each proving deadline. The network first draws from vesting block rewards. If those are insufficient, it draws from the miner's available balance. If both are empty, the unpaid amount becomes **fee debt**. Fee debt does not directly cause faults. However, it can impact operations: * A miner with fee debt may be blocked from submitting certain messages (e.g., pre-commits or recoveries). * If the balance is too low to pay for WindowPoSt messages, sectors may fault. * Critically, a miner with outstanding fee debt cannot win block rewards until the debt is repaid. To avoid this, storage providers should: * Keep a FIL buffer in the miner actor's balance. * Avoid fully withdrawing unlocked funds unless upcoming rewards will cover future fees. ### Startup considerations Miners become eligible to win block rewards once they reach **10 TiB of raw byte power (RBP)**. However, rewards are not guaranteed as soon as that threshold is met. Block production is probabilistic, and smaller miners may wait longer to win a block — especially when competing against larger ones. This creates a funding gap during the startup phase. New storage providers must plan for this by funding their miner actor with enough FIL to: * Cover daily fees during onboarding, * Support message submission (like WindowPoSt), * And continue sealing until rewards start arriving. While the amount of FIL required is relatively small compared to overall infrastructure costs, it is operationally critical. Without it, the miner may become stuck — unable to seal new sectors, submit required messages, or produce blocks and win block rewards due to fee debt or insufficient balance. To estimate how much FIL may be needed, review the [FIP-0100 discussion thread](https://github.com/filecoin-project/FIPs/discussions/1105) or use the [real-time fee calculator](https://penalty.660688.xyz/dailyfee) to model your expected onboarding rate. ## Build the right core competencies <a href="#build-the-right-core-competencies" id="build-the-right-core-competencies"></a> As will become clear, running a storage operation is a serious business, with client data and pledged funds at stake. You will be required to run a highly-available service, and there are automatic financial penalties if you cannot demonstrate data availability to the network. There are many things that can go wrong in a data center, on your network, on your OS, or at an application level. You will need skilled people to operate your storage provider business. Depending on the size and complexity of your setup this can be 1 person with skills across many different domains, or multiple dedicated people or teams. [Core competencies ->](/provide-storage/core-competencies) ## Build the right infrastructure <a href="#build-the-right-infrastructure" id="build-the-right-infrastructure"></a> At the lowest level, you will need datacenter infrastructure. You need people capable of architecting, racking, wiring and operating infrastructure components. Alternatively, you can get it collocated, or even entirely as a service from a datacenter provider. Take availability and suitable redundancy into consideration when choosing your datacenter or collocation provider. Any unavailability of your servers, network or storage can result in automatic financial penalties on the Filecoin network. [Software architecture ->](/provide-storage/architecture/lotus-components) [Infrastructure ->](/provide-storage/infrastructure) ## Get to know the ecosystem <a href="#get-to-know-the-ecosystem" id="get-to-know-the-ecosystem"></a> One of the enriching elements of the Filecoin ecosystem lies in its vibrant community. Within this dynamic network, you will find individuals eager to share their experiences and offer solutions to the challenges they have encountered. Whether it is navigating the intricacies of storage provider operations or overcoming hurdles on the blockchain, this supportive community stands ready to help. Embrace the spirit of collaboration and tap into this remarkable network. [Filecoin Slack ->](https://filecoinproject.slack.com/ssb/redirect) ## Understand ROI and collateral <a href="#understand-roi-and-collateral" id="understand-roi-and-collateral"></a> To run a successful storage provider business, it is crucial to understand the concept of Return on Investment (ROI) and the significance of collateral. By planning ahead and considering various factors, such as CAPEX, OPEX, network variables, and collateral requirements, you can make informed decisions that impact your business's profitability and desired capacity. ## Choose your provider software stack Storage providers usually run several pieces of software together. Start by understanding which component handles each part of the operation: | Component | Role | | ---------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | [Curio](https://curiostorage.org/) | Modern storage-provider stack for running provider operations, including PDP storage, proving, and retrieval, and PoRep sealing and proving workflows. Its built-in [storage market](https://docs.curiostorage.org/curio-market/storage-market) handles PoRep storage deals and retrievals. | | [Lotus](https://lotus.filecoin.io) | Reference Filecoin implementation for chain sync, node operations, miner actor interactions, and client tooling. | | [Boost](https://boost.filecoin.io) | Deal-making and retrieval for the older `lotus-miner` stack. Not compatible with current Curio releases. | For new storage-provider planning, treat Curio as the provider operations stack, including deal-making through its built-in storage market, and Lotus as the underlying Filecoin node and chain tooling. If you run `lotus-miner` and Boost today, see [Migrating from Boost](https://docs.curiostorage.org/curio-market/migrating-from-boost). Use each project's maintained documentation for installation and production configuration. [Curio documentation ->](https://docs.curiostorage.org/) [Lotus documentation ->](https://lotus.filecoin.io) ## Set up a local development environment <a href="#set-up-a-local-development-environment" id="set-up-a-local-development-environment"></a> Setting up a local development network (devnet) is the most accessible way to begin your hands-on Filecoin journey. A local devnet lets you experiment with sealing sectors and observe firsthand how the process works without risking real FIL or affecting the mainnet. [Local devnet ->](/networks-and-tools/networks/local-testnet) ## Become a storage provider <a href="#become-a-storage-provider" id="become-a-storage-provider"></a> Once ready, determine your starting capacity and architect a solution to accommodate it. Equip yourself with the necessary hardware and test your setup on the calibration testnet to fine-tune your skills and ensure seamless operations before joining the mainnet. [Reference architectures ->](/provide-storage/infrastructure/reference-architectures) ## Configure PoRep deal-making and retrieval services As you step into the mainnet, Curio's built-in storage market lets you accept PoRep storage deals and serve retrievals to data owners. Boost is no longer compatible with current Curio releases. [Curio storage market ->](https://docs.curiostorage.org/curio-market/storage-market) ## Explore verified deals and ecosystem tools <a href="#explore-verified-deals-and-ecosystem-tools" id="explore-verified-deals-and-ecosystem-tools"></a> Within the Filecoin network there are many programs and tools designed to enhance your storage provider setup. Explore the documentation to gain insights into verified deals, client programs, and other resources that can improve your operations and expand your client base. [Filecoin programs ->](/provide-storage/filecoin-deals/filecoin-programs) [Was this page helpful?](https://airtable.com/apppq4inOe4gmSSlk/pagoZHC2i1iqgphgl/form?prefill_Page+URL=https://docs.filecoin.io/storage-providers/getting-started) # Storage Provider Agent Quickstart One page covering everything you need to start providing storage on Filecoin: as a PDP service provider, a consensus miner, or both on one Curio cluster. **Using an AI agent?** Copy this prompt into it and it will walk you through the page: {% code overflow="wrap" %} ``` Help me become a Filecoin storage provider by following this page step by step: https://docs.filecoin.io/provide-storage/agent-quickstart.md Read the whole page before you start. Then: 1. Ask me which path I want (A, B or C) using the "Choose your path" table, and check my hardware against it. 2. Work on the Calibration testnet first. Don't move to mainnet until I say so. 3. Run the commands for my path in order, and run each check in "Quick reference for agents" before moving on. 4. Stop and hand over to me for anything you can't or shouldn't do yourself: DNS records, buying or sending FIL, steps in the Curio web GUI, and creating or exporting private keys. 5. Never ask me to paste a private key, seed phrase or wallet export into this chat. 6. If a step fails or the page doesn't match what you see, stop and tell me what happened and which step it was. ``` {% endcode %} This page walks you through becoming a Filecoin storage provider, from choosing a path to running your first proofs. It is optimized for agents, but a human should be able to follow, if you have read [Plan Your Filecoin Storage Provider Business](/provide-storage/getting-started). It's written so that a person or an AI agent can follow it from top to bottom without needing any other page. There are two kinds of storage you can provide on Filecoin today: PDP service storage and consensus mining. You can run either one, or both on the same cluster, which gives three paths. Pick one before you buy hardware, because they need very different machines, amounts of capital, and skills. ## Choose your path | | **A: Storage Service (PDP)** | **B: Consensus Mining** | **C: Both (one cluster)** | | ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | | **What you do** | Store client data as-is and prove you still hold it using Proof of Data Possession (PDP). You serve it over HTTPS as part of Filecoin Onchain Cloud. | Seal data or empty capacity into sectors using Proof of Replication (PoRep). You prove the sectors every 24 hours, gain storage power, and compete to produce blocks. | Everything in B, plus PDP service storage for clients, all on the same Curio cluster. | | **How you earn** | Storage fees from clients, paid in USDFC through Filecoin Pay. | Block rewards (FIL) plus fees from storage deals. | Block rewards and PoRep deal fees (as in B), plus PDP storage fees in USDFC (as in A). | | **Collateral** | No sector pledge. A small FIL balance pays for proof messages. | FIL initial pledge locked for each sector, plus a working balance for fees and messages. | B's pledge and balances, plus a small FIL balance in a separate PDP wallet. | | **Minimum hardware** | 1 server: 16+ threads, 64 GB+ RAM, 1 TiB NVMe for the chain and database, 10 TiB+ HDD for client data. No GPU. | A sealing and proving cluster: SHA-extension CPUs, 512 GiB–1 TiB RAM on sealing nodes, 10 GB+ GPUs, several TiB of NVMe scratch, and PiB-scale disk to be competitive. | B's cluster, plus disk set aside for PDP pieces and a public HTTPS domain. | | **Software** | Curio-PDP in Docker (bundles Forest and YugabyteDB). | Lotus + YugabyteDB + Curio. | B's stack with PDP turned on in Curio. **Curio labels this alpha.** | | **Time to first proof** | Hours, mostly waiting for the chain to sync. | Days to weeks, including hardware setup, chain sync, and sealing. | Same as B for mining. PDP adds a few hours once B is running. | | **Retrieval** | Data is always hot and served over HTTPS. | Sealed data must be unsealed (or kept unsealed) to serve retrievals. | As in B for sealed sectors. PDP data is always hot. | | **Good fit if you…** | Run reliable, internet-facing servers and want a fast, low-capital start. | Run data-center infrastructure, can lock up FIL, and want to earn block rewards. | Already mine (or are building a mining cluster), want service-deal revenue on the same infrastructure, and accept an alpha feature. | How to choose: * **Path A** if you want to be a service provider only, with no mining, pledge, or sealing hardware. * **Path B** if you want to be a consensus miner. Step B12 (optional) adds sealed PoRep storage deals through Curio's built-in market, but no PDP service deals. * **Path C** if you already run, or are setting up, a Path B cluster and also want PDP service deals on the same hardware without standing up a second Curio-PDP stack. You must be willing to run a feature that Curio labels alpha. If you'd rather avoid that, run Path A on separate hardware next to your Path B cluster. All three paths run on Curio, so skills carry over. Many operators start with Path A and add mining later. Planning to become a storage provider? Tell us about your setup in the [storage provider interest form](https://docs.google.com/forms/d/e/1FAIpQLSdTd7Znz5uJeF8f98LccjZ-q7dq9Nh861t_rFkH_kcNO6HCtw/viewform). {% hint style="info" %} **Always start on the Calibration testnet.** Calibration is a full copy of the network that uses free test FIL (tFIL). Every step on this page works on Calibration first. Once your setup survives a few days of proving there, repeat the same steps on mainnet. {% endhint %} Jump to your path: * [Path A: Storage Service (PDP)](#path-a) * [Path B: Consensus Mining](#path-b) * [Path C: Both (one cluster)](#path-c) *** ## Before you start (all paths) You need the following no matter which path you choose: * **Linux admin skills.** You'll work in a terminal on Ubuntu or Debian (22.04 or newer recommended), manage systemd services or Docker containers, open firewall ports, and read logs. * **A machine that stays online.** Every path proves to the chain on a fixed schedule. When your node is down, proofs are missed. On the consensus path, missed proofs cost you FIL (see [Know the penalties](#b1-understand-the-economics)). * **A way to get FIL.** On Calibration, a faucet gives you tFIL for free. To find one, search "Filecoin Calibration faucet"; the ChainSafe faucet at `faucet.calibnet.chainsafe-fil.io` is a common choice. On mainnet you buy FIL. * **A place to ask for help.** In the Filecoin Slack, `#fil-curio-help` covers Curio, `#fil-sp-help` covers PDP and FWSS, and `#fil-lotus-help` covers Lotus. *** ## Path A: Storage Service (PDP) <a href="#path-a" id="path-a"></a> A PDP service provider stores client data and answers random, on-chain challenges that prove the data is stored. PDP is the verification layer of data storage. Clients pay providers through **Filecoin Pay**. Once you register your node with the SP registry, services can find you. You will get client deals if you meet the SLA requirements of services, like Filecoin Warm Storage Service (FWSS). Here's how PDP proving works. You compute Merkle trees over the pieces you store. A smart contract uses the drand randomness beacon to challenge you at random. You answer with Merkle inclusion proofs, and the contract checks them on-chain. You'll run **Curio-PDP**, the Docker-based, PDP-only build of Curio. Release images are published on Docker Hub as `filecoin/curio-pdp` ([tags and networks](https://github.com/filecoin-project/curio/blob/main/documentation/en/curio-pdp.md#published-images)). It is the supported way to run a PDP-only provider. One `docker compose` stack runs three containers: * **Forest**, a Filecoin chain node. It downloads a snapshot and syncs automatically. * **YugabyteDB**, which stores Curio's state, piece indexes, and your PDP wallet key. * **Curio-PDP**, which runs PDP proving, the public PDP HTTPS API, and a local admin GUI. ### A1. Get the hardware and a domain | Resource | Requirement | | --------- | ------------------------------------------------------------------------------------------------------ | | CPU | 16+ threads | | RAM | 64 GB+ | | Fast disk | 1 TiB+ NVMe or SSD for the chain, the database, and the Curio repo | | Bulk disk | 10 TiB+ HDD (or more) for client piece data | | GPU | Not required | | Network | Public IPv4 address and stable upstream bandwidth | | DNS | A domain name (for example `pdp.example.com`) with an **A record pointing to your server's public IP** | | Firewall | Inbound **TCP 80 and 443 only**. Keep everything else closed. | Curio-PDP gets a TLS certificate from Let's Encrypt automatically. For that to work, your domain must already resolve to the server and port 443 must be reachable from the internet. #### Start at any size The table above is the floor for one node. How much storage you put behind it is up to you: you declare it as Storage Capacity (TiB) when you register (A9) and can change it later. | Size | What it looks like | | ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- | | **Solo** | One machine at the floor above. Start with 10 TiB+ of HDD and add disks as you fill. Today's endorsed providers declare between 60 and 500 TiB. | | **Renting (colocation/DC operator)** | A bare-metal storage server from a large host, 40 to 175 TiB raw per box before RAID. Take the 64 GB memory option if you run Lotus. | | **Enterprise Data Center Operator** | 1 PiB and up: the floor above per head node, with JBOD shelves for piece data. Node counts and shelf sizing to follow. | ### A2. Install Docker If Docker isn't installed yet, install Docker Engine and the Compose plugin: ```sh sudo apt update && sudo apt install -y ca-certificates curl git curl -fsSL https://get.docker.com | sudo sh sudo usermod -aG docker "$USER" # log out and back in afterwards docker compose version ``` ### A3. Get Curio-PDP and configure your disks and domain Clone the Curio repository **onto your fast disk** and go to the Curio-PDP compose directory: ```sh cd /mnt/nvme # your NVMe/SSD mount git clone https://github.com/filecoin-project/curio.git cd curio/docker/skiff ``` Edit `.env` in this directory **before the first start**. The domain is written into Curio's configuration on first start, and the data paths decide which disk everything lands on. ```bash # Image: use the published release image, not the default :dev SKIFF_IMAGE=filecoin/curio-pdp:calibnet # Calibration # SKIFF_IMAGE=filecoin/curio-pdp:latest # Mainnet # Your public PDP domain (must already resolve to this server) SKIFF_HTTP_DOMAIN=pdp.example.com # Fast disk (NVMe/SSD): database, chain, Curio repo YUGABYTE_DATA=/mnt/nvme/curio-pdp/yugabyte FOREST_DATA=/mnt/nvme/curio-pdp/forest FOREST_TOKEN_DATA=/mnt/nvme/curio-pdp/forest-token SKIFF_REPO_DATA=/mnt/nvme/curio-pdp/skiff # Bulk disk (HDD): client piece data, visible inside the container as /data SKIFF_STORAGE=/mnt/hdd/curio-pdp-pieces ``` Create the directories you listed: ```sh mkdir -p /mnt/nvme/curio-pdp/{yug
프로젝트로 돌아가기