Skip to main content

Merging replicas patterns

Concept

Hosts in your cluster may be replicas of the same service.

Spider includes a feature that merge on the UI the replicas of the same service.
To make use of this feature, you define a set of patterns to help Spider understand what hosts are replicas of the same service.

tip

Use this feature to reduce the number of visible hosts on the map or the sequence diagram.

Configuration

Patterns are defined in the Main settings and may be shared by the selected team.

MergingReplicas.png

How does it work?

  1. The patterns are matched against the servers FQDN, and must include at least a capture group.
  2. The groups are concatenated by '.' to return the 'common name' of the server.
  3. First pattern to match wins.
  4. All servers with same 'common name' may then be merged on the map, the sequence diagram and stats (when the related option is selected.)

Where is it used?

Merge replicas feature is available on:

  • Map, to merge nodes of the same service.
    • The tooltip then shows you all replicas.
  • Sequence diagram, to merge hosts/actors of the same service
    • The tooltip then shows you all replicas.
  • Stats
    • You may use merge replicas as a group for the pivots
  • Dashboard

Examples

Pattern: ^(?:[\d]+-?)*\.?([\w+-]+?-service)

FQDNResult
192-168-0-25.books-sales-service.mynamespace.svc.cluster.localbooks-sales-service
192-168-1-143.books-sales-service.mynamespace.svc.cluster.localbooks-sales-service

Pattern: ^(gateway)

FQDNResult
gateway-59d55bf845-n485vgateway
gateway-59d55bf845-y256tgateway