How does the load balancing work with multiple app instances within a region? It appears that one instance is serving most of the requests within a single region. Why would this be?
I have 3x app instances in the DFW region.
$ fly status | ag dfw
633ef9dc app 243 dfw run running 1 total, 1 passing 0 15m10s ago
edc5f96e app 243 dfw run running 1 total, 1 passing 0 15m10s ago
12b0e9f4 app 243 dfw run running 1 total, 1 passing 0 15m10s ago
When I tail the logs and count how many lines are for each region, approximating the number of requests being served by each app instance, there is a massive difference between them (looking at the log lines this seems reasonable), where one instance is serving most of the requests.
After running “flyctl logs > fly.logs” for a while, I then run…
$ cat fly.logs | ag 633ef9dc | wc -l
4536
$ cat fly.logs | ag 12b0e9f4 | wc -l
339
$ cat fly.logs | ag edc5f96e | wc -l
284
Why would one app instance serve ~15x the requests than the other two?
I think most of the requests are likely bing/google but I wouldn’t expect that to matter.