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
Original file line number Original file line Diff line number Diff line change
@@ -1,10 +1,9 @@
[ mognodb proxy ] [ 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 NOTE: The mongodb process would crash if it fails to allocate disk file
allocate disk file when it wants to flush journal. And, if memory runs when it wants to flush journal.
out, mmap returns MAP_FAILED, mongodb process would crash, either.


[ how to build ] [ 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 go get github.com/xushiwei/mgo/src/labix.org/v2/mgo


3. go build 3. go build
# env settings

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

# build
go install proxyctl go install proxyctl


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


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

0 comments on commit f34f2d2

Please sign in to comment.