Skip to content

Commit 07a1af4

Browse files
committed
BSC fix for HA nodes data volumes
1 parent 4cd7178 commit 07a1af4

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,10 @@ if [ "$NODE_ROLE" == "single-node" ]; then
154154
/opt/aws/bin/cfn-signal --stack $STACK_NAME --resource $RESOURCE_ID --region $AWS_REGION
155155
fi
156156

157-
echo "Waiting for volumes to be available"
158-
sleep 60
157+
if [ "$NODE_ROLE" == "single-node" ]; then
158+
echo "Single node. Wait for one minute for the volume to be available"
159+
sleep 60
160+
fi
159161

160162
mkdir -p /data
161163

lib/bsc/lib/ha-nodes-stack.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,9 @@ export class BscHANodesStack extends cdk.Stack {
8484
_AUTOSCALING_GROUP_NAME_: autoScalingGroupName
8585
});
8686

87-
88-
const healthCheckPath = "/";
89-
9087
const rpcNodes = new HANodesConstruct(this, "rpc-nodes", {
9188
instanceType,
9289
dataVolumes: [dataVolume],
93-
rootDataVolumeDeviceName: "/dev/sda1",
9490
machineImage: new ec2.AmazonLinuxImage({
9591
generation: AmazonLinuxGeneration.AMAZON_LINUX_2,
9692
kernel:ec2.AmazonLinuxKernel.KERNEL5_X,
@@ -103,7 +99,6 @@ export class BscHANodesStack extends cdk.Stack {
10399
numberOfNodes,
104100
rpcPortForALB: 8545,
105101
albHealthCheckGracePeriodMin,
106-
healthCheckPath,
107102
heartBeatDelayMin,
108103
lifecycleHookName: lifecycleHookName,
109104
autoScalingGroupName: autoScalingGroupName

0 commit comments

Comments
 (0)