Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

Commit

Permalink
replace old mongo proxy with new one
Browse files Browse the repository at this point in the history
Change-Id: I7d2bc3088beb3ed14a5a8fd339d0d193398bb571
  • Loading branch information
Chunjie committed Jan 5, 2013
1 parent 22b8b6b commit f34f2d2
Show file tree
Hide file tree
Showing 27 changed files with 281 additions and 1,815 deletions.
13 changes: 3 additions & 10 deletions tools/mongodb_proxy/README.md
@@ -1,10 +1,9 @@
[ mognodb proxy ]

A proxy server to monitor mongodb disk usage and memory usage.
A proxy server to monitor mongodb disk usage.

NOTE: For mongodb 2.0.6 version, mongodb process would crash if it fails to
allocate disk file when it wants to flush journal. And, if memory runs
out, mmap returns MAP_FAILED, mongodb process would crash, either.
NOTE: The mongodb process would crash if it fails to allocate disk file
when it wants to flush journal.

[ how to build ]

Expand All @@ -18,12 +17,6 @@ NOTE: For mongodb 2.0.6 version, mongodb process would crash if it fails to
go get github.com/xushiwei/mgo/src/labix.org/v2/mgo

3. go build
# env settings

GOPATH="<working directory>/vcap-services/tools/mongodb_proxy"
export GOPATH

# build
go install proxyctl

The executable binary is located at $GOPATH/bin
Expand Down
2 changes: 1 addition & 1 deletion tools/mongodb_proxy/config/proxy.yml
Expand Up @@ -15,5 +15,5 @@ filter:
enabled: true

logging:
level: debug
level: info
path: /tmp/mongodb_proxy/mongodb_proxy.log

0 comments on commit f34f2d2

Please sign in to comment.