Skip to content

Commit df71041

Browse files
committed
- Removes mentions to instance store from sample config file
- fixes empty user from service file - saves DB in larger EBS volume
1 parent 78e7030 commit df71041

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

lib/sui/lib/assets/user-data/node.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
# ASCII art removed for brevity, silenced interactions, added testnet p2p, Ubuntu 24.04 LTS tests
66

77
echo "[LOG] script start"
8+
echo "[LOG] User: $(whoami)"
89

10+
export USER=ubuntu
911
set +e
1012

1113
{
@@ -64,6 +66,7 @@ if [[ ":$PATH:" != *":/usr/bin:"* ]]; then
6466
echo 'export PATH=$PATH:/usr/bin' >> ~/.bashrc
6567
source ~/.bashrc
6668
fi
69+
6770
# Install dependencies
6871
echo "[LOG] Install dependencies"
6972
sudo apt-get -qq install -y --no-install-recommends tzdata git ca-certificates curl cmake
@@ -76,7 +79,7 @@ echo "Waiting for volumes to be available"
7679
sleep 60
7780

7881
# Define base mount point directory
79-
MOUNT_POINT_BASE="/suidisk"
82+
MOUNT_POINT_BASE="/data"
8083

8184
# Create the base mount point directory if it doesn't exist
8285
if [ ! -d "$MOUNT_POINT_BASE" ]; then
@@ -210,7 +213,7 @@ wget -O genesis.blob https://github.com/MystenLabs/sui-genesis/raw/main/$NETWORK
210213

211214
wget -O $HOME/.sui/fullnode.yaml https://raw.githubusercontent.com/MystenLabs/sui/$NETWORK_ID/crates/sui-config/data/fullnode-template.yaml
212215
sed -i 's/127.0.0.1/0.0.0.0/' $HOME/.sui/fullnode.yaml
213-
sed -i "s|db-path:.*|db-path: $HOME/.sui/db|g" $HOME/.sui/fullnode.yaml
216+
sed -i "s|db-path:.*|db-path: $MOUNT_POINT_BASE/sui/db|g" $HOME/.sui/fullnode.yaml
214217
sed -i "s|genesis-file-location:.*|genesis-file-location: $HOME/.sui/genesis.blob|g" $HOME/.sui/fullnode.yaml
215218

216219
# Define the path to the configuration file

lib/sui/sample-configs/.env-sample-full

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ AWS_REGION="us-east-1" # your region of choice
77

88
## Common configuration parameters #
99
SUI_NETWORK_ID="testnet" # All options: "mainnet", "testnet" , "devnet"
10-
SUI_INSTANCE_TYPE="m6i.4xlarge" # Recommended for Instance Store: i3.2xlarge, x86_64
10+
SUI_INSTANCE_TYPE="m6i.4xlarge"
1111

1212
# Data volume configuration
13-
SUI_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
13+
SUI_DATA_VOL_TYPE="gp3" # Other options: "io1" | "io2" | "gp3"
1414
SUI_DATA_VOL_SIZE="4000" # Current required data size to keep both smapshot archive and unarchived version of it
15-
SUI_DATA_VOL_IOPS="3000" # Max IOPS for EBS volumes (not applicable for "instance-store")
16-
SUI_DATA_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2" | "instance-store")
15+
SUI_DATA_VOL_IOPS="3000" # Max IOPS for EBS volumes
16+
SUI_DATA_VOL_THROUGHPUT="700" # Max throughput for EBS gp3 volumes (not applicable for "io1" | "io2")

0 commit comments

Comments
 (0)