Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and it works\! self-configuring cluster.
- Loading branch information
Showing
2 changed files
with
19 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
(ns benchmark.auto-configure | ||
(:use | ||
[plasma config] | ||
[plasma.net peer presence])) | ||
[plasma config api] | ||
[plasma.net peer presence]) | ||
(:require [plasma.query.core :as q] | ||
[logjam.core :as log])) | ||
|
||
(config :presence true) | ||
|
||
(log/repl :peer) | ||
(println "starting peer...") | ||
(def p (peer)) | ||
|
||
(Thread/sleep 12000) | ||
(println "peer started") | ||
|
||
(println "sleeping 10 secs...") | ||
(Thread/sleep 10000) | ||
|
||
(let [ps (get-peers p)] | ||
(println "Got" (count ps) "peers\n\n" ps)) | ||
(println "n-peers: " (count ps)) | ||
(println "peers: \n" ps)) | ||
|
||
(System/exit) | ||
(close p) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters