网络分区中的领事连接(DMZ区域)


℘ 宋唐 ℒº ѵ ℯ楚厦
2025-03-09 09:50:15 (1月前)
  1. 假设在任何数据中心都有不同的网络分区(例如,DMZ区域),因此一些主机集不能与其他主机集联系。所以,如果我想将消息传播到任何主机中的所有主机......

2 条回复
  1. 0# 银角 | 2019-08-31 10-32



    Gossip仅用于领事,后者仅用于服务注册,服务发现和密钥/价值数据 -

    与配置有关






    事件

    机制可能就是你想要的,来自Python文档:




    1. Event =

    2. The event command provides a mechanism to fire a custom user event to
      an entire datacenter. These events are opaque to Consul, but they can
      be used to build scripting infrastructure to do automated deploys,
      restart services, or perform any other orchestration action.

    3. Unlike most Consul data, which is replicated using consensus, event
      data is purely peer-to-peer over gossip.

    4. This means it is not persisted and does not have a total ordering. In
      practice, this means you cannot rely on the order of message delivery.
      An advantage however is that events can still be used even in the
      absence of server nodes or during an outage.

    5. </code>

登录 后才能参与评论