A build system & runtime component to generate configuration driven gateways.
mkdir -p $GOPATH/src/github.com/uber
git clone [email protected]:uber/zanzibar $GOPATH/src/github.com/uber/zanzibar
cd $GOPATH/src/github.com/uber/zanzibar
make install
make test
for i in `seq 5`; do make bench; done
First fetch wrk
git clone https://github.com/wg/wrk ~/wrk
cd ~/wrk
make
sudo ln -s $HOME/wrk/wrk /usr/local/bin/wrk
Then you can run the benchmark comparison script
# Assume you are on feature branch ABC
./benchmarks/compare_to.sh master
First create log dir...
sudo mkdir -p /var/log/my-gateway
sudo chown $USER /var/log/my-gateway
chmod 755 /var/log/my-gateway
sudo mkdir -p /var/log/example-gateway
sudo chown $USER /var/log/example-gateway
chmod 755 /var/log/example-gateway
make run
# Logs are in /var/log/example-gateway/example-gateway.log
We use glide @ 0.12.3 to add dependencies.
Download glide @ 0.12.3 and make sure it's available in your path
If we want to add a dependency:
- Add a new section to the glide.yaml with your package and version
- run
glide up --quick
- check in the
glide.yaml
andglide.lock
If you want to update a dependency:
- Change the
version
field in theglide.yaml
- run
glide up --quick
- check in the
glide.yaml
andglide.lock
go test ./codegen/ -update