Comments (4)
keepalive
в конфиге nginx должно быть чуть меньше, чем количество threads min-worker
в конфиге hyperfastcgi и обязательно должно быть меньше чем threads max-worker
. При данных значениях threads "90,0,24,0" keepalive
должно быть около 80
Также необходимо обновить mono. 3.2.8 - очень старая версия и она может быть источником проблем.
Сколько ядер на сервере? Какая версия ServiceStack используется? Какая строка запуска hyperfastcgi? Что выдает hyperfastcgi в консоль? Что в логах nginx во время ошибок 502?
502 ошибка возникает на каждом запросе после 50К запросов или лишь на некоторых запросах? Также может быть в каком-нибудь сервисе deadlock, который блокирует threads и из-за этого после продолжительной работы свободных threads не остается. Чтобы это проверить, необходимо настроить counters, которые следят за threadpool и понаблюдать за ними в процессе выполнения.
from hyperfastcgi.
Что это я, на русском ведь можно.
Приветсвую, проблема описана выше, для веб приложения использую servicestack, получаю 502 ошибку не всегда после 50к запросов, бывает и на 20k.
from hyperfastcgi.
Первые два конфига это nginx вторые два для HyperFastCgi:
server.conf.txt
nginx.conf.txt
hyperfast_server.config.txt
hyperfast_app.config.txt
from hyperfastcgi.
Проблема была в конфигурировании HyperfastCgi, заменил NativeListener на ManagedFastCgiListener, всё заработало, спасибо Сергею за помощь
from hyperfastcgi.
Related Issues (20)
- Seeing requests with about 46k of request body data fail with 502 under mono-server-hyperfastcgi4 HOT 3
- Will HyperFastCgi support .NET Core (ASP .NET 5)? HOT 1
- hyperfastcgi stop working but not crash HOT 11
- Trying to test NativeTransport and getting DllNotFoundException HOT 12
- compile agains mono 4.8.0 fail HOT 4
- 502 with Nginx HOT 5
- segfault after interrupting hung process with /stoppable=true HOT 2
- Weird Exception while initOnce HOT 1
- Hyperfastcgi crashing HOT 4
- HyperFastCgi crashes if there is nothing in the webapp folder HOT 1
- configfile difficult to use HOT 1
- fcgi-transport.c:444: parse_params(): Can't find app! HOST='my.host' port=443 path='/index.aspx' HOT 4
- How can I set the umask for the process?
- No package 'mono-2' found, хотя mono установлен HOT 1
- Configuration location for ApplicationPoolRecycling HOT 2
- Error calling 'bufferevent_free' twice in NativeTransport on request end
- Probably race condition? HOT 1
- hyperfastcgi in nginx default server
- Managed Listener leaks sockets
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hyperfastcgi.