Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finatra closes connection #161

Closed
davydkov opened this issue Aug 29, 2014 · 1 comment

Comments

@davydkov
Copy link
Contributor

commented Aug 29, 2014

Hi everyone

We faced with a problem of using finatra behind nginx. We have two nodes (EC2 c3.large) and nginx as a load balancer. Load is not super high, something around 50-100 req/s.
Sometimes we get errors on nginx

... upstream prematurely closed connection while reading response header from upstream
... connect() failed (111: Connection refused) while connecting to upstream
... connect() failed (111: Connection refused) while connecting to upstream

And as a result we get 502 as a response. Interesting is that there are no exceptions in the logs of finatra or our application. Percent of such errors is below 2%.
Another strange thing, that the same request could be processed or not. So we get this error randomly.

Does anyone have ideas where to start digging?

Finatra 0.15.3
Finagle 6.17.0
Twitter Server 1.7.1

@davydkov

This comment has been minimized.

Copy link
Contributor Author

commented Aug 29, 2014

@davydkov davydkov closed this Aug 29, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant
You can’t perform that action at this time.