SpringCloud 集群端點

2023-11-22 13:50 更新

在某些情況下,其他應(yīng)用程序了解在Turbine中配置了哪些custers可能會很有用。為此,您可以使用/clusters端點,該端點將返回所有已配置集群的JSON數(shù)組。

GET /集群。 

[
  {
    "name": "RACES",
    "link": "http://localhost:8383/turbine.stream?cluster=RACES"
  },
  {
    "name": "WEB",
    "link": "http://localhost:8383/turbine.stream?cluster=WEB"
  }
]

可以通過將turbine.endpoints.clusters.enabled設(shè)置為false來禁用此端點。

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號