We have 2 instances (min) deployed to 3 regions: den, dfw, ord
The machines are dedicated-cpu-1x
The app is a simple express nodejs app that just returns 3 environment variables:
app.get("/", (req, res) => {
res.type("json");
res.send(
JSON.stringify(
{
name: process.env.FLY_APP_NAME,
id: process.env.FLY_ALLOC_ID,
region: process.env.FLY_REGION ?? "no region",
},
null,
2
)
);
});
We are trying to run and validate some auto scale parameters and basic functionality.
The load test is using apache bench:
ab -n 1000 -c 10 https://usc-0beec7.fly.dev/
We get failed requests when running the load requests (sometimes 3-4, sometimes more). In the logs, we see this message the same number of times for the failed connections:
Error: error while making HTTP request to app: connection closed before message completed
❯ fly status -a usc-0beec7
App
Name = usc-0beec7
Owner = shopmonkey
Version = 13
Status = running
Hostname = usc-0beec7.fly.dev
Platform = nomad
Deployment Status
ID = 28654c55-5ae7-39fa-08ad-4453e4cc4a89
Version = v13
Status = successful
Description = Deployment completed successfully
Instances = 2 desired, 2 placed, 2 healthy, 0 unhealthy
Instances
ID PROCESS VERSION REGION DESIRED STATUS HEALTH CHECKS RESTARTS CREATED
24b7c10e app 13 den run running 1 total, 1 passing 0 5m49s ago
af20906e app 13 dfw run running 1 total, 1 passing 0 6m46s ago
We aren’t sure if and how we should move forward. Our plan is to deploy a fairly significant SaaS app across a minimum of 10 regions if we can get this working well. Any help appreciated.