Start Data L1 Instances
In this section, we will start each of our data L1 instances and join them to the metagraph L0 network.
Setup Data L1
SSH into one of your EC2 instances and move to the data-l1
directory.
Set environment variables
Export the following environment variables, changing the values to use your p12 file's real name, alias, and password.
Also export the following environment variables, filling in the following:
CL_GLOBAL_L0_PEER_ID
: The public ID of your Global L0 node which can be obtained from the/node/info
endpoint of your Global L0 instance (http://your_node_id:9000/node/info).CL_L0_PEER_ID
: The public ID of the metagraph l0 node which is the same asCL_GLOBAL_L0_PEER_ID
above if you're using the same p12 files for all layers.CL_GLOBAL_L0_PEER_HTTP_HOST
: The public IP of this node (points to global-l0 layer).CL_L0_PEER_HTTP_HOST
: The public IP of this node (points to metagraph-l0 layer).CL_L0_TOKEN_IDENTIFIER
: The metagraph ID in your address.genesis file.
Start your data L1 node (initial)
note
Run this command only on the first of your instances. When you repeat these steps for the 2nd and 3rd instance, use the run-validator
joining process below instead.
Run the following command, filling in the public ip address of your instance.
Check if your data L1 node successfully started: http://:your_ip:9300/cluster/info
Start your data L1 node (validator)
The 2nd and 3rd nodes should be started in validator mode and joined to the first node that was run in initial-validator mode. All other steps are the same.
Run the following command to join, filling in the id
and ip
of your first data L1 node.
Repeat
Repeat the above steps for each of your 3 data L1 nodes before moving on to start your data L1 layer. Note that the startup commands differ between the three nodes. The first node should be started in initial-validator mode. The second and third nodes should be started in validator mode and joined to the first node.
Verify
If you followed all steps, your metagraph is now fully deployed.
You can check the status of each of the node layers using their IP address and layer port number.
Ports
Global L0: 9000
Metagraph L0: 9100
Currency L1: 9200
Data L1: 9300
Endpoints
/cluster/info
: View nodes joined to the current layer's cluster/node/info
: View info about a specific node and its status
Last updated
Was this helpful?