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

Use proxy instead of list of container endpoints in FeedClientBuilder #33215

Open
mohsin36 opened this issue Jan 29, 2025 · 1 comment
Open
Assignees

Comments

@mohsin36
Copy link

We are currently using FeedClientBuilder.setEndpointUrl(List endpoints)
https://javadoc.io/doc/com.yahoo.vespa/vespa-feed-client-api/8.26.15/ai/vespa/feed/client/FeedClientBuilder.html#setEndpointUris(java.util.List)

However this causes connection issue during container host reboots or downtime even on a single node.

Can we use a reverse proxy instead of explicit list of containers? Reverse proxy would take care of forwarding requests only to healthy container nodes.

@bjorncs
Copy link
Member

bjorncs commented Feb 5, 2025

Hi @mohsin36

Can we use a reverse proxy instead of explicit list of containers? Reverse proxy would take care of forwarding requests only to healthy container nodes.

Yes, that is common practice.

However this causes connection issue during container host reboots or downtime even on a single node.

Connection failures should be handled seamlessly. What can of failures do you observe? FYI the javadoc refers to 8.26.15, which is quite an old version. If that's the version used, we highly recommend upgrading as more recent versions contains a few connection related fixes.

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

No branches or pull requests

2 participants