Setup
This guide will show you setup a new Curio cluster or migrate to Curio from Lotus-Miner
Last updated
This guide will show you setup a new Curio cluster or migrate to Curio from Lotus-Miner
Last updated
If you have already set up a YugabyteDB for Boost then you can reuse the same YugabyteDB instance for Curio. You must ensure that YugabyteDB is multiple node cluster for HA. You can skip directly to or
For this guide, we’re setting up a single node YugaByteDB. However, you must set up multiple YugaByteDB instances in a cluster to enable high availability.
Ensure that you have the following available before we install and set up YugabyteDB:
Do not use ZFS as the backing drive for YugabyteDB because of advanced filesystem commands so-far is unavailable.
One of the following operating systems:
CentOS 7 or later
Ubuntu 16.04 or later
For other operating systems, Docker or Kubernetes. Please check out the .
Python 3. To check the version, execute the following command:
If you encounter a Command 'python' not found
error, you might not have an unversioned system-wide python command.
Starting from Ubuntu 20.04, python is no longer available. To fix this, run sudo apt install python-is-python3
.
For CentOS 8, set python3
as the alternative for python by running sudo alternatives --set python /usr/bin/python3
Once these dependencies have been installed, we can run the install script:
You can adjust the --advertise_address
, --rpc_bind_addresses
and --tserver_flags
according to your own configuration and needs.
Curio provides a utility to users onboard quickly. Please run the below command on your lotus-miner
node and follow the os-screen instructions. It communicates in English (en), Chinese (zh), and Korean (ko).
If you entered non-default in step 3 then please export the relevant details in your ~/.bashrc
file as Curio command needs access to the Database. This step is different from the
CURIO_DB_HOST
YugabyteDB SQL IP
CURIO_DB_NAME
YugabyteDB Name
CURIO_DB_USER
DB user for connection
CURIO_DB_PASSWORD
User’s password
CURIO_DB_PORT
YugabyteDB’s SQL port
CURIO_REPO_PATH
Curio’s default repo path
You can confirm that the curio
process is able to schedule and compute WindowPoSt by running a WindowPoSt test computation:
From the output we can confirm that a WindowPoSt gets inserted to the database, and is being picked up by the Curio process running with the wdpost configuration layer.
The Lotus daemon node must be part of the same network as Curio being setup.
Example: A calibration
network daemon cannot be used with mainnet
Curio cluster.
Initiating a new miner ID on the Filecoin network requires an owner, worker and sender address. These address can be same or different depending on the user’s choice. Users must create these wallet on Lotus node before running the Curio commands.
Once new wallet are created, we must send some funds to them.
Curio provides a utility for users to onboard quickly. Please run the below command on your new Curio node, choose Create a new miner
option and follow the on-screen instructions. It communicates in English (en), Chinese (zh), and Korean (ko).
Start the guided setup.
Choose “Create a new miner” option.
Enter your YugabyteDB details.
Enter the wallet details be used for “create miner” message.
Wait for new miner actor to get created.
We request you to please share the basic data about your miner with us to help us improve Curio.
Finish the initialisation.
If you entered non-default in step 3 then please export the relevant details via your ~/.bashrc
file before running the Curio command.
CURIO_DB_HOST
YugabyteDB SQL IP
CURIO_DB_NAME
YugabyteDB Name
CURIO_DB_USER
DB user for connection
CURIO_DB_PASSWORD
User’s password
CURIO_DB_PORT
YugabyteDB’s SQL port
CURIO_REPO_PATH
Curio’s default repo path
Try running Curio with only GUI
first.
Once the migration is complete, you can shut down all of your workers and miner processes. You can start curio
process to replace them with correct .
Please proceed to for the first node. Once you have completed the service and storage configuration, you can come back to this page and proceed with testing the setup.
To create a new Curio cluster, a is required.
If the curio
process starts successfully, please proceed with GUI and verify that you can access all the pages. Once, verified, please proceed to .