{
  "repo": "pingcap/tiflash",
  "binary": "tiflash",
  "binary_path": "dbms/src/Server/CMakeLists.txt",
  "surface_kind": "mixed_service",
  "type": "mixed_service",
  "services": [
    {
      "name": "TiFlashServerLifecycle",
      "package": "dbms/src/Server",
      "methods": [
        {
          "name": "StartTiFlashServer",
          "name_key": "Runtime TiFlashServerLifecycle.StartTiFlashServer",
          "input": "config file + daemon options",
          "output": "running TiFlash server with HTTP status, metrics, and Flash gRPC services",
          "type": "local"
        }
      ]
    },
    {
      "name": "DiagnosticsService",
      "package": "dbms/src/Flash",
      "methods": [
        {
          "name": "server_info",
          "name_key": "DiagnosticsService.server_info",
          "input": "gRPC request",
          "output": "server info response",
          "type": "grpc"
        },
        {
          "name": "search_log",
          "name_key": "DiagnosticsService.search_log",
          "input": "gRPC streaming request",
          "output": "diagnostic log stream",
          "type": "grpc"
        }
      ]
    }
  ],
  "extensions": {
    "notes": [
      "CMake and server sources show that TiFlash builds and installs a long-running tiflash binary, not a deployment-only repository.",
      "The binary exposes HTTP status and Prometheus metrics surfaces plus Flash or diagnostics gRPC services."
    ]
  }
}
