Skip to content

Commit

Permalink
Set Fargate desired task count to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
itaisteinherz committed Feb 12, 2019
1 parent 80aecba commit b3c8a0f
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 126 deletions.
8 changes: 4 additions & 4 deletions docs/swagger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ swagger: "2.0"

info:
description: Swagger documentation for [Knowledge](https://github.com/chingu-voyage7/Bears-Team-22).
version: 1.0.0
version: 0.1.0
title: Knowledge API
license:
name: MIT
Expand Down Expand Up @@ -269,7 +269,7 @@ paths:
message: "Network error"

# Thread routes
/thread/:questionId:
/thread/{questionId}:
get:
tags:
- "content"
Expand Down Expand Up @@ -330,7 +330,7 @@ paths:
path: question

# Tag routes
/tag/browse/:tagname:
/tag/browse/{tagname}:
get:
tags:
- "tag"
Expand Down Expand Up @@ -391,7 +391,7 @@ paths:
application/json:
error: "Internal server error: couldn't fulfill the request at the current time."

/tag/tags/:query:
/tag/tags/{query}:
get:
tags:
- "tag"
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Both our frontend and backend are written in Node.js. The tech stack consists of

- [Express.js](https://expressjs.com) - for the main API which servers the frontend app.
- [MongoDB](https://www.mongodb.com) - for data storage.
- [Firebase Auth](https://firebase.google.com/docs/auth) - for password-based user authentication
- [Firebase Auth](https://firebase.google.com/docs/auth) - for password-based user authentication.

#### DevOps and deployment

Expand Down
9 changes: 0 additions & 9 deletions server/cloud/bin/aws.js

This file was deleted.

81 changes: 0 additions & 81 deletions server/cloud/lib/aws-stack.js

This file was deleted.

30 changes: 0 additions & 30 deletions server/cloud/lib/stack.js

This file was deleted.

3 changes: 2 additions & 1 deletion server/cloud/lib/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ export class KnowledgeStack extends cdk.Stack {
image: ecs.ContainerImage.fromAsset(this, "KnowledgeImage", {
directory: ".."
}),
containerPort: 5000
containerPort: 5000,
desiredCount: 2 // Meant to make sure at least 1 task is always running.
});

// Output the DNS where you can access your service
Expand Down

0 comments on commit b3c8a0f

Please sign in to comment.