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

[Jupiter] Support Failover #8086

Closed
1 task
ytvnr opened this issue Jul 11, 2022 · 3 comments
Closed
1 task

[Jupiter] Support Failover #8086

ytvnr opened this issue Jul 11, 2022 · 3 comments

Comments

@ytvnr
Copy link
Member

ytvnr commented Jul 11, 2022

🌈 Feature

When failover is enabled and the endpoint does not work, then I should fall back to the second one.

🌄 Additional information

When running standalone container tests in Jupiter mode (see this issue), then it appears that the current implementation of FailoverInvoker was not compatible with Jupiter.

Failover document: https://docs.gravitee.io/apim/3.x/apim_publisherguide_backend_services.html#configure_failover

Acceptance Criteria

  • Failover feature should work like V3 Gateway
@Sicofonia
Copy link

Refined, ready for sprint

@jhaeyaert
Copy link

To test it you can enable the Failover on a Jupiter api and configure your backend to point on http://localhost:12332

Run the following command to start listening on the local port: nc -l 12332 -k

Try you api, you should see multiple request coming to your local netcat (1 + N where N is the number of failover attempts).

@LiliaEn
Copy link
Contributor

LiliaEn commented Aug 18, 2022

Tested on the default env v3.19.0
Used the same API to cover both Jupiter and V3 with a webhook site as BE.
The number of requests received on the webhook site is equal to number of failover attempts set +1.
Screenshot 2022-08-18 at 18 40 22
Screenshot 2022-08-18 at 18 40 30
Screenshot 2022-08-18 at 18 40 59

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

No branches or pull requests

5 participants