tikv/pd là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng Go, với 1.2k sao. Placement driver for TiKV
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
PD is the abbreviation for Placement Driver. It manages and schedules TiKV clusters.
PD supports fault-tolerance by embedding etcd.
If you're interested in contributing to PD, see CONTRIBUTING.md. For more contributing information about where to start, click on the contributor icon above.
Build
Make sure Go (version 1.27.3 or later) is installed.
Run make (equivalent to make build) to build PD. pd-server, pd-ctl, and pd-recover will be produced in the bin directory.
Usage
PD can be configured using command-line flags. For more information, see PD Configuration Flags.
Single node with default ports
You can run pd-server directly on your local machine. If you want to connect to PD from outside, you can let PD listen on the host IP.
# Set HOST_IP to the address you want to listen on
export HOST_IP="192.168.199.105"
pd-server --name="pd" \
--data-dir="pd" \
--client-urls="http://${HOST_IP}:2379" \
--peer-urls="http://${HOST_IP}:2380" \
--log-file=pd.log
You can choose one of the following methods to get a PD image:
Build locally:
docker build -t pingcap/pd .
Pull from Docker Hub:
docker pull pingcap/pd
Then you can run a single node using the following command:
# Set HOST_IP to the address you want to listen on
export HOST_IP="192.168.199.105"
docker run -d -p 2379:2379 -p 2380:2380 --name pd pingcap/pd \
--name="pd" \
--data-dir="pd" \
--client-urls="http://0.0.0.0:2379" \
--advertise-client-urls="http://${HOST_IP}:2379" \
--peer-urls="http://0.0.0.0:2380" \
--advertise-peer-urls="http://${HOST_IP}:2380" \
--log-file=pd.log
Cluster
As a component of the TiKV project, PD needs to run with TiKV to work. The cluster can also include TiDB to provide SQL services. For detailed instructions to deploy a cluster, refer to Deploy a TiDB Cluster Using TiUP or TiDB on Kubernetes Documentation.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/tikv/pd là nguồn chính thức.
tikv/pd có bao nhiêu sao?
tikv/pd có 1.2k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/tikv/pd. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
tikv/pd có những chủ đề gì?
GitHub topics của tikv/pd: "hacktoberfest". TopGit xếp repo vào nhóm mã nguồn mở.
tikv/pd có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho tikv/pd. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
tikv/pd còn đang phát triển không?
Commit gần nhất trên tikv/pd là 10 ngày trước (theo timestamp GitHub). Repo có 791 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
tikv/pd dùng license gì?
tikv/pd phát hành theo license Apache-2.0. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
tikv/pd viết bằng ngôn ngữ gì?
tikv/pd chủ yếu viết bằng Go. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về pd?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về pd.