forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_run
20 lines (20 loc) · 802 Bytes
/
setup_run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# very basic local run, this is meant to be source'ed
set -x
ulimit -n 16384
mkdir -p emptydir
mkdir -p mixerconfig
cp istio/mixer/testdata/config/* mixerconfig/
rm mixerconfig/stackdriver.yaml
cd istio; set +x; source bin/use_bazel_go.sh ; set -x; cd ..
# Need to have go installed and GOPATH/bin in the path
fortio server &
( cd proxy/src/envoy/mixer; ./start_envoy > /tmp/envoy.log ) &
# add -v=5 for verbose/debug
./istio/bazel-bin/mixer/cmd/server/mixs server --configStore2URL=fs://$(pwd)/mixerconfig --configStoreURL=fs://$(pwd)/emptydir --logtostderr 2> /tmp/mixs.2.log > /tmp/mixs.1.log &
echo "starting everything..."
sleep 3
curl -v http://localhost:9090/debug
sleep 1
curl -v http://localhost:42422/metrics
set +x
echo "you can now run: fortio load -qps 0 -c 16 http://localhost:9090/echo"