Permalink
Browse files

Add RackUp file for v1 retrieval service

  • Loading branch information...
1 parent cdd66c6 commit 9b7fd4fd37e05e0bea0477b097aba158c73d0a5d Noah Gibbs committed Nov 8, 2012
Showing with 15 additions and 0 deletions.
  1. +15 −0 config_v1.ru
View
@@ -0,0 +1,15 @@
+require "hastur-server/service/retrieval"
+require "hastur-rack"
+
+# defined on most of our Hastur boxes via hastur-deploy
+cassandra_servers = []
+
+if ENV['CASSANDRA_URIS']
+ cassandra_servers = MultiJson.load(ENV['CASSANDRA_URIS']).flatten
+else
+ cassandra_servers = [ '127.0.0.1:9160' ]
+end
+
+use Hastur::Rack, "hastur.retrieval"
+
+run Hastur::Service::Retrieval.new cassandra_servers

0 comments on commit 9b7fd4f

Please sign in to comment.