Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a quickstart for easy testing.

  • Loading branch information...
commit 4102770b0e18a2bae84af7b9f5a1262d28d80e45 1 parent 6ff26bf
@jwatte jwatte authored
Showing with 39 additions and 0 deletions.
  1. +1 −0  .gitignore
  2. +9 −0 README.md
  3. +10 −0 quickstart.cfg
  4. +19 −0 quickstart.sh
View
1  .gitignore
@@ -22,3 +22,4 @@ bin/
obj/
debian/files
debian/istatd/
+python
View
9 README.md
@@ -20,6 +20,15 @@ carbon back-end. The specific goals of this system are:
For more documentation than what is found in this file, see:
- https://github.com/imvu-open/istatd/wiki
+Quickstart:
+-----------
+
+ git clone git@github.com:imvu-open/istatd.git
+ cd git
+ ./quickstart.sh
+
+ Then open localhost:18011 in a browser.
+
This program is implemented in C++ using boost::asio for asynchronous,
multi-threaded, evented net handling. One version of this program used
mmap() to do counter I/O asynchronously using madvise() and msync().
View
10 quickstart.cfg
@@ -0,0 +1,10 @@
+--stat-port 18001
+--http-port 18011
+--admin-port 18031
+--thread-count 4
+--log-level 2
+--retention 10s:2h,5m:12h,1h:7d
+--store /var/tmp/istatd-quickstart
+--log-file /var/tmp/istatd.log
+--files-dir /var/tmp/files
+--local-stats localhost
View
19 quickstart.sh
@@ -0,0 +1,19 @@
+#!/bin/bash
+set -e
+set -o nounset
+
+if [ -x /usr/bin/python2 ]; then
+ echo "Adding symlink to python2 into PATH."
+ ln -s /usr/bin/python2 `pwd`/python
+ export PATH=`pwd`":$PATH"
+fi
+
+echo "calling ./configure"
+./configure
+echo "calling make -j4"
+make -j4
+echo "setting up in /var/tmp"
+mkdir /var/tmp/istatd-quickstart
+ln -sf `pwd`/files /var/tmp/files
+echo "istatd starting up -- hit localhost:18011 in a browser to see it in action"
+bin/istatd --settings quickstart.cfg --user `logname`
Please sign in to comment.
Something went wrong with that request. Please try again.