Uploaded image for project: 'Apache ServiceComb'
  1. Apache ServiceComb
  2. SCB-2729

test edge service for instance pull configurations

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • java-chassis-2.8.13
    • Java-Chassis
    • None

    Description

      servicecomb:
        service:
          registry:
            instance:
              watch: true # 打开 watch , 检测实例状态会更加实时
              healthCheck:
                interval: 10 # 适当降低心跳时间,实例感知会更加快
        boot:
          turnDown:
            # 实例状态修改为DOWN以后等待时间,默认值为0,即不等待。
            waitInSeconds: 30
        loadbalance:
          retryEnabled: true # 是否开启重试策略
          retryOnNext: 1  # 重新寻找一个实例重试的次数(不同于失败实例,依赖于负载均衡策略)
          retryOnSame: 0  # 在失败的实例上重试的次数
          isolation:
            enabled: true
            enableRequestThreshold: 5 # 统计周期内实例至少处理的请求数,包括成功和失败。
            singleTestTime: 60000 # 实例隔离后,经过这个时间,会尝试访问。如果访问成功,则取消隔离,否则继续隔离。
            continuousFailureThreshold: 2 # 实例隔离的条件,连续两次失败。
      

      Test1: gateway retry work

      Test2: gateway instance isolation work

       

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            liubao68 liubao
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: