This topic gives you additional configuration for the Supply Chain Controller Capability to use when setting up supply chains for Tanzu Platform.
Configure the supply chain controller
The supply chain controller reconciles the relevant Custom Resources (CRs) and sends logs to the Tanzu Hub Graph
.
Controller resource limits
To update the resource limits for the supply chain controller pod, configure the following values when you’re installing the supply chain controller Capability:
manager:
resources:
limits:
cpu: 1000m
memory: 512Mi
requests:
cpu: 150m
memory: 256Mi
Concurrency
The concurrency
setting is the maximum number of resources that each controller processes at the same time. The default is 2
.
manager:
concurrency: 3
Configure the warehouse server
The warehouse server is used to store intermediate artifacts to pass between tasks.
Warehouse resource limits
To update the resource limits for warehouse server pod, configure the following values when you’re installing the supply chain controller Capability:
warehouse:
resources:
limits:
cpu: 1000m
memory: 512Mi
requests:
cpu: 150m
memory: 256Mi
Storage class and limits
The warehouse server creates a persistent volume claim so that it can store the intermediate artifacts created by supply chain stages during a workflow run. By default, the storage size requested is 10 Gi, and the storage class is set to empty. This forces Kubernetes to use the default storage class configured in the cluster.
To update these defaults, set the following values when you’re installing the supply chain controller:
warehouse:
resources:
storage: 10Gi
storageClass: ""
Artifact garbage collection settings
The warehouse server includes a built-in time based garbage collection mechanism which cleans up artifacts older than 60 minutes. It runs every 10 minutes.
You can change the default garbage collection configuration by setting interval
and maxAge
in the values when you’re installing the supply chain controller:
warehouse:
garbageCollection:
interval: 5
maxAge: 30
Content feedback and comments