This file contains hidden or 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
| #!/bin/bash | |
| header="// Copyright 2016 PingCAP, Inc. \ | |
| \n// \ | |
| \n// Licensed under the Apache License, Version 2.0 (the \"License\"); \ | |
| \n// you may not use this file except in compliance with the License. \ | |
| \n// You may obtain a copy of the License at \ | |
| \n// \ | |
| \n// http://www.apache.org/licenses/LICENSE-2.0 \ | |
| \n// \ |
This file contains hidden or 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
| /usr/local/lib/rustlib/uninstall.sh | |
| curl -sSf https://static.rust-lang.org/rustup.sh | sh -s -- --channel=nightly |
This file contains hidden or 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
| package main | |
| import ( | |
| "context" | |
| "database/sql" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| _ "net/http/pprof" |
This file contains hidden or 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
| package main | |
| import ( | |
| "bytes" | |
| "flag" | |
| "fmt" | |
| "sync" | |
| "sync/atomic" | |
| "time" |
This file contains hidden or 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
| version: '2' | |
| services: | |
| pd1: | |
| image: pingcap/pd | |
| ports: | |
| - "1234" | |
| - "9090" | |
| - "2379" | |
| - "2380" |
This file contains hidden or 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
| // Copyright 2016 PingCAP, Inc. | |
| // | |
| // Licensed under the Apache License, Version 2.0 (the "License"); | |
| // you may not use this file except in compliance with the License. | |
| // You may obtain a copy of the License at | |
| // | |
| // http://www.apache.org/licenses/LICENSE-2.0 | |
| // | |
| // Unless required by applicable law or agreed to in writing, software | |
| // distributed under the License is distributed on an "AS IS" BASIS, |
This file contains hidden or 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
| export HostIP=10.9.76.72 | |
| nmz container run --nmz-autopilot config.toml -d --name pd1 \ | |
| -p 12379:2379 \ | |
| -p 12380:2380 \ | |
| -v /data/bin/var/pd1:/tidata/pd1 \ | |
| pingcap/pd \ | |
| --cluster-id=1 \ | |
| --name="pd1" \ | |
| --data-dir="/tidata/pd1" \ |
This file contains hidden or 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
| package main | |
| import ( | |
| "database/sql" | |
| "flag" | |
| "fmt" | |
| "log" | |
| "math/rand" | |
| "os" | |
| "os/signal" |
This file contains hidden or 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
| #![allow(stable_features)] | |
| #![feature(test)] | |
| extern crate test; | |
| use std::error::Error; | |
| use std::fmt; | |
| use std::io; | |
| use std::io::Write; | |
| use std::ptr; |
This file contains hidden or 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
| global ptr2bt | |
| global ptr2size | |
| global bt_stats | |
| global quit | |
| probe begin { | |
| warn("Start tracing. Wait for 5 sec to complete.\n") | |
| } | |
| // Use tikv binary |