|
| 1 | +// Copyright 2025 PingCAP, Inc. |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// See the License for the specific language governing permissions and |
| 12 | +// limitations under the License. |
| 13 | + |
| 14 | +// Package kerneltype provides the kernel type of TiDB. |
| 15 | +// |
| 16 | +// We have 2 types of kernel: Classic and NextGen. |
| 17 | +// |
| 18 | +// TiDB Classic Kernel refers to the original architecture used during the early |
| 19 | +// development stages of TiDB. It utilizes a share-nothing architecture, primarily |
| 20 | +// implemented through TiKV, TiDB's distributed transactional key-value storage |
| 21 | +// component. In this setup, each TiKV instance independently manages its own |
| 22 | +// local storage and computing resources, eliminating dependencies on shared resources. |
| 23 | +// |
| 24 | +// This architecture provides advantages in terms of horizontal scalability, fault |
| 25 | +// tolerance, and simplified management. Each node independently handles data, |
| 26 | +// allowing for easy addition or removal of nodes to adapt to workload changes. |
| 27 | +// However, unlike the next-generation (cloud native) kernel, it does not leverage |
| 28 | +// shared storage solutions like S3 and requires managing local storage directly |
| 29 | +// on each node. |
| 30 | +// |
| 31 | +// The TiDB Next-gen (Cloud Native) Kernel is a new architecture specifically |
| 32 | +// designed for cloud-native infrastructure. It adopts a shared-storage architecture |
| 33 | +// for the data plane, typically using object storage solutions like Amazon S3 as |
| 34 | +// the single source of truth for data storage. |
| 35 | +package kerneltype |
0 commit comments