joylive-agent icon indicating copy to clipboard operation
joylive-agent copied to clipboard

Add read-write prohibition to cell route policy

Open hexiaofeng opened this issue 6 months ago • 0 comments

Add read-write prohibition to cell route policy, facilitating cell failover by application and preventing mutual interference.

Such as

App1 and app2 are both deployed in cell1 and cell2 of unit 1 App1 use route policy1 App2 use route policy2 App1 failover cell1 traffic to cell2 by policy1 App2 is keeping normal by policy2

public class CellRoute { ... @Getter @Setter private AccessMode accessMode=AcessMode.READ_WRITE; ... }

Check accessMode in CellInboundFilter and CellRouteFilter.

  1. com.jd.live.agent.governance.invoke.filter.inbound.CellInboundFilter#cellAction
  2. com.jd.live.agent.governance.invoke.filter.outbound.CellRouteFilter#sponsor

hexiaofeng avatar Aug 22 '24 00:08 hexiaofeng