首页 > 解决方案 > Spring Boot Chaos Monkey 不使用 feign

问题描述

我正在用 feign、hystrix 和ribbon 测试spring boot chaos monkey。它不工作。呼叫没有按预期失败。

organizationService:
  ribbon:
    MaxAutoRetries: 2
    MaxAutoRetriesNextServer: 0
    OkToRetryOnAllOperations: true
    ServerListRefreshInterval: 2000
    ConnectTimeout: 10000
    ReadTimeout: 1000

混沌配置:

chaos:
    monkey:
        enabled: true
        watcher:
            controller: false
            restController: false
            service: false
            repository: true
            component: true

        assaults:
            level: 1
            latencyActive: true
            latencyRangeStart: 11000
            latencyRangeEnd: 40000

标签: javaspringspring-bootspring-cloudspring-boot-chaos-monkey

解决方案


推荐阅读