Skip to content

Commit 6f9793f

Browse files
committed
Solana. Upgade to new version 2.3.7+
1 parent 5c8636c commit 6f9793f

14 files changed

+24
-24
lines changed

.github/workflows/blueprints-unit-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- uses: actions/checkout@v2
2121
- uses: actions/setup-node@v3
2222
with:
23-
node-version: 19
23+
node-version: 20
2424
cache: npm
2525
cache-dependency-path: package-lock.json
2626

lib/solana/lib/assets/node/build-binaries.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ source $PWD/ci/rust-version.sh all
3030

3131
echo "Installing libssl-dev, pkg-config, zlib1g-dev, protobuf etc."
3232
apt-get update
33-
apt-get -y install libssl-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler
33+
apt-get -y install libssl-dev libclang-dev libudev-dev pkg-config zlib1g-dev llvm clang cmake make libprotobuf-dev protobuf-compiler
3434

3535
echo "Building Solana..."
3636
./scripts/cargo-install-all.sh .

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-8816 \
27+
--dynamic-port-range 8800-8820 \
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-8816 \
27+
--dynamic-port-range 8800-8820 \
2828
--private-rpc \
2929
--rpc-bind-address $EC2_INTERNAL_IP \
3030
--wal-recovery-mode skip_any_corrupted_record \

lib/solana/lib/config/node-config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export const baseNodeConfig: configTypes.SolanaBaseNodeConfig = {
3434
instanceType: new ec2.InstanceType(process.env.SOLANA_INSTANCE_TYPE ? process.env.SOLANA_INSTANCE_TYPE : "r6a.8xlarge"),
3535
instanceCpuType: process.env.SOLANA_CPU_TYPE?.toLowerCase() == "x86_64" ? ec2.AmazonLinuxCpuType.X86_64 : ec2.AmazonLinuxCpuType.ARM_64,
3636
solanaCluster: <configTypes.SolanaCluster> process.env.SOLANA_CLUSTER || "mainnet-beta",
37-
solanaVersion: validateVersion(process.env.SOLANA_VERSION) || "2.1.16",
37+
solanaVersion: validateVersion(process.env.SOLANA_VERSION) || "2.3.7",
3838
nodeConfiguration: <configTypes.SolanaNodeConfiguration> process.env.SOLANA_NODE_CONFIGURATION || "baserpc",
3939
dataVolume: {
4040
sizeGiB: process.env.SOLANA_DATA_VOL_SIZE ? parseInt(process.env.SOLANA_DATA_VOL_SIZE): 2000,

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, 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)");
27+
sg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.tcpRange(8800, 8820), "allow all TCP P2P protocols (gossip, turbine, repair, etc)");
28+
sg.addIngressRule(ec2.Peer.anyIpv4(), ec2.Port.udpRange(8800, 8820), "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-baserpc-arm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AWS_REGION="us-east-2"
99
## Common configuration parameters ##
1010
SOLANA_CLUSTER="mainnet-beta" # All options: "mainnet-beta", "testnet", "devnet"
1111
SOLANA_NODE_CONFIGURATION="baserpc" # All options: "baserpc", "extendedrpc"
12-
SOLANA_VERSION="2.1.16" # Latest required version of Agave above 2.x. Check for latest Mainnet version https://github.com/anza-xyz/agave/releases
12+
SOLANA_VERSION="2.3.7" # Latest required version of Agave above 2.x. Check for latest Mainnet version https://github.com/anza-xyz/agave/releases
1313
SOLANA_LIMIT_OUT_TRAFFIC_MBPS=20 # Limit outbound traffic to X Mbit/sec from the node to optimize data transfer costs. Set to 0 to switch off. Default: 20 Mbit/s.
1414

1515
SOLANA_INSTANCE_TYPE="r8g.12xlarge"

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44

55
## Set the AWS account is and region for your environment ##
66
AWS_ACCOUNT_ID="xxxxxxxxxxx"
7-
AWS_REGION="us-east-2"
7+
AWS_REGION="us-east-1"
88

99
## Common configuration parameters ##
1010
SOLANA_CLUSTER="mainnet-beta" # All options: "mainnet-beta", "testnet", "devnet"
1111
SOLANA_NODE_CONFIGURATION="baserpc" # All options: "baserpc", "extendedrpc"
12-
SOLANA_VERSION="2.1.16" # Latest required version of Agave above 2.x. Check for latest Mainnet version https://github.com/anza-xyz/agave/releases
12+
SOLANA_VERSION="2.3.7" # Latest required version of Agave above 2.x. Check for latest Mainnet version https://github.com/anza-xyz/agave/releases
1313
SOLANA_LIMIT_OUT_TRAFFIC_MBPS=20 # Limit outbound traffic to X Mbit/sec from the node to optimize data transfer costs. Set to 0 to switch off. Default: 20 Mbit/s.
1414

15-
SOLANA_INSTANCE_TYPE="r7a.12xlarge"
15+
SOLANA_INSTANCE_TYPE="i7i.12xlarge"
1616
SOLANA_CPU_TYPE="x86_64" # All options: "x86_64", "ARM_64". IMPORTANT: Make sure the CPU type matches the instance type used
1717
# Data volume configuration
18-
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_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
1919
SOLANA_DATA_VOL_SIZE="2000" # Current required data size to keep both smapshot archive and unarchived version of it
2020
SOLANA_DATA_VOL_IOPS="17000" # Max IOPS for EBS volumes (not applicable for "instance-store")
2121
SOLANA_DATA_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")
2222
# Accounts volume configuration
23-
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_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
2424
SOLANA_ACCOUNTS_VOL_SIZE="500" # Current required data size to keep both smapshot archive and unarchived version of it
2525
SOLANA_ACCOUNTS_VOL_IOPS="17000" # Max IOPS for EBS volumes (not applicable for "instance-store")
2626
SOLANA_ACCOUNTS_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AWS_REGION="us-east-1"
99
## Common configuration parameters ##
1010
SOLANA_CLUSTER="mainnet-beta" # All options: "mainnet-beta", "testnet", "devnet"
1111
SOLANA_NODE_CONFIGURATION="extendedrpc" # All options: "baserpc", "extendedrpc"
12-
SOLANA_VERSION="2.1.16" # Latest required version of Solana. Check for latest Mainnet version https://github.com/solana-labs/solana/releases
12+
SOLANA_VERSION="2.3.7" # Latest required version of Solana. Check for latest Mainnet version https://github.com/solana-labs/solana/releases
1313
SOLANA_LIMIT_OUT_TRAFFIC_MBPS=20 # Limit outbound traffic to X Mbit/sec from the node to optimize data transfer costs. Set to 0 to switch off. Default: 20 Mbit/s.
1414

1515
SOLANA_INSTANCE_TYPE="i8g.16xlarge"

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ AWS_REGION="us-east-1"
99
## Common configuration parameters ##
1010
SOLANA_CLUSTER="mainnet-beta" # All options: "mainnet-beta", "testnet", "devnet"
1111
SOLANA_NODE_CONFIGURATION="extendedrpc" # All options: "baserpc", "extendedrpc"
12-
SOLANA_VERSION="2.1.16" # Latest required version of Agave above 2.x. Check for latest Mainnet version https://github.com/anza-xyz/agave/releases
12+
SOLANA_VERSION="2.3.7" # Latest required version of Agave above 2.x. Check for latest Mainnet version https://github.com/anza-xyz/agave/releases
1313
SOLANA_LIMIT_OUT_TRAFFIC_MBPS=20 # Limit outbound traffic to X Mbit/sec from the node to optimize data transfer costs. Set to 0 to switch off. Default: 20 Mbit/s.
1414

15-
SOLANA_INSTANCE_TYPE="r7a.24xlarge"
15+
SOLANA_INSTANCE_TYPE="i7i.24xlarge"
1616
SOLANA_CPU_TYPE="x86_64" # All options: "x86_64", "ARM_64". IMPORTANT: Make sure the CPU type matches the instance type used
1717
# Data volume configuration
18-
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_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
1919
SOLANA_DATA_VOL_SIZE="2000" # Current required data size to keep both smapshot archive and unarchived version of it
2020
SOLANA_DATA_VOL_IOPS="20000" # Max IOPS for EBS volumes (not applicable for "instance-store")
2121
SOLANA_DATA_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")
2222
# Accounts volume configuration
23-
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_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
2424
SOLANA_ACCOUNTS_VOL_SIZE="500" # Current required data size to keep both smapshot archive and unarchived version of it
2525
SOLANA_ACCOUNTS_VOL_IOPS="20000" # Max IOPS for EBS volumes (not applicable for "instance-store")
2626
SOLANA_ACCOUNTS_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")

0 commit comments

Comments
 (0)