Local-priority load balancing

Locality-first polling

  • Prefer instances in the current AZ,

  • If there are no instances in the current AZ, select shared instances in other AZs

Configuration

  • Load balancing configuration

## client configurations
clients:
  ## client loadbalance, default: localityRoundRobin
  # loadbalance: "localityRoundRobin"
  ## grpc client configuration
  grpc:
    ## grpc client loadbalance
    # loadbalance: ""
  • Shared instance

asjard:
  service:
    instance:
      ## Can be accessed by services in different az
      # shareable: false

Last updated