I'm managing a standard plan shinyapps.io account that allows up to 5 instances. I'm trying to configure an app that can allow for many students to access it at the same time. I've been doing tests and get predictable behavior when working with 1 instance but adding more instances does not behave as expected. For example:
Test 1
Instance Size = 8 GB
Worker Processes = 3
Max Connections = 5
Worker Load Factor = 5
Instance Load Factor = 50
Start Count = 1
Total Instances = 1
This should only allow 15 total users and works as expected. When I open 20 tabs in rapid succession, the first 15 work and the last 5 get 503s.
Test 2
Instance Size = 8 GB
Worker Processes = 3
Max Connections = 5
Worker Load Factor = 5
Instance Load Factor = 50
Start Count = 2
Total Instances = 5
This should at least double the amount of connections by starting a second instance. This gives the same results as Test 1. Even after it's clear that the instance is running, I still can't add any more connections. I then manually started all 5 instances and still was only able to open 15 tabs before getting 503s.
A huge part of why we're going with the standard plan is to be able to use more instances to handle traffic, but extra instances just don't seem to do anything. What am I missing?