我正在用我的应用程序测试Hystrix仪表板,我希望每个命令组键都有单独的部分。这是仪表板的功能吗?我找不到有关此功能的任何文档...
这是我创建命令的方式,每个命令组使用不同的常量(对于不同种类的命令,我有3或4个单独的组...)
public CustomCommand() {
// Call the HystrixCommand constructor using a Setter to establish the command
// configuration. See https://github.com/Netflix/Hystrix/wiki/Configuration
super(Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey(HYSTRIX_COMMAND_GROUP_KEY))
// The command key sets which of this command instances will share configuration
.andCommandKey(HystrixCommandKey.Factory.asKey(command.getConfigKey()))
.andThreadPoolPropertiesDefaults(HystrixThreadPoolProperties.Setter()
// Allow up to 100 simultaneous executions
.withMaximumSize(MAX_THREADPOOL_SIZE)
.withAllowMaximumSizeToDivergeFromCoreSize(true))
.andCommandPropertiesDefaults(HystrixCommandProperties.Setter()
...
}