From 14806f81a214943d28cb76bdedc8d5b29d290a25 Mon Sep 17 00:00:00 2001 From: Ashok Srirama Date: Mon, 28 Jun 2021 17:51:20 -0400 Subject: [PATCH] Fix the rendering issues in Load test section --- content/microservices/crystal/tabs/cdk.md | 7 ++----- content/microservices/frontend/tabs/cdk.md | 8 +++----- content/microservices/nodejs/tabs/cdk.md | 6 ++---- 3 files changed, 7 insertions(+), 14 deletions(-) diff --git a/content/microservices/crystal/tabs/cdk.md b/content/microservices/crystal/tabs/cdk.md index 1d2d0832..8cc7facd 100644 --- a/content/microservices/crystal/tabs/cdk.md +++ b/content/microservices/crystal/tabs/cdk.md @@ -298,7 +298,7 @@ siege -c 200 -i http://ecsdemo-crystal.service:3000/crystal& - While siege is running in the background, either navigate to the console or monitor the autoscaling from the command line in a new cloud9 terminal. -{{%expand "Command Line" %}} +##### Command Line - Compare the tasks running vs tasks desired. As the load increases on the crystal service, we should see these counts eventually increase up to 10. This is autoscaling happening in real time. Please note that this step will take a few minutes. Feel free to run this in one terminal, and move on to the next steps in another terminal. @@ -317,10 +317,7 @@ watch -d -n 3 echo `aws ecs describe-services --cluster container-demo --service - NOTE: To ensure application availability, the service scales out proportionally to the metric as fast as it can, but scales in more gradually. For more information, see the [documentation](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-autoscaling-targettracking.html) -{{% /expand %}} - -{{%expand "Console" %}} +##### Console ![task-as-console-loadtest-output](/images/cdk-ecs-crystal-as-console-output.gif) -{{% /expand %}} {{% /expand %}} \ No newline at end of file diff --git a/content/microservices/frontend/tabs/cdk.md b/content/microservices/frontend/tabs/cdk.md index 50c3e844..16c9b986 100644 --- a/content/microservices/frontend/tabs/cdk.md +++ b/content/microservices/frontend/tabs/cdk.md @@ -271,12 +271,13 @@ cdk deploy --require-approval never ```bash alb_url=$(aws cloudformation describe-stacks --stack-name ecsworkshop-frontend --query "Stacks" --output json | jq -r '.[].Outputs[] | select(.OutputKey |contains("LoadBalancer")) | .OutputValue') +sudo yum install -y siege siege -c 20 -i $alb_url& ``` - While siege is running in the background, either navigate to the console or monitor the autoscaling from the command line. -{{%expand "Command Line" %}} +##### Command Line - Compare the tasks running vs tasks desired. As the load increases on the frontend service, we should see these counts eventually increase up to 10. This is autoscaling happening in real time. Please note that this step will take a few minutes. Feel free to run this in one terminal, and move on to the next steps in another terminal. @@ -293,10 +294,7 @@ while true; do sleep 3; aws ecs describe-services --cluster container-demo --ser - NOTE: To ensure application availability, the service scales out proportionally to the metric as fast as it can, but scales in more gradually. For more information, see the [documentation](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-autoscaling-targettracking.html) -{{% /expand %}} - -{{%expand "Console" %}} +##### Console - Coming soon! -{{% /expand %}} {{% /expand %}} diff --git a/content/microservices/nodejs/tabs/cdk.md b/content/microservices/nodejs/tabs/cdk.md index dd01e202..47f7edca 100644 --- a/content/microservices/nodejs/tabs/cdk.md +++ b/content/microservices/nodejs/tabs/cdk.md @@ -296,7 +296,7 @@ siege -c 100 -i http://ecsdemo-nodejs.service:3000& - While siege is running in the background, either navigate to the console or monitor the autoscaling from the command line in a new cloud9 terminal. -{{%expand "Command Line" %}} +##### Command Line - Compare the tasks running vs tasks desired. As the load increases on the nodejs service, we should see these counts eventually increase up to 10. This is autoscaling happening in real time. Please note that this step will take a few minutes. Feel free to run this in one terminal, and move on to the next steps in another terminal. @@ -315,10 +315,8 @@ watch -d -n 3 echo `aws ecs describe-services --cluster container-demo --service - NOTE: To ensure application availability, the service scales out proportionally to the metric as fast as it can, but scales in more gradually. For more information, see the [documentation](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-autoscaling-targettracking.html) -{{% /expand %}} -{{%expand "Console" %}} +##### Console ![task-as-console-loadtest-output](/images/cdk-ecs-nodejs-as-console-output.gif) -{{% /expand %}} {{% /expand %}} \ No newline at end of file