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

Zuul2 Connection Pool Settings #1172

Open
rajc28 opened this issue Jan 11, 2022 · 3 comments
Open

Zuul2 Connection Pool Settings #1172

rajc28 opened this issue Jan 11, 2022 · 3 comments

Comments

@rajc28
Copy link

rajc28 commented Jan 11, 2022

Hi Team , I am having hard time understanding the below connection settings and how they are inter-related. Can someone provide more details on it.

Ribbon Client Config Property
<originName>.ribbon.MaxConnectionsPerHost 

Zuul Properties
<originName>.netty.client.maxRequestsPerConnection
<originName>.netty.client.perServerWaterline 

And In Zuul2 documentation I see this point Zuul does not use Ribbon for making outgoing connections and instead uses its own connection pool, using a Netty client. Does this mean the ribbon property originName
.ribbon.MaxConnectionsPerHost
is not used by zuul ?

We have a scenario where we are using same origin host for multiple services where we are observing issues between zuul and origin, what is the best approach and better connection pool settings.

Example:
originName1 goes to origin host1
originName2 goes to origin host1
'
'
originNameN goes to origin host1

At present we are using below connection pool settings

<originName>.ribbon.MaxConnectionsPerHost=-1

<originName>.netty.client.maxRequestsPerConnection = 10000
<originName>.netty.client.perServerWaterline = -1

And do we need to tweak any other connection property for better results ?

@artgon
Copy link
Contributor

artgon commented Jan 11, 2022

Zuul will respect the Ribbon properties to bootstrap a connection but it doesn't use the client itself. What kind of issues are you running into?

@rajc28
Copy link
Author

rajc28 commented Jan 12, 2022

We are getting lot of 504's and 502's during high traffic which is 10k req/sec.

And also I see a point **Zuul creates a connection pool per host, per event loop ** , does the host in this context mean origin host or zuul host ?

@artgon
Copy link
Contributor

artgon commented Jan 12, 2022

"Host" there refers to the origin server. See benchmarking section for sample config to run high RPS tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants