Skip to content

Enable rDSN.Monitor for your App

Chang Lou edited this page Dec 17, 2015 · 8 revisions

What is rDSN.Monitor?

rDSN.Monitor is more than a dashboard. It's cross-layer profiling and diagnosis tool for developers to grasp the current state of system and improve distributed system performance.

The code is here if interested.

Sample screenshots:

Main Screen Realtime Screen Vim Screen

Install

First of all, you need to install rDSN and Python2.7.

Then simply download and build rDSN.Python

what is rDSN.Python? rDSN.Monitor relies on rDSN.Python, the latter one provides the interactions between rDSN and

for Linux Users

git clone https://github.com/rDSN-Projects/rDSN.Python
cd ./rDSN.Python
build.sh

for Windows Users

"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\vcvarsall.bat" amd64
git clone https://github.com/rDSN-Projects/rDSN.Python
cd .\rDSN.Python
build.cmd

Chances are that nmake reports “cannot find python27_d.lib”, make a replica of “python27.lib” and change name to “python27_d.lib” to work around it.

Configure on single node

Add the following lines in the config.ini of your app:

[apps.monitor]
type = monitor
arguments = 8080
pools = THREAD_POOL_DEFAULT
count = 1
dmodule = dsn.dev.python_helper
dmodule_bridge_arguments = rDSN.monitor\rDSN.Monitor.py

arguments is the port number http server will use.

dmodule_bridge_arguments is the path of rDSN.Monitor.py.

Configure on a cluster