Skip to content

Commit 4429cfb

Browse files
committed
Solana. Increased p2p port range and modified samples to support new version of Agave client
1 parent 2aa21ff commit 4429cfb

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

lib/solana/lib/assets/node/node-base-rpc-template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ __ENTRY_POINTS__ \
2424
--full-rpc-api \
2525
--rpc-port 8899 \
2626
--gossip-port 8800 \
27-
--dynamic-port-range 8800-8814 \
27+
--dynamic-port-range 8800-8816 \
2828
--private-rpc \
2929
--rpc-bind-address $EC2_INTERNAL_IP \
3030
--wal-recovery-mode skip_any_corrupted_record \

lib/solana/lib/assets/node/node-extended-rpc-template.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ __ENTRY_POINTS__ \
2424
--full-rpc-api \
2525
--rpc-port 8899 \
2626
--gossip-port 8800 \
27-
--dynamic-port-range 8800-8814 \
27+
--dynamic-port-range 8800-8816 \
2828
--private-rpc \
2929
--rpc-bind-address $EC2_INTERNAL_IP \
3030
--wal-recovery-mode skip_any_corrupted_record \

lib/solana/lib/constructs/node-security-group.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ export interface NodeSecurityGroupConstructProps {
2424
});
2525

2626
// Public ports
27-
sg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcpRange(8800, 8814), "allow all TCP P2P protocols (gossip, turbine, repair, etc)");
28-
sg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.udpRange(8800, 8814), "allow all UDP P2P protocols (gossip, turbine, repair, etc)");
27+
sg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcpRange(8800, 8816), "allow all TCP P2P protocols (gossip, turbine, repair, etc)");
28+
sg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.udpRange(8800, 8816), "allow all UDP P2P protocols (gossip, turbine, repair, etc)");
2929

3030
// Private ports restricted only to the VPC IP range
3131
sg.addIngressRule(ec2.Peer.ipv4(vpc.vpcCidrBlock), ec2.Port.tcp(8899), "allow internal RPC port HTTP (user access needs to be restricted. Allowed access only from internal IPs)");

lib/solana/sample-configs/.env-sample-extendedrpc-x86

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ SOLANA_CLUSTER="mainnet-beta" # All options: "mainnet-beta", "t
1111
SOLANA_NODE_CONFIGURATION="extendedrpc" # All options: "baserpc", "extendedrpc"
1212
SOLANA_VERSION="2.0.19" # Latest required version of Agave above 2.x. Check for latest Mainnet version https://github.com/anza-xyz/agave/releases
1313

14-
SOLANA_INSTANCE_TYPE="i7ie.18xlarge"
14+
SOLANA_INSTANCE_TYPE="r7a.16xlarge"
1515
SOLANA_CPU_TYPE="x86_64" # All options: "x86_64", "ARM_64". IMPORTANT: Make sure the CPU type matches the instance type used
1616
# Data volume configuration
17-
SOLANA_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
18-
#SOLANA_DATA_VOL_SIZE="2000" # Current required data size to keep both smapshot archive and unarchived version of it
19-
#SOLANA_DATA_VOL_IOPS="7000" # Max IOPS for EBS volumes (not applicable for "instance-store")
20-
#SOLANA_DATA_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")
17+
SOLANA_DATA_VOL_TYPE="io2" # 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
18+
SOLANA_DATA_VOL_SIZE="2000" # Current required data size to keep both smapshot archive and unarchived version of it
19+
SOLANA_DATA_VOL_IOPS="10000" # Max IOPS for EBS volumes (not applicable for "instance-store")
20+
SOLANA_DATA_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")
2121
# Accounts volume configuration
22-
SOLANA_ACCOUNTS_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
23-
#SOLANA_ACCOUNTS_VOL_SIZE="400" # Current required data size to keep both smapshot archive and unarchived version of it
24-
#SOLANA_ACCOUNTS_VOL_IOPS="7000" # Max IOPS for EBS volumes (not applicable for "instance-store")
25-
#SOLANA_ACCOUNTS_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")
22+
SOLANA_ACCOUNTS_VOL_TYPE="io2" # 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
23+
SOLANA_ACCOUNTS_VOL_SIZE="400" # Current required data size to keep both smapshot archive and unarchived version of it
24+
SOLANA_ACCOUNTS_VOL_IOPS="10000" # Max IOPS for EBS volumes (not applicable for "instance-store")
25+
SOLANA_ACCOUNTS_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")
2626
# Secrets configuration
2727
SOLANA_NODE_IDENTITY_SECRET_ARN="none" # Optional. The ARN of the secret in AWS Secrets Manager with the node identity key pair. In case you want to provision a node but keep the old identity.
2828
SOLANA_VOTE_ACCOUNT_SECRET_ARN="none" # Optional for consensus node type. ARN of the secret in AWS Secrets Manager with the Vote Account's key pair.

0 commit comments

Comments
 (0)