-
Notifications
You must be signed in to change notification settings - Fork 136
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* misc: Increase ulimit to 65535 for test env (#756) * test: Fix frontend CI (#752) * ui: fix dayjs i18n (#755) * ui: handle error globally (#757) * statement, slow_query: support all fields in list page (#749) * ui: memorize expand/collapse full text in detail pages (#775) * ui: break loop dependencies (#771) * ui: fix browser compatibility check (#776) * ui: Refine store location, add zoom and pan (#772) * ui: show disk usage information for statement and slow query (#777) * ui: use qps instead of ops (#786) * statement: support export (#778) *: Fix slow query and start_ts not working in some cases (#793) * ui: fix errors doesn't display (#794) * ui: fix the error message doesn't show correct (#799) * slow_queries: support export (#792) * ui: add MySqlFormatter to customize the sql formatter (#805) *: fix query statement detail error cause by round (#806) * ui: copy original content instead of formatted content for CopyLink (#802) * add min height of topology canvas (#804) * metrics: Support customize Prometheus address (#808) * clusterinfo: Refine (#815) * ui: Open statement and slow log in new tab (#816) * ui: add more time field for slow query detail page (#810) * slowlog: Improve descriptions (#817) * build: add action to check release-version is changed for release branch * Release v2020.11.26.1
- Loading branch information
1 parent
94d8dc3
commit 6c8be22
Showing
164 changed files
with
5,848 additions
and
2,801 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Release Check | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
check_release_version: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code and release branch | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check release version | ||
run: > | ||
! (git diff --name-only --exit-code origin/release -- ./release-version) | ||
|| (echo "Please update the release-version file" && false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
Vagrant.configure("2") do |config| | ||
ssh_pub_key = File.readlines("#{File.dirname(__FILE__)}/vagrant_key.pub").first.strip | ||
|
||
config.vm.box = "hashicorp/bionic64" | ||
config.vm.provision "zsh", type: "shell", privileged: false, inline: <<-SHELL | ||
echo "Installing zsh" | ||
sudo apt install -y zsh | ||
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" | ||
sudo chsh -s /usr/bin/zsh vagrant | ||
SHELL | ||
|
||
config.vm.provision "private_key", type: "shell", privileged: false, inline: <<-SHELL | ||
echo "Inserting private key" | ||
echo #{ssh_pub_key} >> /home/vagrant/.ssh/authorized_keys | ||
SHELL | ||
|
||
config.vm.provision "ulimit", type: "shell", privileged: true, inline: <<-SHELL | ||
echo "Setting ulimit" | ||
echo "fs.file-max = 65535" >> /etc/sysctl.conf | ||
sysctl -p | ||
echo "* hard nofile 65535" >> /etc/security/limits.conf | ||
echo "* soft nofile 65535" >> /etc/security/limits.conf | ||
echo "root hard nofile 65535" >> /etc/security/limits.conf | ||
echo "root hard nofile 65535" >> /etc/security/limits.conf | ||
SHELL | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# complexCase1 | ||
|
||
TiDB, PD, TiKV, TiFlash each in different hosts. | ||
|
||
## Usage | ||
|
||
1. Start the box: | ||
|
||
```bash | ||
VAGRANT_EXPERIMENTAL="disks" vagrant up | ||
``` | ||
|
||
1. Use [TiUP](https://tiup.io/) to deploy the cluster to the box (only need to do it once): | ||
|
||
```bash | ||
tiup cluster deploy complexCase1 v4.0.8 topology.yaml -i ../_shared/vagrant_key -y --user vagrant | ||
``` | ||
|
||
1. Start the cluster in the box: | ||
|
||
```bash | ||
tiup cluster start complexCase1 | ||
``` | ||
|
||
1. Start TiDB Dashboard server: | ||
|
||
```bash | ||
bin/tidb-dashboard --pd http://10.0.1.31:2379 | ||
``` | ||
|
||
## Cleanup | ||
|
||
```bash | ||
tiup cluster destroy complexCase1 -y | ||
vagrant destroy --force | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
load "#{File.dirname(__FILE__)}/../_shared/Vagrantfile.partial.pubKey.rb" | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.provider "virtualbox" do |v| | ||
v.memory = 1024 | ||
v.cpus = 1 | ||
end | ||
|
||
(1..5).each do |i| | ||
config.vm.define "node#{i}" do |node| | ||
node.vm.network "private_network", ip: "10.0.1.#{i+30}" | ||
(1..4).each do |j| | ||
node.vm.disk :disk, size: "10GB", name: "disk-#{i}-#{j}" | ||
end | ||
end | ||
end | ||
|
||
config.vm.provision "disk", type: "shell", privileged: false, inline: <<-SHELL | ||
echo "Formatting disks" | ||
sudo mkfs.ext4 -j -L hdd1 /dev/sdb | ||
sudo mkfs.ext4 -j -L hdd2 /dev/sdc | ||
sudo mkfs.ext4 -j -L hdd3 /dev/sdd | ||
sudo mkfs.ext4 -j -L hdd4 /dev/sde | ||
echo "Mounting directories" | ||
sudo mkdir -p /pingcap/tidb-data | ||
echo "/dev/sdb /pingcap/tidb-data ext4 defaults 0 0" | sudo tee -a /etc/fstab | ||
sudo mount /pingcap/tidb-data | ||
sudo mkdir -p /pingcap/tidb-deploy | ||
sudo mkdir -p /pingcap/tidb-data/tikv-1 | ||
sudo mkdir -p /pingcap/tidb-data/tikv-2 | ||
echo "/dev/sdc /pingcap/tidb-deploy ext4 defaults 0 0" | sudo tee -a /etc/fstab | ||
echo "/dev/sdd /pingcap/tidb-data/tikv-1 ext4 defaults 0 0" | sudo tee -a /etc/fstab | ||
echo "/dev/sde /pingcap/tidb-data/tikv-2 ext4 defaults 0 0" | sudo tee -a /etc/fstab | ||
sudo mount /pingcap/tidb-deploy | ||
sudo mount /pingcap/tidb-data/tikv-1 | ||
sudo mount /pingcap/tidb-data/tikv-2 | ||
SHELL | ||
end |
Oops, something went wrong.