Score:0

upstream timed out (110: Connection timed out) while connecting to upstream while more concurrent users accessing

vu flag

I am getting this error in error log if multiple users trying to access our site at a time say around 1000 members try to login in our site the site going 502 bad gateway error

My server capacity is 8CPU 32GB RAM

here are my settings

  location ~ \.php$ {
    proxy_read_timeout 3600;
    proxy_send_timeout 3600;
    send_timeout 3600;
    fastcgi_read_timeout 3600;
    proxy_connect_timeout 3600;
    resolver_timeout 300s;
    proxy_pass http://127.0.0.1:8030;
    proxy_http_version 1.1;
    include snippets/fastcgi-php.conf;
    fastcgi_param PHP_ADMIN_VALUE open_basedir=$document_root;
    #fastcgi_pass unix:/run/php/php7.4-fpm.sock;
    fastcgi_pass 127.0.0.1:9000;
}

Here is my www.cong settings

pm = dynamic
pm.max_children = 75
pm.start_servers = 24
pm.min_spare_servers = 16
pm.max_spare_servers = 32
pm.max_requests = 1000

I have tried so many settings but still i am getting same error . Any solution will be more helpful for me

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.