Skip to content
This repository has been archived by the owner on Jul 27, 2021. It is now read-only.

Fix the rendering issues in Load test section #176

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions content/microservices/crystal/tabs/cdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 %}}
8 changes: 3 additions & 5 deletions content/microservices/frontend/tabs/cdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 %}}
6 changes: 2 additions & 4 deletions content/microservices/nodejs/tabs/cdk.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand All @@ -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 %}}