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
package main | |
import ( | |
"fmt" | |
"log" | |
"math" | |
"math/rand" | |
"sort" | |
"strconv" | |
"strings" |
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
package main | |
import ( | |
"bufio" | |
"fmt" | |
"log" | |
"math" | |
"os" | |
"sort" | |
"strconv" |
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
./pd-server --cluster-id=1 --host=127.0.0.1 --min-capacity-used-ratio 0.01 --name=pd --data-dir=../data/pd --initial-cluster=pd=http://127.0.0.1:2380 | |
./tikv-server -S raftkv --addr 127.0.0.1:5551 --etcd 127.0.0.1:2379 -s ../data/data1 --cluster-id 1 --capacity 1GB -C ../etc/tikv-conf.toml | |
./tikv-server -S raftkv --addr 127.0.0.1:5552 --etcd 127.0.0.1:2379 -s ../data/data2 --cluster-id 1 --capacity 1GB -C ../etc/tikv-conf.toml | |
./tikv-server -S raftkv --addr 127.0.0.1:5553 --etcd 127.0.0.1:2379 -s ../data/data3 --cluster-id 1 --capacity 1GB -C ../etc/tikv-conf.toml | |
./tikv-server -S raftkv --addr 127.0.0.1:5554 --etcd 127.0.0.1:2379 -s ../data/data4 --cluster-id 1 --capacity 1GB -C ../etc/tikv-conf.toml |
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
#!/bin/sh | |
BIN_DIR=`pwd`/bin | |
DATA_DIR=`pwd`/data | |
LOG_DIR=`pwd`/logs | |
CONF_DIR=`pwd`/etc | |
REGION_SIZE="1 MB" | |
HOST_IP="127.0.0.1" |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"net/http" | |
"sync" | |
"time" | |
"github.com/go-xorm/xorm" |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"math/rand" | |
"time" | |
"github.com/go-xorm/xorm" | |
"github.com/ngaut/log" |
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
package main | |
import ( | |
"log" | |
"math/rand" | |
"upper.io/db.v1" | |
"upper.io/db.v1/mysql" | |
) |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"sync" | |
"time" | |
"github.com/ngaut/log" | |
"github.com/pingcap/tidb/kv" |
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
package main | |
import ( | |
"fmt" | |
"time" | |
"github.com/ngaut/log" | |
"github.com/pingcap/tidb/kv" | |
"github.com/pingcap/tidb/store/tikv" | |
) |
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
language: rust | |
rust: nightly | |
dist: trusty | |
sudo: required | |
addons: | |
apt: | |
packages: ['build-essential', 'zlib1g-dev', 'libbz2-dev', 'libsnappy-dev', 'libjemalloc-dev', 'curl', 'libcurl4-openssl-dev', 'libelf-dev', 'libdw-dev', 'libbfd-dev'] | |
before_script: | |