How does nginx define collections in nginx.conf?

I want to use nginx to load balance the image server. Looking at the load balance of nginx, it seems that the request is forwarded. In this case, if many clients upload pictures at the same time, and all the image data is forwarded by nginx, the network may be blocked?
if the performance bottleneck is cpu, there is no problem with load balancing using nginx. But the first performance bottleneck should be the server network bandwidth
all. I want to save the collection of information such as ip and port of all image servers in nginx.conf. The client gets the information of a picture server from the collection before uploading pictures, and then uploads the pictures to the corresponding picture server.
but you only see set defining variables. How do you define a collection and random one from it? It would be better if you could weigh it.

Apr.11,2021

Baidu search nginx upstream to find out. http://www.cnblogs.com/microt.


write down the requirements clearly, find your infrastructure architect, and if you don't have this position, find a load balancing team / expert. If you don't have it, why don't you just hang up a storage on a stand-alone machine and run first?

Menu