# Business Overview

## Business Context Diagram

```mermaid
graph TD
    A[TiDB Cloud Infrastructure] --> B[infra-provider]
    B --> C[Cluster Provisioning]
    B --> D[Resource Management]
    B --> E[Monitoring & Observability]
    B --> F[Chaos Engineering]
    B --> G[GitOps Management]
    
    C --> H[TiDB Clusters]
    D --> I[Cloud Resources]
    E --> J[Metrics & Logs]
    F --> K[Chaos Injection]
    G --> L[Configuration Management]
```

## Business Description

- **Business Description**: infra-provider is a critical component of TiDB Cloud's infrastructure management system. It provides a set of Kubernetes controllers that manage the lifecycle of TiDB Cloud product components, including cluster provisioning, resource management, monitoring, and chaos engineering.

- **Business Transactions**:
  - **Cluster Provisioning**: Create, update, and delete TiDB clusters in the dataplane
  - **Resource Management**: Manage cloud resources associated with TiDB clusters
  - **Monitoring**: Collect and export metrics for observability
  - **Chaos Engineering**: Inject chaos into the system to test resilience
  - **GitOps Management**: Manage configuration and deployment through GitOps

- **Business Dictionary**:
  - **Infra Provider**: Infrastructure provider - manages TiDB Cloud infrastructure components
  - **Kubernetes Controllers**: Custom controllers extending Kubernetes functionality
  - **TiDB Clusters**: Distributed SQL database clusters
  - **Dataplane**: The computing plane where TiDB clusters are running
  - **GitOps**: A way to do Kubernetes cluster management using Git as a single source of truth

## Component Level Business Descriptions

### infra-provider

- **Purpose**: Manage the lifecycle of TiDB Cloud product components
- **Responsibilities**:
  - Provision and manage TiDB clusters in the dataplane
  - Manage cloud resources associated with TiDB clusters
  - Monitor the health and performance of infrastructure
  - Inject chaos to test system resilience
  - Provide GitOps-based configuration management
  - Export metrics for observability and alerting
