Skip to content

Marathon in HA mode #105

@mattes

Description

@mattes

HA -- run any number of Marathon schedulers, but only one gets elected as leader; if you access a non-leader, your request gets proxied to the current leader

As proxying adds latency, we should try to find the leader (/v2/leader endpoint) in the cluster logic and then send all further requests to the master/leader directly.

Whenever a http request fails:

  1. find the new leader.
  2. re-send the request if step 1 only took x ms? (to make it more fault tolerant)

Also check for the latest leader/master in the background every minute or so. Because the currently used leader/master might transition to a slave in the meanwhile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions