You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. The AWS Cloud Development Kit (CDK) is used to deploy a single node. The CDK application stores assets like scripts and config files in S3 bucket to copy them to the EC2 instance when launching a Fantom Node.
17
17
2. A single RPC Fantom Fullnode is deployed within the [Default VPC](https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html) and continuously synchronizes with the rest of nodes on Fantom Blockchain Network through an [Internet Gateway](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html).
@@ -20,7 +20,7 @@ This blueprint is designed to assist in deploying a single node or a Highly Avai
20
20
21
21
### Highly Available setup
22
22
23
-

23
+

24
24
25
25
1. The CDK is used to deploy a highly available (HA) architecture. An S3 bucket is utilized to store [User data](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html) and other scripts and configuration files required when launching EC2 as the Fantom Node.
26
26
2. A set of RPC Fantom Fullnodes that are deployed within the [Auto Scaling Group](https://docs.aws.amazon.com/autoscaling/ec2/userguide/auto-scaling-groups.html) in the [Default VPC](https://docs.aws.amazon.com/vpc/latest/userguide/default-vpc.html) continuously synchronize with the rest of the nodes on Fantom Blockchain Network through an [Internet Gateway](https://docs.aws.amazon.com/vpc/latest/userguide/VPC_Internet_Gateway.html).
@@ -82,7 +82,7 @@ cd aws-blockchain-node-runners
82
82
npm install
83
83
```
84
84
85
-
### Deploy the HA Nodes
85
+
### Prepare to deploy nodes
86
86
87
87
1. Make sure you are in the root directory of the cloned repository
88
88
@@ -101,9 +101,9 @@ npm install
101
101
Create your own copy of `.env` file and edit it to update with your AWS Account ID, AWS Region, and optionally the Fantom SNAPSHOTS URI:
102
102
103
103
```bash
104
-
# Make sure you are in aws-blockchain-node-runners/lib/fantom
105
104
cd lib/fantom
106
105
pwd
106
+
# Make sure you are in aws-blockchain-node-runners/lib/fantom
107
107
cp ./sample-configs/.env-sample-read .env
108
108
nano .env
109
109
```
@@ -152,25 +152,19 @@ Alternatively, you can manually check [Geth Syncing Status](https://geth.ethereu
@@ -192,7 +186,7 @@ Alternatively, you can manually check [Geth Syncing Status](https://geth.ethereu
192
186
193
187
### Option 2: Highly Available RPC Nodes
194
188
195
-
1. The inital deployment of a Fantom Fullnode and downloading its snapshot typically takes about 2-3 hours. The Full node uses snapshots data, and downloading and decompressing the data takes time. You can grab a cup of coffee☕️ and patiently wait during this process. Maybe two. After deployment, you'll need to wait for another half a day to a day for your nodes to synchronize with the Fantom Blockchain Network, depending on how fresh the snapshot was.
189
+
1. The inital deployment of a Fantom Full node and downloading its snapshot typically takes about 6 hours. The Full node uses snapshots data, and downloading and decompressing the data takes time. You can grab a cup of coffee☕️ and patiently wait during this process. Maybe two. After deployment, you'll need to wait for hour or more for your nodes to synchronize with the Fantom Blockchain Network, depending on how fresh the snapshot was.
196
190
197
191
```bash
198
192
pwd
@@ -218,24 +212,18 @@ Alternatively, you can manually check [Geth Syncing Status](https://geth.ethereu
Copy file name to clipboardExpand all lines: lib/fantom/sample-configs/.env-sample-read
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -4,26 +4,26 @@
4
4
5
5
## Set the AWS account is and region for your environment ##
6
6
AWS_ACCOUNT_ID="xxxxxxxxxxx"
7
-
AWS_REGION="ap-southeast-2"
7
+
AWS_REGION="us-east-1"
8
8
9
9
## Optional FANTOM snapshots download link # IMPORTANT !!! Make sure the url is valid before you use it!
10
-
#FANTOM_SNAPSHOTS_URI=https://snapshot.fantom.network/files/snapsync/# Optional param. We extract the actual URL from https://raw.githubusercontent.com/48Club/fantom-snapshots/main/data.json if nothing is specified. Otherwise, check the latest vesion for Full node here: https://github.com/48Club/fantom-snapshots
10
+
FANTOM_SNAPSHOTS_URI=https://snapshot.fantom.network/files/snapsync/latest/listtgzfiles.txt # Optional param. Do a full sync if not provided.
11
11
12
12
## Common configuration parameters ##
13
13
FANTOM_NETWORK="mainnet" # All options: "mainnet", "testnet"
14
14
FANTOM_NODE_CONFIGURATION="read" # All options: "read", "api", "validator"
15
15
16
16
## Instance Nodes
17
-
FANTOM_INSTANCE_TYPE="m6a.2xlarge"
17
+
FANTOM_INSTANCE_TYPE="i3en.xlarge"
18
18
FANTOM_CPU_TYPE="x86_64" # All options: "x86_64", "ARM_64". IMPORTANT: Make sure the CPU type matches the instance type used
19
19
20
20
# Data volume configuration
21
-
FANTOM_DATA_VOL_TYPE="gp3" # Other options: "io1" | "io2" | "gp3" | "instance-store" . IMPORTANT: Use "instance-store" option only with instance types that support that feature, like popular for node im4gn, d3, i3en, and i4i instance families
21
+
FANTOM_DATA_VOL_TYPE="instance-store" # Other options: "io1" | "io2" | "gp3" | "instance-store" . IMPORTANT: Use "instance-store" option only with instance types that support that feature, like popular for node im4gn, d3, i3en, and i4i instance families
22
22
FANTOM_DATA_VOL_SIZE="2000" # Current required data size to keep both snapshot archive and unarchived version of it
23
-
FANTOM_DATA_VOL_IOPS="7000" # Max IOPS for EBS volumes (not applicable for "instance-store")
23
+
FANTOM_DATA_VOL_IOPS="7000" # Max IOPS for EBS volumes (not applicable for "instance-store")
24
24
FANTOM_DATA_VOL_THROUGHPUT="400" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")
25
25
26
26
## HA nodes configuration ##
27
27
FANTOM_HA_NUMBER_OF_NODES="2" # Total number of RPC nodes to be provisioned. Default: 2
28
-
FANTOM_HA_ALB_HEALTHCHECK_GRACE_PERIOD_MIN="300" # Time enough to initialize the instance
28
+
FANTOM_HA_ALB_HEALTHCHECK_GRACE_PERIOD_MIN="10080" # Time enough to initialize the instance
29
29
FANTOM_HA_NODES_HEARTBEAT_DELAY_MIN="120" # Time sufficient enough for a node do sync
0 commit comments