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

Consider LB internal connectivity for advertising VIPs via BGP #496

Merged
merged 5 commits into from
Mar 1, 2024

Conversation

zolug
Copy link
Collaborator

@zolug zolug commented Jan 25, 2024

Description

LB from now on announces its internal connectivity status by implementing Stream Forwarding Availability gRPC service.
The gRPC service by default uses unix socket, and the server socket is shared by LB and FE containers via a size limited emptyDir volume. (Note that TCP also works if env variables are re-configured, e.g.: tcp://127.0.0.1:5000)

The requirement for internal connectivity is 1 successfully configured application Target in the stateless-lb,
which also implies the underlying NSM connection has to be established. (Internal connectivity is followed
per stream, but 1 "working" stream with a fully configured application Target is sufficient.)

FE watches the collocated LB's internal connectivity via Stream Forwarding Availability Service Client, and only includes the VIPs in the BIRD configuration for BGP if the LB has working internal connectivity.
(Also, if internal connectivity ceases to work, FE withdraws the VIPs from the BIRD configuration denouncing the VIP addresses.)

Note:
Since an LB removes all its Streams (including the application Targets) if the collocated FE's external connectivity changes to down, its internal connectivity status will also change to down in such situation.

Issue link

#470

Checklist

  • Purpose
    • Bug fix
    • New functionality
    • Documentation
    • Refactoring
    • CI
  • Test
    • Unit test
    • E2E Test
    • Tested manually
  • Introduce a breaking change
    • Yes (description required)
    • No

To be used by stateless-lb to manage and announce
whether it is ready to forward incoming traffic
towards application targets.
    Maintain information on stateless-lb whether it is capable
    of forwarding incoming traffic towards application targets.

    Implements Stream Forwarding Availability service to achieve
    that. The server socket defaults to: unix:///var/lib/meridio/lb.sock

    The solution considers both NSM connectivity and application
    target availability: At least 1 application target is required
    with an established NSM connection towards the serving proxy
    to announce internal connectivity is available.

    The implementation hooks into the removal and succesful
    configuration of application targets. (Because configured
    targets are continuously verified, thus disappearance of a
    NSM interface can prompt the solution to revoke the internal
    connectivity.)
FE won't advertise VIPs via BGP unless the collocated LB has
working internal connectivity, that is it's capable handling
incoming VIP traffic. (External connectivity in FE is also a
requirement obviously.)

Implies VIPs are not advertised without configured application
targets.

FE watches LB internal connectivity by connecting to local LB
using Stream Availability Service Client.
@zolug zolug merged commit bab2f39 into master Mar 1, 2024
13 checks passed
@zolug zolug deleted the vip-announce branch March 4, 2024 10:26
@zolug
Copy link
Collaborator Author

zolug commented Apr 16, 2024

/reverify

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

Successfully merging this pull request may close these issues.

1 participant