Celestia 백서

Celestia

원문

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

After completing the steps above, you can begin syncing your DA node. You can check your compression rate with the following command: ```sh zfs get compressratio $ZFS_POOL_NAME ``` ## ZFS Fine-Tuning (Advanced) > **Warning:** The following settings can significantly impact data integrity and system stability. Only proceed if you fully understand the implications of each setting. These optimizations should be carefully tested in a non-production environment first. If you want to increase your I/O performance and sync speed, you can try the following steps: ### Disable Auto-Trim Auto-trim disabling can improve I/O performance, but may lead to increased SSD wear over time. ```sh sudo zpool set autotrim=off $ZFS_POOL_NAME ``` > **Note:** You can always trim manually: `sudo zpool trim $ZFS_POOL_NAME` ### Disable sync > **Warning:** Disabling sync provides faster write speeds but significantly increases the risk of data corruption in case of system crashes or power failures. Data in memory may be permanently lost before being written to disk. This setting should: 1. Only be used during initial node sync 2. Never be used in production environments 3. Be re-enabled immediately after initial sync completes ### Disable prefetch Disabling reduces memory usage but can slow down performance for sequential read workloads. ```sh echo 1 | sudo tee /sys/module/zfs/parameters/zfs_prefetch_disable ``` > **Note:** You can always re-enable it: `echo 0 | sudo tee /sys/module/zfs/parameters/zfs_prefetch_disable` ### Set record size Setting `recordsize=256K` defines the maximum block size that ZFS will use when writing data to a dataset. ```sh zfs set recordsize=256K $ZFS_POOL_NAME/$ZFS_DATASET_NAME ``` --- Title: 🐳 Docker setup URL: https://docs.celestia.org/operate/getting-started/docker.md Source: app/operate/getting-started/docker/page.mdx --- # 🐳 Docker setup This page has instructions to run celestia-node using Docker. If you are looking for instructions to run celestia-node using a binary, please refer to the [celestia-node page](/operate/data-availability/install-celestia-node). Using Docker is the easiest way to run celestia-node for most users. Docker is a containerization platform that allows you to run celestia-node in an isolated environment. This means that you can run celestia-node on your machine without having to worry about installing and configuring all of the dependencies required to run the node. If you would like to learn more about key management in Docker, visit the [Docker and `cel-key` section](/operate/keys-wallets/celestia-node-key#docker-and-cel-key). The easiest way to install Docker is to use the Docker Desktop installer or Ubuntu. You can [follow the instructions for your operating system](https://docs.docker.com/engine/install). ## Prerequisites - [Docker Desktop for Mac or Windows](https://docs.docker.com/get-docker) and a basic understanding of Docker - [Docker Engine for Linux](https://docs.docker.com/engine/install/) and a basic understanding of Docker ## Quick start If you would like to run the node with custom flags, you can refer to the [celestia-node tutorial](/operate/data-availability/light-node/quickstart#start-the-light-node) page. Refer to [the ports section of the celestia-node troubleshooting page](/operate/maintenance/troubleshooting#ports) for information on which ports are required to be open on your machine. ## Light node setup with persistent storage If you delete a container that you started above, all data will be lost. To avoid this, you can mount a volume to the container. This will allow you to persist data even after the container is deleted. First, you will need to create a directory on your host machine. This directory will be used to store the data for the container. Create a directory on your host machine and give it a name. For example, you can name it `my-node-store`: ```bash cd $HOME mkdir my-node-store ``` Now, you can mount this directory to the container. Before mounting a volume, you _may_ need to set permissions for the user on the host machine by running: **Docker Engine on Linux** ```bash sudo chown 10001:10001 $HOME/my-node-store ``` **Docker Desktop on Mac** ```bash # you're good to go 😎 ``` > Docker Desktop on Mac users typically do not need to change permissions. ## Video walkthrough <div class="youtube-wrapper"> <iframe class="youtube-video" title="Running a Celestia light node" src="https://youtube.com/embed/WFubhQc8tGk" allowfullscreen ></iframe> </div> ### 2.5 minute version <div class="youtube-wrapper"> <iframe class="youtube-video" title="Running a Celestia light node" src="https://youtube.com/embed/ROZv871Q7RM" allowfullscreen ></iframe> </div> ## Troubleshooting For security purposes Celestia expects to interact with your node's keys in a read-only manner. This is enforced using linux style permissions on the filesystem. Windows NTFS does not support these types of permissions. As a result the recommended path for Windows users to mount a persisted volume is to do so within WSL. You can find [instructions for installing WSL](https://learn.microsoft.com/en-us/windows/wsl/install). --- Title: Development environment URL: https://docs.celestia.org/operate/getting-started/environment-setup.md Source: app/operate/getting-started/environment-setup/page.mdx --- # Development environment This page will go over setting up your development environment to run Celestia software. This environment can be used for development, building binaries, and running nodes. ## Supported architectures Celestia-app and celestia-node only officially support the following architectures: - linux/amd64 - linux/arm64 - darwin/amd64 (macOS Intel) - darwin/arm64 (macOS Apple Silicon) Only these four architectures are officially tested and supported. --- Title: Hardware requirements URL: https://docs.celestia.org/operate/getting-started/hardware-requirements.md Source: app/operate/getting-started/hardware-requirements/page.mdx --- # Hardware requirements ## Disk sizing The consensus and bridge disk recommendations below are Mainnet Beta starting points based on [node-store measurements from 30 September 2026](https://gist.github.com/rootulp/6680db718f4260948cf391ef0068d525), with additional capacity for growth. They are not maximum-throughput guarantees or a promise of a year of storage. The measurements did not verify sync status or complete archival history. Mocha requires separate sizing based on its own usage and retained history. Disk sizes use decimal TB (1 TB = 1,000 GB), except the legacy archival light-node estimate marked in TiB. Provision usable capacity after RAID and filesystem overhead. Monitor both node-store usage and free filesystem space, measure growth over time, and expand before the remaining space falls below what your node will consume during your storage expansion lead time. Allow extra room for database compaction, snapshots, backups, and other services. For capacity planning, multiply data throughput by retention time, then allow for the node's storage format and database overhead. Sustained utilisation of 20–30% of a 32 MiB block every 3 seconds produces approximately 1.4–2.0 TB of payload over 169 hours, before storage overhead. This is a planning scenario, not measured network utilisation: a 2 TB bridge cannot be assumed to cover it. Size for your expected traffic and retention rather than treating observed usage as a limit. ## Data availability nodes ### Non-archival data availability nodes | Node type | Memory | CPU | Disk | Bandwidth | | ----------- | ---------- | ----------- | ----------- | --------- | | Light node | 500 MB RAM | Single core | 20 GB SSD | 56 Kbps | | Bridge node | 64 GB RAM | 32 cores | 2 TB NVMe | 1 Gbps | The measured pruned bridge store used approximately 317 GB. The recommendation assumes pruning remains enabled. In celestia-node v0.34.3, the default bridge [storage window](https://github.com/celestiaorg/celestia-node/blob/v0.34.3/share/availability/window.go) is 169 hours (seven days plus one hour). This is the software default; the measured node's effective retention window was not independently verified. Provision separately for any [consensus node](/operate/consensus-validators/consensus-node) used by the bridge, even if both services share a host. ### Archival data availability nodes | Node type | Memory | CPU | Disk | Bandwidth | | ---------------------------- | ---------- | ----------- | ------------- | --------- | | Light node (unpruned headers) | 500 MB RAM | Single core | 7 TiB NVMe\* | 56 Kbps | | Bridge node | 64 GB RAM | 32 cores | 12 TB NVMe | 1 Gbps | The measured archival bridge store used approximately 6.2 TB. Its service was configured with `--archival`, but that does not establish complete historical coverage. Check the history you need to retain and its growth before provisioning. Archival storage continues to grow as new blocks arrive. \*The archival light-node figure retains the earlier conservative estimate for one year at the 128 MB/6 s planning envelope. No archival light node was measured in this update; this figure has not been validated against observed usage. ## Consensus nodes ### Non-archival consensus nodes | Node type | Memory | CPU | Disk | Bandwidth | | -------------- | --------- | -------- | ---------- | --------- | | Validator | 32 GB RAM | 32 cores | 2 TB NVMe | 1 Gbps | | Consensus node | 32 GB RAM | 32 cores | 2 TB NVMe | 1 Gbps | The measured pruned consensus store used approximately 206 GB with `pruning = "default"` and `min-retain-blocks = 3000` in `app.toml`. The recommendation applies to nodes pruning both application state and old block data. Pruning state alone does not bound block storage: `min-retain-blocks = 0` retains all blocks. Longer retention, including the validator guide's 600,000-block recommendation, needs a separate capacity assessment. Review the [storage and pruning configurations](/operate/consensus-validators/consensus-node#storage-and-pruning-configurations) before choosing a disk; changing retention can permanently delete history. Provision [Fibre storage](/operate/consensus-validators/fibre) separately from consensus data. The measurements above do not size the Fibre service. ### Archival consensus nodes | Node type | Memory | CPU | Disk | Bandwidth | | -------------- | --------- | -------- | ---------- | --------- | | Consensus node | 64 GB RAM | 32 cores | 16 TB NVMe | 1 Gbps | The measured archival consensus store used approximately 10.0 TB with `pruning = "nothing"` and `min-retain-blocks = 0`. Confirm that your store contains the history your application needs. The additional capacity is growth headroom, not a validated number of months of operation. Validators must use hardware that passes the [CPU benchmark](https://github.com/celestiaorg/celestia-app/blob/main/tools/cpu_requirements/README.md). If your server does not pass, upgrade to a more powerful machine. For a list of CPUs tested against the v6 128MB/6s workload, see the [release notes](https://github.com/celestiaorg/celestia-app/blob/main/docs/release-notes/release-notes.md#v6---128mb6s). Other CPUs are acceptable if they pass the benchmark. Recommended CPU specs: - 32 or more cores - GFNI (Galois Field New Instructions) support - SHA-NI (SHA New Instructions) support --- --- Title: Overview to running nodes on Celestia URL: https://docs.celestia.org/operate/getting-started/overview.md Source: app/operate/getting-started/overview/page.mdx --- # Overview to running nodes on Celestia There are many ways you can participate in the Celestia [networks](/operate/networks/overview). Celestia node operators can run several options on the network. Consensus: - [Validator node](/operate/consensus-validators/validator-node): This type of node participates in consensus by producing and voting on blocks. - [Consensus node](/operate/consensus-validators/consensus-node): A celestia-app full node to sync blockchain history. Data Availability: - [Bridge node](/operate/data-availability/bridge-node): This node bridges blocks between the Data-Availability network and the Consensus network. - [Light node](/operate/data-availability/light-node/quickstart): Light clients conduct data availability sampling on the Data Availability network. You can learn more about how to set up each different node by going through each tutorial guide. If you want to get hands-on with a light node right away, follow the quickstart in the Build section: [Post/retrieve a blob → Light node quickstart](/operate/data-availability/light-node/quickstart/). Please provide any feedback on the tutorials and guides. If you notice a bug or issue, feel free to make a pull request or write up a Github issue! --- Title: Create a wallet with celestia-app URL: https://docs.celestia.org/operate/keys-wallets/celestia-app-wallet.md Source: app/operate/keys-wallets/celestia-app-wallet/page.mdx --- # Create a wallet with celestia-app For this guide, we will go over how you can generate a Celestia wallet using celestia-app. ## Prerequisites - Gone through [quick start and installed celestia-app](/operate/consensus-validators/install-celestia-app) Note, you do not need to install celestia-node for this tutorial. ## Keyring backend `keyring-backend` configures where celestia-appd stores your keys. Choose it before you create a wallet, because the backend you pick decides whether the private key is encrypted at rest. | Backend | Where keys are stored | Suitable for | | --- | --- | --- | | `os` | The operating system keychain: Keychain on macOS, Credentials Management on Windows, libsecret, kwallet or keyctl on Linux | A single-operator machine | | `file` | Encrypted inside the app's configuration directory; the password is requested on every access | Servers and containers | | `pass` | GPG-encrypted files managed by the `pass` utility | Servers with an existing GPG setup | | `kwallet` | KDE Wallet Manager | KDE desktops | | `test` | **Unencrypted on disk, with no password** | Local development and testnets | | `memory` | Process memory, discarded when the process exits | Throwaway scripts | The Cosmos SDK describes `test` as "a password-less variation of the file backend. Keys are stored unencrypted on disk" and states that it is "not recommended for use in production environments". Anyone who can read the directory can spend from the account and sign on behalf of the validator. Do not use `test` for a wallet that holds real funds or operates a Mainnet Beta validator. Use a hardware wallet, or a [multisig account](/operate/keys-wallets/multisig) so that no single key can move funds on its own. You can set the backend for a single command with `--keyring-backend`, which is what the examples in these docs do. Pass it on every command that touches a key: without the flag, `celestia-appd` falls back to the default backend and will not find a key that was created in a different one. You can learn more on the [Cosmos documentation](https://docs.cosmos.network/sdk/v0.53/user/run-node/keyring) or [Go Package documentation](https://pkg.go.dev/github.com/cosmos/cosmos-sdk/crypto/keyring). ## Create a wallet You can pick whatever wallet name you want. The examples below and the [validator node guide](/operate/consensus-validators/validator-node) both use `$VALIDATOR_WALLET`, so set it to the name you chose: ```sh export VALIDATOR_WALLET=validator export KEYRING_BACKEND=file # use `test` only on a testnet celestia-appd keys add $VALIDATOR_WALLET \ --keyring-backend=$KEYRING_BACKEND \ --interactive ``` Save the mnemonic output as this is the only way to recover your validator wallet in case you lose it! To check all your wallets you can run: ```sh celestia-appd keys list --keyring-backend=$KEYRING_BACKEND ``` ## Key management ```sh # listing keys celestia-appd keys list --keyring-backend=$KEYRING_BACKEND # adding keys celestia-appd keys add <KEY_NAME> --keyring-backend=$KEYRING_BACKEND # deleting keys celestia-appd keys delete <KEY_NAME> --keyring-backend=$KEYRING_BACKEND # renaming keys celestia-appd keys rename <CURRENT_KEY_NAME> <NEW_KEY_NAME> \ --keyring-backend=$KEYRING_BACKEND ``` ### Importing and exporting keys Import an encrypted and ASCII-armored private key into the local keybase. ```sh celestia-appd keys import <KEY_NAME> <KEY_FILE> --keyring-backend=$KEYRING_BACKEND ``` Example usage: ```sh celestia-appd keys import amanda ./keyfile.txt --keyring-backend=$KEYRING_BACKEND ``` Export a private key from the local keyring in encrypted and ASCII-armored format: ```sh celestia-appd keys export <KEY_NAME> --keyring-backend=$KEYRING_BACKEND # you will then be prompted to set a password for the encrypted private key: Enter passphrase to encrypt the exported key: ``` After you set a password, your encrypted key will be displayed. ## Fund a wallet For the public celestia address, you can fund the previously created wallet via [Discord](https://discord.com/invite/YsnTPcSfWQ) by sending this message to the #mocha-faucet channel: ```text $request celestia1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` Wait to see if you get a confirmation that the tokens have been successfully sent. To check if tokens have arrived successfully to the destination wallet run the command below replacing the public address with your own: ```sh celestia-appd start celestia-appd query bank balances celestia1xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` Refer to the ports section of the celestia-node troubleshooting page for information on which ports are required to be open on your machine. --- Title: Create a wallet with celestia-node URL: https://docs.celestia.org/operate/keys-wallets/celestia-node-key.md Source: app/operate/keys-wallets/celestia-node-key/page.mdx --- # Create a wallet with celestia-node This tutorial will go over using the `cel-key` utility to generate a wallet on celestia-node. While this tutorial will go over the installation process of `cel-key`, it is recommended that you complete the following prerequisites first: - [Setting up your environment](/operate/getting-started/environment-setup) Once you completed the prerequisite, you can proceed with this tutorial. ## Using the `cel-key` utility Inside the celestia-node repository is a utility called `cel-key` that uses the key utility provided by Cosmos-SDK under the hood. The utility can be used to `add`, `delete`, and manage keys for any DA node type `(bridge || light)`, or just keys in general. ### Installation You need to first pull down the celestia-node repository: ```sh git clone https://github.com/celestiaorg/celestia-node.git cd celestia-node/ ``` It can be built using either of the following commands: ```sh # dumps binary in current working directory, accessible via `./cel-key` make cel-key ``` or ```sh # installs binary in GOBIN path, accessible via `cel-key` make install-key ``` For the purpose of this guide, we will use the `make cel-key` command. ### Steps for generating node keys To generate a key for a Celestia node, select the tab for your node type: You do not need to declare a network for Mainnet Beta. Refer to [the chain ID section on the troubleshooting page for more information](/operate/maintenance/troubleshooting). ```bash ./cel-key add <key-name> --keyring-backend test --node.type bridge \ --p2p.network <network> ``` ```bash ./cel-key add <key-name> --keyring-backend test --node.type light \ --p2p.network <network> ``` This will load the key `<key-name>` into the directory of the node. Further flags you can use to customize your key are the following: - `--p2p.network`: Specifies which network you want the key for. Use `mocha` to target Mocha. Keep in mind that your celestia-node will only pick up keys that are inside the default directory under `/keys` so you should make sure to point `cel-key` utility to the correct directory via the `p2p.ne
프로젝트로 돌아가기