Dropped connections error

I have a python server on fly.io where each request takes approx 5 secs (8 processes for concurrency) with the following toml config

[http_service]
internal_port = 9000
force_https = true
auto_stop_machines = false
auto_start_machines = false
min_machines_running = 1
processes = ['app']
[http_service.concurrency]
type = "requests"
soft_limit = 50000
hard_limit = 100000

Also increased ulimit in entrypoint.sh based on a previous answer here.

#!/bin/bash

if [ $UID -eq 0 ]; then
    ulimit -n 500000
    echo "executed ulimit"
fi

I keep getting this error when I fire 19000 requests (note that this is lesser than the soft limit) at once.

2024-06-24T13:24:47Z proxy[148e2907f03238] sin [warn]Dropped a connection destined for tcp/443 either due to a full backlog for your app or rate limiting. We'll only notify again every power of 10 (hint: check if your app is closing connections properly when it's done with them)
2024-06-24T13:24:47Z proxy[148e2907f03238] sin [warn]Dropped 10 connections destined for tcp/443 either due to a full backlog for your app or rate limiting. (hint: check if your app is closing connections properly when it's done with them)
2024-06-24T13:24:47Z proxy[148e2907f03238] sin [warn]Dropped 100 connections destined for tcp/443 either due to a full backlog for your app or rate limiting. (hint: check if your app is closing connections properly when it's done with them)
2024-06-24T13:24:48Z proxy[148e2907f03238] sin [warn]Dropped 1000 connections destined for tcp/443 either due to a full backlog for your app or rate limiting. (hint: check if your app is closing connections properly when it's done with them)
2024-06-24T13:24:49Z proxy[148e2907f03238] sin [warn]Dropped 10000 connections destined for tcp/443 either due to a full backlog for your app or rate limiting. (hint: check if your app is closing connections properly when it's done with them)
2024-06-24T13:24:49Z proxy[148e2907f03238] sin [warn]Dropped a connection destined for tcp/443 either due to a full backlog for your app or rate limiting. We'll only notify again every power of 10 (hint: check if your app is closing connections properly when it's done with them)
2024-06-24T13:24:49Z proxy[148e2907f03238] sin [warn]Dropped 10 connections destined for tcp/443 either due to a full backlog for your app or rate limiting. (hint: check if your app is closing connections properly when it's done with them)

What is this error ? Can I increase the rate limit somewhere ? I have also tried this with type=“connections” and in both REST and GRPC servers. Get the same error.

The other errors I get are :

In REST server:

2024-06-24T13:24:52Z proxy[148e2907f03238] ams [error][PC05] timed out while connecting to your instance. this indicates a problem with your app (hint: look at your logs and metrics)
2024-06-24T13:24:52Z proxy[148e2907f03238] ams [error][PC05] timed out while connecting to your instance. this indicates a problem with your app (hint: look at your logs and metrics)
2024-06-24T13:24:52Z proxy[148e2907f03238] ams [error][PC05] timed out while connecting to your instance. this indicates a problem with your app (hint: look at your logs and metrics)
2024-06-24T13:24:52Z proxy[148e2907f03238] ams [error][PC05] timed out while connecting to your instance. this indicates a problem with your app (hint: look at your logs and metrics)
2024-06-24T13:24:52Z proxy[148e2907f03238] ams [error][PC05] timed out while connecting to your instance. this indicates a problem with your app (hint: look at your logs and metrics)
2024-06-24T13:24:52Z proxy[148e2907f03238] ams [error][PC05] timed out while connecting to your instance. this indicates a problem with your app (hint: look at your logs and metrics)

in GRPC server:

2024-06-24T12:22:14Z app[e7843d17a14608] ams [info]E0624 12:22:14.637656884     637 tcp_server_posix.cc:398]              File descriptor limit reached. Retrying.
2024-06-24T12:22:15Z app[e7843d17a14608] ams [info]E0624 12:22:15.026704979     651 tcp_server_posix.cc:398]              File descriptor limit reached. Retrying.
2024-06-24T12:22:15Z app[e7843d17a14608] ams [info]E0624 12:22:15.417490895     608 tcp_server_posix.cc:398]              File descriptor limit reached. Retrying.
2024-06-24T12:22:15Z app[e7843d17a14608] ams [info]E0624 12:22:15.771664111     598 tcp_server_posix.cc:398]              File descriptor limit reached. Retrying.
2024-06-24T12:22:16Z app[e7843d17a14608] ams [info]E0624 12:22:16.212639539     560 tcp_server_posix.cc:398]              File descriptor limit reached. Retrying.

Didn’t configure ulimit properly before. File descriptor error is resolved now.

Still stuck at the Dropped connections by fly-proxy

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.