xiaogaozi / tikv-proxy

A gRPC proxy for TiKV

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tikv-proxy

A gRPC proxy for TiKV

Getting started

Please follow instructions in TiKV official document to deploy a tiny TiKV cluster locally. Then run the proxy server:

$ docker run -it --rm --name tikv-proxy --network tikv -p 7788:7788 xiaogaozi/tikv-proxy:v0.0.1 --debug --pd-addrs pd.tikv:2379

Open another terminal to run the example:

$ make example
$ ./_build/example localhost:7788

Development

$ make gen-proto  # Generate Go code of protocol buffers
$ make server     # Build server
$ docker build -t xiaogaozi/tikv-proxy:v0.0.1 -f ./deploy/Dockerfile . && docker rmi $(docker images -q -f dangling=true)  # Build Docker image

About

A gRPC proxy for TiKV


Languages

Language:Go 87.7%Language:Dockerfile 6.7%Language:Makefile 3.4%Language:Shell 2.2%