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

MAISTRA-2149: Make IOR robust in multiple replicas #282

Merged
merged 1 commit into from
Mar 1, 2021

Commits on Mar 1, 2021

  1. MAISTRA-2149: Make IOR robust in multiple replicas

    In scenarios where multiple replicas of istiod are running,
    only one IOR should be in charge of keeping routes in sync
    with Istio Gateways. We achieve this by making sure IOR only
    runs in the leader replica.
    
    Also, because leader election is not 100% acurate, meaning
    that for a small window of time there might be two instances
    being the leader - which could lead to duplicated routes
    being created if a new gateway is created in that time frame -
    we also change the way the Route name is created: Instead of
    having a generateName field, we now explicitly pass a name to
    the Route object to be created. Being deterministic, it allows
    the Route creation to fail when there's already a Route object
    with the same name (created by the other leader in that time frame).
    
    Use an exclusive leader ID for IOR
    
    Manual cherrypick of maistra#275
    jwendell committed Mar 1, 2021
    Configuration menu
    Copy the full SHA
    b99d942 View commit details
    Browse the repository at this point in the history