Оптимизайка

Оптимизайка
Рейтинг
396
Регистрация
11.03.2012
Интересы
Программирование, информационные технологии, наука
folink:
Это понятно что всё не учесть и переигрывать будем

https://en.wikipedia.org/wiki/Time_and_materials

https://en.wikipedia.org/wiki/Agile_software_development

You should analyze blocked URLs and should understand why some resources are not processed by nginx, and why they are proxied to apache instead.

Perhaps you should hire a system administrator.

access_log off; and show the nginx log with 503 errors.

l1mon:
Конфиг домена


location ~ \.php$ {
limit_conn perip 1;
}


location @fallback {
limit_conn perip 1;
proxy_pass http://127.0.0.1:8080;
proxy_redirect http://127.0.0.1:8080 /;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
access_log off;
}
l1mon:
Не работает это

You've configured your Ngix wrong. Show your configuration.

alexmain1107:
У меня еще почему то после установки кода Maxtarget каждый день постепенно начал падать трафик. К сегодняшнему дню падение составило уже порядка 20%.

почему то 😂

l1mon:
Что если начнуть флудить изображение, нарример? 🤪

Yes, you can limit static resources too, but it's practically useless. Nginx works effectively.

l1mon:
В случае, если есть и html страницы, прописывать (php|html)? Это будет работать?

Yes, It will. But html files are the static resource and they will not load your CPU in contrast of php scripts.

Note that I've show only an example. Your nginx location structure may differs.

l1mon:
Как сделать


limit_conn_zone $binary_remote_addr zone=backend:10m;

location ~ \.php$ {
limit_conn backend 1;
...
}

l1mon:
Правда какое оптимальное значение не понял.

10 is good. Browsers do not make more than 6 parallel requests in total (including all static resources).

You can limit this value even to 1 per single IP, in backend location, however.

Всего: 4372