Skip to content

Commit

Permalink
Update Fly Concurrency config
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanthlogic committed Jan 12, 2024
1 parent d9f55ed commit 3c3156b
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Cache Node.js dependencies
uses: actions/cache@v3
Expand All @@ -25,7 +25,7 @@ jobs:
${{ runner.os }}-npm-
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18

Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:

steps:
- name: Checkout Repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Get FlyCtl
uses: superfly/flyctl-actions/setup-flyctl@master
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/newman.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out repository code and Install
uses: actions/checkout@v3
uses: actions/checkout@v4
- run: npm install
- run: npm run generateoas
- run: npm start & npx wait-on http://localhost:3000
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 18
registry-url: https://npm.pkg.github.com/

- name: Install dependencies
Expand Down
6 changes: 5 additions & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@

tasks:
- name: Setup and Install
before: npm install
before: |
nvm install 18
nvm use 18
npm install
source .env.sample
init: npm run generateoas
command: npm run start

Expand Down
4 changes: 4 additions & 0 deletions fly.production.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ primary_region = "sin"
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[http_service.concurrency]
type = "requests"
soft_limit = 200
hard_limit = 250

[env]
COUNTRY_OF_QUERY = "IN"
5 changes: 5 additions & 0 deletions fly.staging.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ primary_region = "sin"
auto_start_machines = true
min_machines_running = 0
processes = ["app"]
[http_service.concurrency]
type = "requests"
soft_limit = 200
hard_limit = 250


[env]
COUNTRY_OF_QUERY = "IN"
Expand Down

0 comments on commit 3c3156b

Please sign in to comment.