Skip to content

Commit

Permalink
Merge master and change log format
Browse files Browse the repository at this point in the history
Signed-off-by: ZenoTan <[email protected]>
  • Loading branch information
ZenoTan committed Aug 24, 2020
2 parents eb12122 + 7a6a9da commit 199d8f0
Show file tree
Hide file tree
Showing 406 changed files with 5,599 additions and 2,531 deletions.
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!--
Thank you for working on PD! Please read PD's [CONTRIBUTING](https://github.com/pingcap/pd/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.
Thank you for working on PD! Please read PD's [CONTRIBUTING](https://github.com/tikv/pd/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.
PR Title Format:
1. pkg [, pkg2, pkg3]: what's changed
2. *: what's changed
Expand Down Expand Up @@ -27,7 +27,7 @@ Tests
Code changes

- Has configuration change
- Has HTTP API interfaces change (Don't forget to [add the declarative for API](https://github.com/pingcap/pd/blob/master/docs/development.md#updating-api-documentation))
- Has HTTP API interfaces change (Don't forget to [add the declarative for API](https://github.com/tikv/pd/blob/master/docs/development.md#updating-api-documentation))
- Has persistent data change

Side effects
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/assign-to-one-project.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
contains(github.event.issue.labels.*.name, 'component/schedule') ||
contains(github.event.issue.labels.*.name, 'component/scheduler')
with:
project: 'https://github.com/pingcap/pd/projects/5'
project: 'https://github.com/tikv/pd/projects/5'
column_name: 'Issue: Need Triage'
- name: Run issues assignment to Questions and Bug Reports
uses: srggrs/[email protected]
if: |
contains(github.event.issue.labels.*.name, 'type/question') ||
contains(github.event.issue.labels.*.name, 'type/bug')
with:
project: 'https://github.com/pingcap/pd/projects/6'
project: 'https://github.com/tikv/pd/projects/6'
column_name: 'Need Triage'
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ cache:
directories:
- $HOME/.cache/go-build
- $GOPATH/pkg/mod
- $GOPATH/src/github.com/pingcap/pd/.tools
- $GOPATH/src/github.com/tikv/pd/.tools
# Cache for old branches
- $GOPATH/src/github.com/pingcap/pd/.retools
- $GOPATH/src/github.com/tikv/pd/.retools

go:
- 1.13
Expand Down
62 changes: 31 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,34 @@

+ Unify the log format for easy collection and analysis by tools
+ Simulator
- Support different heartbeat intervals in different stores [#1418](https://github.com/pingcap/pd/pull/1418)
- Add a case about importing data [#1263](https://github.com/pingcap/pd/pull/1263)
+ Make hotspot scheduling configurable [#1412](https://github.com/pingcap/pd/pull/1412)
+ Add the store address as the dimension monitoring item to replace the previous Store ID [#1429](https://github.com/pingcap/pd/pull/1429)
+ Optimize the `GetStores` overhead to speed up the Region inspection cycle [#1410](https://github.com/pingcap/pd/pull/1410)
+ Add an interface to delete the Tombstone Store [#1472](https://github.com/pingcap/pd/pull/1472)
- Support different heartbeat intervals in different stores [#1418](https://github.com/tikv/pd/pull/1418)
- Add a case about importing data [#1263](https://github.com/tikv/pd/pull/1263)
+ Make hotspot scheduling configurable [#1412](https://github.com/tikv/pd/pull/1412)
+ Add the store address as the dimension monitoring item to replace the previous Store ID [#1429](https://github.com/tikv/pd/pull/1429)
+ Optimize the `GetStores` overhead to speed up the Region inspection cycle [#1410](https://github.com/tikv/pd/pull/1410)
+ Add an interface to delete the Tombstone Store [#1472](https://github.com/tikv/pd/pull/1472)

## v3.0.0-beta
- Add `RegionStorage` to store Region metadata separately [#1237](https://github.com/pingcap/pd/pull/1237)
- Add shuffle hot Region scheduler [#1361](https://github.com/pingcap/pd/pull/1361)
- Add scheduling parameter related metrics [#1406](https://github.com/pingcap/pd/pull/1406)
- Add cluster label related metrics [#1402](https://github.com/pingcap/pd/pull/1402)
- Add the importing data simulator [#1263](https://github.com/pingcap/pd/pull/1263)
- Fix the `Watch` issue about leader election [#1396](https://github.com/pingcap/pd/pull/1396)
- Add `RegionStorage` to store Region metadata separately [#1237](https://github.com/tikv/pd/pull/1237)
- Add shuffle hot Region scheduler [#1361](https://github.com/tikv/pd/pull/1361)
- Add scheduling parameter related metrics [#1406](https://github.com/tikv/pd/pull/1406)
- Add cluster label related metrics [#1402](https://github.com/tikv/pd/pull/1402)
- Add the importing data simulator [#1263](https://github.com/tikv/pd/pull/1263)
- Fix the `Watch` issue about leader election [#1396](https://github.com/tikv/pd/pull/1396)

## v2.1.2
- Fix the Region information update issue about Region merge [#1377](https://github.com/pingcap/pd/pull/1377)
- Fix the Region information update issue about Region merge [#1377](https://github.com/tikv/pd/pull/1377)

## v2.1.1
- Fix the issue that some configuration items cannot be set to `0` in the configuration file [#1334](https://github.com/pingcap/pd/pull/1334)
- Check the undefined configuration when starting PD [#1362](https://github.com/pingcap/pd/pull/1362)
- Avoid transferring the leader to a newly created peer, to optimize the possible delay [#1339](https://github.com/pingcap/pd/pull/1339)
- Fix the issue that `RaftCluster` cannot stop caused by deadlock [#1370](https://github.com/pingcap/pd/pull/1370)
- Fix the issue that some configuration items cannot be set to `0` in the configuration file [#1334](https://github.com/tikv/pd/pull/1334)
- Check the undefined configuration when starting PD [#1362](https://github.com/tikv/pd/pull/1362)
- Avoid transferring the leader to a newly created peer, to optimize the possible delay [#1339](https://github.com/tikv/pd/pull/1339)
- Fix the issue that `RaftCluster` cannot stop caused by deadlock [#1370](https://github.com/tikv/pd/pull/1370)

## v2.1.0
+ Optimize availability
- Introduce the version control mechanism and support rolling update of the cluster compatibly
- [Enable `Raft PreVote`](https://github.com/pingcap/pd/blob/5c7b18cf3af91098f07cf46df0b59fbf8c7c5462/conf/config.toml#L22) among PD nodes to avoid leader reelection when network recovers after network isolation
- [Enable `Raft PreVote`](https://github.com/tikv/pd/blob/5c7b18cf3af91098f07cf46df0b59fbf8c7c5462/conf/config.toml#L22) among PD nodes to avoid leader reelection when network recovers after network isolation
- Enable `raft learner` by default to lower the risk of unavailable data caused by machine failure during scheduling
- TSO allocation is no longer affected by the system clock going backwards
- Support the `Region merge` feature to reduce the overhead brought by metadata
Expand All @@ -43,7 +43,7 @@
- Optimize the issue that Balance Scheduler schedules small Regions frequently
- Optimize Region merge to consider the number of rows within the Region
- [Add more commands to control the scheduling policy](https://pingcap.com/docs/tools/pd-control/#config-show--set-option-value)
- Improve [PD simulator](https://github.com/pingcap/pd/tree/release-2.1/tools/pd-simulator) to simulate the scheduling scenarios
- Improve [PD simulator](https://github.com/tikv/pd/tree/release-2.1/tools/pd-simulator) to simulate the scheduling scenarios

+ API and operation tools
- Add the [`GetPrevRegion` interface](https://github.com/pingcap/kvproto/blob/8e3f33ac49297d7c93b61a955531191084a2f685/proto/pdpb.proto#L40) to support the `TiDB reverse scan` feature
Expand All @@ -69,25 +69,25 @@
- Optimize the performance of computing hotspot statistics

## v2.1.0-rc.5
- Fix the issues related to `pd-ctl` reading the Region key [#1298](https://github.com/pingcap/pd/pull/1298) [#1299](https://github.com/pingcap/pd/pull/1299) [#1308](https://github.com/pingcap/pd/pull/1308)
- Fix the issue that the `regions/check` API returns the wrong result [#1311](https://github.com/pingcap/pd/pull/1311)
- Fix the issue that PD cannot restart join after a PD join failure [#1279](https://github.com/pingcap/pd/pull/1279)
- Fix the issue that `watch leader` might lose events in some cases [#1317](https://github.com/pingcap/pd/pull/1317)
- Fix the issues related to `pd-ctl` reading the Region key [#1298](https://github.com/tikv/pd/pull/1298) [#1299](https://github.com/tikv/pd/pull/1299) [#1308](https://github.com/tikv/pd/pull/1308)
- Fix the issue that the `regions/check` API returns the wrong result [#1311](https://github.com/tikv/pd/pull/1311)
- Fix the issue that PD cannot restart join after a PD join failure [#1279](https://github.com/tikv/pd/pull/1279)
- Fix the issue that `watch leader` might lose events in some cases [#1317](https://github.com/tikv/pd/pull/1317)

## v2.1.0-rc.4
- Fix the issue that the tombstone TiKV is not removed from Grafana [#1261](https://github.com/pingcap/pd/pull/1261)
- Fix the data race issue when grpc-go configures the status [#1265](https://github.com/pingcap/pd/pull/1265)
- Fix the issue that the PD server gets stuck caused by etcd startup failure [#1267](https://github.com/pingcap/pd/pull/1267)
- Fix the issue that data race might occur during leader switching [#1273](https://github.com/pingcap/pd/pull/1273)
- Fix the issue that extra warning logs might be output when TiKV becomes tombstone [#1280](https://github.com/pingcap/pd/pull/1273)
- Fix the issue that the tombstone TiKV is not removed from Grafana [#1261](https://github.com/tikv/pd/pull/1261)
- Fix the data race issue when grpc-go configures the status [#1265](https://github.com/tikv/pd/pull/1265)
- Fix the issue that the PD server gets stuck caused by etcd startup failure [#1267](https://github.com/tikv/pd/pull/1267)
- Fix the issue that data race might occur during leader switching [#1273](https://github.com/tikv/pd/pull/1273)
- Fix the issue that extra warning logs might be output when TiKV becomes tombstone [#1280](https://github.com/tikv/pd/pull/1273)

## v2.1.0-rc.3
### New feature
- Add the API to get the Region list by size in reverse order [#1254](https://github.com/pingcap/pd/pull/1254)
- Add the API to get the Region list by size in reverse order [#1254](https://github.com/tikv/pd/pull/1254)
### Improvement
- Return more detailed information in the Region API [#1252](https://github.com/pingcap/pd/pull/1252)
- Return more detailed information in the Region API [#1252](https://github.com/tikv/pd/pull/1252)
### Bug fix
- Fix the issue that `adjacent-region-scheduler` might lead to a crash after PD switches the leader [#1250](https://github.com/pingcap/pd/pull/1250)
- Fix the issue that `adjacent-region-scheduler` might lead to a crash after PD switches the leader [#1250](https://github.com/tikv/pd/pull/1250)

## v2.1.0-rc2
### Features
Expand Down
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ RUN cd / && \
wget https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64 -O jq && \
chmod +x jq

RUN mkdir -p /go/src/github.com/pingcap/pd
WORKDIR /go/src/github.com/pingcap/pd
RUN mkdir -p /go/src/github.com/tikv/pd
WORKDIR /go/src/github.com/tikv/pd

# Cache dependencies
COPY go.mod .
Expand All @@ -29,9 +29,9 @@ RUN make

FROM alpine:3.5

COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-server /pd-server
COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-ctl /pd-ctl
COPY --from=builder /go/src/github.com/pingcap/pd/bin/pd-recover /pd-recover
COPY --from=builder /go/src/github.com/tikv/pd/bin/pd-server /pd-server
COPY --from=builder /go/src/github.com/tikv/pd/bin/pd-ctl /pd-ctl
COPY --from=builder /go/src/github.com/tikv/pd/bin/pd-recover /pd-recover
COPY --from=builder /jq /usr/local/bin/jq

EXPOSE 2379 2380
Expand Down
48 changes: 30 additions & 18 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
PD_PKG := github.com/pingcap/pd/v4
PD_PKG := github.com/tikv/pd

TEST_PKGS := $(shell find . -iname "*_test.go" -exec dirname {} \; | \
sort -u | sed -e "s/^\./github.com\/pingcap\/pd\/v4/")
sort -u | sed -e "s/^\./github.com\/tikv\/pd/")
INTEGRATION_TEST_PKGS := $(shell find . -iname "*_test.go" -exec dirname {} \; | \
sort -u | sed -e "s/^\./github.com\/pingcap\/pd\/v4/" | grep -E "tests")
sort -u | sed -e "s/^\./github.com\/tikv\/pd/" | grep -E "tests")
BASIC_TEST_PKGS := $(filter-out $(INTEGRATION_TEST_PKGS),$(TEST_PKGS))

PACKAGES := go list ./...
PACKAGE_DIRECTORIES := $(PACKAGES) | sed 's|$(PD_PKG)/||'
GOCHECKER := awk '{ print } END { if (NR > 0) { exit 1 } }'
OVERALLS := overalls

BUILD_BIN_PATH := $(shell pwd)/bin
GO_TOOLS_BIN_PATH := $(shell pwd)/.tools/bin
PATH := $(GO_TOOLS_BIN_PATH):$(PATH)
SHELL := env PATH='$(PATH)' GOBIN='$(GO_TOOLS_BIN_PATH)' /bin/bash
Expand Down Expand Up @@ -100,11 +101,11 @@ PD_SERVER_DEP += dashboard-ui

pd-server: export GO111MODULE=on
pd-server: ${PD_SERVER_DEP}
CGO_ENABLED=$(BUILD_CGO_ENABLED) go build $(BUILD_FLAGS) -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -tags "$(BUILD_TAGS)" -o bin/pd-server cmd/pd-server/main.go
CGO_ENABLED=$(BUILD_CGO_ENABLED) go build $(BUILD_FLAGS) -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -tags "$(BUILD_TAGS)" -o $(BUILD_BIN_PATH)/pd-server cmd/pd-server/main.go

pd-server-basic: export GO111MODULE=on
pd-server-basic:
SWAGGER=0 DASHBOARD=0 make pd-server
SWAGGER=0 DASHBOARD=0 $(MAKE) pd-server

# dependent
install-go-tools: export GO111MODULE=on
Expand All @@ -126,19 +127,19 @@ dashboard-ui:
# Tools
pd-ctl: export GO111MODULE=on
pd-ctl:
CGO_ENABLED=0 go build -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -o bin/pd-ctl tools/pd-ctl/main.go
CGO_ENABLED=0 go build -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -o $(BUILD_BIN_PATH)/pd-ctl tools/pd-ctl/main.go
pd-tso-bench: export GO111MODULE=on
pd-tso-bench:
CGO_ENABLED=0 go build -o bin/pd-tso-bench tools/pd-tso-bench/main.go
CGO_ENABLED=0 go build -o $(BUILD_BIN_PATH)/pd-tso-bench tools/pd-tso-bench/main.go
pd-recover: export GO111MODULE=on
pd-recover:
CGO_ENABLED=0 go build -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -o bin/pd-recover tools/pd-recover/main.go
CGO_ENABLED=0 go build -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -o $(BUILD_BIN_PATH)/pd-recover tools/pd-recover/main.go
pd-analysis: export GO111MODULE=on
pd-analysis:
CGO_ENABLED=0 go build -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -o bin/pd-analysis tools/pd-analysis/main.go
CGO_ENABLED=0 go build -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -o $(BUILD_BIN_PATH)/pd-analysis tools/pd-analysis/main.go
pd-heartbeat-bench: export GO111MODULE=on
pd-heartbeat-bench:
CGO_ENABLED=0 go build -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -o bin/pd-heartbeat-bench tools/pd-heartbeat-bench/main.go
CGO_ENABLED=0 go build -gcflags '$(GCFLAGS)' -ldflags '$(LDFLAGS)' -o $(BUILD_BIN_PATH)/pd-heartbeat-bench tools/pd-heartbeat-bench/main.go

test: install-go-tools
# testing...
Expand All @@ -160,7 +161,7 @@ check-all: static lint tidy

check-plugin:
@echo "checking plugin"
cd ./plugin/scheduler_example && make evictLeaderPlugin.so && rm evictLeaderPlugin.so
cd ./plugin/scheduler_example && $(MAKE) evictLeaderPlugin.so && rm evictLeaderPlugin.so

static: export GO111MODULE=on
static:
Expand All @@ -181,41 +182,52 @@ travis_coverage: export GO111MODULE=on
travis_coverage:
ifeq ("$(TRAVIS_COVERAGE)", "1")
@$(FAILPOINT_ENABLE)
CGO_ENABLED=1 $(OVERALLS) -concurrency=8 -project=github.com/pingcap/pd -covermode=count -ignore='.git,vendor' -- -coverpkg=./... || { $(FAILPOINT_DISABLE); exit 1; }
CGO_ENABLED=1 $(OVERALLS) -concurrency=8 -project=github.com/tikv/pd -covermode=count -ignore='.git,vendor' -- -coverpkg=./... || { $(FAILPOINT_DISABLE); exit 1; }
@$(FAILPOINT_DISABLE)
else
@echo "coverage only runs in travis."
endif

simulator: export GO111MODULE=on
simulator:
CGO_ENABLED=0 go build -o bin/pd-simulator tools/pd-simulator/main.go
CGO_ENABLED=0 go build -o $(BUILD_BIN_PATH)/pd-simulator tools/pd-simulator/main.go

regions-dump: export GO111MODULE=on
regions-dump:
CGO_ENABLED=0 go build -o bin/regions-dump tools/regions-dump/main.go
CGO_ENABLED=0 go build -o $(BUILD_BIN_PATH)/regions-dump tools/regions-dump/main.go

stores-dump: export GO111MODULE=on
stores-dump:
CGO_ENABLED=0 go build -o bin/stores-dump tools/stores-dump/main.go
CGO_ENABLED=0 go build -o $(BUILD_BIN_PATH)/stores-dump tools/stores-dump/main.go

clean-test:
# Cleaning test tmp...
rm -rf /tmp/test_pd*
rm -rf /tmp/pd-tests*
rm -rf /tmp/test_etcd*

clean-build:
# Cleaning building files...
rm -rf .dashboard_asset_cache/
rm -rf $(BUILD_BIN_PATH)
rm -rf $(GO_TOOLS_BIN_PATH)

deadlock-enable: install-go-tools
# Enabling deadlock...
@$(DEADLOCK_ENABLE)

deadlock-disable:
deadlock-disable: install-go-tools
# Disabling deadlock...
@$(DEADLOCK_DISABLE)

failpoint-enable: install-go-tools
# Converting failpoints...
@$(FAILPOINT_ENABLE)

failpoint-disable:
failpoint-disable: install-go-tools
# Restoring failpoints...
@$(FAILPOINT_DISABLE)

.PHONY: all ci vendor clean-test tidy
clean: failpoint-disable deadlock-disable clean-test clean-build

.PHONY: all ci vendor tidy clean-test clean-build clean
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# PD

[![TravisCI Build Status](https://travis-ci.org/pingcap/pd.svg?branch=master)](https://travis-ci.org/pingcap/pd)
![GitHub release](https://img.shields.io/github/release/pingcap/pd.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/pingcap/pd)](https://goreportcard.com/report/github.com/pingcap/pd)
[![codecov](https://codecov.io/gh/pingcap/pd/branch/master/graph/badge.svg)](https://codecov.io/gh/pingcap/pd)
[![TravisCI Build Status](https://travis-ci.org/tikv/pd.svg?branch=master)](https://travis-ci.org/tikv/pd)
![GitHub release](https://img.shields.io/github/release/tikv/pd.svg)
[![Go Report Card](https://goreportcard.com/badge/github.com/tikv/pd)](https://goreportcard.com/report/github.com/tikv/pd)
[![codecov](https://codecov.io/gh/tikv/pd/branch/master/graph/badge.svg)](https://codecov.io/gh/tikv/pd)

PD is the abbreviation for Placement Driver. It is used to manage and schedule the [TiKV](https://github.com/tikv/tikv) cluster.

Expand Down Expand Up @@ -93,13 +93,13 @@ Date: Thu, 20 Feb 2020 09:49:42 GMT
You can use the following command to build a PD image directly:

```bash
docker build -t pingcap/pd .
docker build -t tikv/pd .
```

Or you can also use following command to get PD from Docker hub:

```bash
docker pull pingcap/pd
docker pull tikv/pd
```

Run a single node with Docker:
Expand All @@ -108,7 +108,7 @@ Run a single node with Docker:
# Set correct HostIP here.
export HostIP="192.168.199.105"

docker run -d -p 2379:2379 -p 2380:2380 --name pd pingcap/pd \
docker run -d -p 2379:2379 -p 2380:2380 --name pd tikv/pd \
--name="pd" \
--data-dir="pd" \
--client-urls="http://0.0.0.0:2379" \
Expand Down
2 changes: 1 addition & 1 deletion build.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# For `--version`
$PD_PKG = "github.com/pingcap/pd"
$PD_PKG = "github.com/tikv/pd"
$GO_LDFLAGS = "-X `"$PD_PKG/server.PDReleaseVersion=$(git describe --tags --dirty)`""
$GO_LDFLAGS += " -X `"$PD_PKG/server.PDBuildTS=$(date -u '+%Y-%m-%d_%I:%M:%S')`""
$GO_LDFLAGS += " -X `"$PD_PKG/server.PDGitHash=$(git rev-parse HEAD)`""
Expand Down
Loading

0 comments on commit 199d8f0

Please sign in to comment.