TSB Resource Consumption and Capacity Planning
The purpose of this document is to outline the general guidelines for capacity planning of Tetrate Service Bridge in Management and Control planes.
These parameters apply to production installations. TSB may and will run with minimal resources in demo-like environments.
disclaimer
The resource provisioning guidelines described in this document are very conservative. The resource provisioning described in this document refers to the vertical resource scaling, multiple replicas of the same TSB components do not share the load and should be used for high availability purposes only.
Recommended baseline production installation resource requirements
Resource requirements with 1 cluster registered and 1 service deployed in the cluster.
Component | vCPU # | Memory MiB |
---|---|---|
TSB server (Management Plane) 1 | 2 | 512 |
XCP Central Components 2 | 2 | 128 |
XCP Edge | 1 | 128 |
Front Envoy | 1 | 50 |
IAM | 1 | 128 |
TSB UI | 1 | 256 |
OAP | 4 | 5192 |
OTEL-collector | 2 | 1024 |
Zipkin | 2 | 2048 |
2 Including the Kubernetes operator.
Recommended scaling resource parameters
The TSB stack is mostly CPU-bound. Additional clusters registered with TSB via XCP increase CPU utilisation by ~4%.
The effect of additional registered clusters or additional deployed workload services on memory utilisation is almost negligible. Likewise, the effect of additional clusters or workloads on resource consumption of the majority of TSB components is mostly negligible, with the notable exceptions of TSB, XCP Central component, TSB UI and IAM.
note
Components that are part of the visibility stack (e.g. OTel/Zipkin, etc.) have their resource utilisation driven by requests, thus the resource scaling should follow the user request rate statistics. As a general rule of thumb, more than 1 vCPU is preferred. It is also important to notice that the visibility stack performance is largely bound by Elasticsearch performance.
Thus, we recommend vertically scaling the components by 1 vCPU for a number of deployed workflows:
Management Plane
Component | Scaling factor |
---|---|
TSB server | 25-50 clusters, 150-200 services |
TSB UI | 50-100 services |
XCP Central | 25-50 clusters, ~500 services |
OAP | 50-100 services |
Zipkin | 50-100 services |
IAM | ~500 services |
Front Envoy | ~1000 services |