Skip to content
Snippets Groups Projects
Closed Discovery: Decide on read strategy with > 1 replication for gitserver
  • View options
  • Discovery: Decide on read strategy with > 1 replication for gitserver

  • View options
  • Closed Issue created by Warren Gifford

    Created by: ryanslade

    When reading, how do we decide which replica to use. Possible strategies:

    • Pick one at random
    • Make it sticky based on user id (or anonymous id)
    • Investigate how we fall back when chosen replica is down
    • Can we introduce metadata in our shards column so that we track revisions per instance. Can we use a “high watermark” concept to ensure that internally we stay consistent.

    Some inspiration: https://www.atlassian.com/engineering/solving-distributed-consistency-with-git

    (Original JIRA: https://sourcegraph.atlassian.net/browse/COREAPP-179)

    Activity

    • All activity
    • Comments only
    • History only
    • Newest first
    • Oldest first