Skip to content

Commit 922959c

Browse files
authored
Merge branch 'main' into solana
2 parents 1cd6858 + fa51662 commit 922959c

File tree

6 files changed

+1204
-1441
lines changed

6 files changed

+1204
-1441
lines changed

lib/constructs/ha-rpc-nodes-with-alb.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,10 +120,10 @@ export class HANodesConstruct extends cdkContructs.Construct {
120120
maxCapacity: 4,
121121
vpcSubnets: vpcSubnets,
122122
defaultInstanceWarmup: cdk.Duration.minutes(1),
123-
healthCheck: autoscaling.HealthCheck.elb({
124-
// Should give enough time for the node to catch up
125-
grace: cdk.Duration.minutes(albHealthCheckGracePeriodMin),
126-
}),
123+
healthChecks: autoscaling.HealthChecks.withAdditionalChecks({
124+
additionalTypes: [autoscaling.AdditionalHealthCheckType.ELB],
125+
gracePeriod: cdk.Duration.minutes(albHealthCheckGracePeriodMin)
126+
})
127127
});
128128

129129
rpcNodesAsg.addLifecycleHook("lifecycle-hook", {

lib/solana/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ pwd
236236
cdk destroy solana-ha-nodes
237237

238238
# Destroy Single Node
239-
cdk destroy sync-single-node
239+
cdk destroy solana-single-node
240240

241241
# Delete all common components like IAM role and Security Group
242242
cdk destroy solana-common
@@ -252,10 +252,9 @@ cdk destroy solana-common
252252
pwd
253253
# Make sure you are in aws-blockchain-node-runners/lib/solana
254254

255-
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.node-instance-id? | select(. != null)')
255+
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.nodeinstanceid? | select(. != null)')
256256
echo "INSTANCE_ID=" $INSTANCE_ID
257257
aws ssm start-session --target $INSTANCE_ID --region $AWS_REGION
258-
sudo su bcuser
259258
sudo journalctl -o cat -fu node
260259
```
261260

@@ -265,17 +264,18 @@ sudo journalctl -o cat -fu node
265264
pwd
266265
# Make sure you are in aws-blockchain-node-runners/lib/solana
267266

268-
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.node-instance-id? | select(. != null)')
267+
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.nodeinstanceid? | select(. != null)')
269268
echo "INSTANCE_ID=" $INSTANCE_ID
270269
aws ssm start-session --target $INSTANCE_ID --region $AWS_REGION
271270
sudo cat /var/log/cloud-init-output.log
272271
```
273272

274273
3. How can I restart the Solana service?
275274
``` bash
276-
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.node-instance-id? | select(. != null)')
275+
export INSTANCE_ID=$(cat single-node-deploy.json | jq -r '..|.nodeinstanceid? | select(. != null)')
277276
echo "INSTANCE_ID=" $INSTANCE_ID
278277
aws ssm start-session --target $INSTANCE_ID --region $AWS_REGION
278+
sudo systemctl restart node
279279
sudo systemctl status node
280280
```
281281

0 commit comments

Comments
 (0)