Skip to content

Instantly share code, notes, and snippets.

17:58 < tmm1> kevinclark: so updating max_per_second did it?
18:05 < kevinclark> the last of many tweaks :) previously I think I had things poorly configured (didn't grow well from 1 box to 5). So now we've got one machine doing relay/agg, 5 doing storage/render.
memcached on each storage box (which only hits locally)
18:05 < kevinclark> there was the config issue where each webserver was hitting each carbon
18:05 < kevinclark> now it only hits its own
18:05 < kevinclark> I had to bump up queue length on agg and relay
18:05 < kevinclark> and I had to bump up message size across the board
18:06 < kevinclark> now it's reasonable. not great, but good enough I think
18:06 < kevinclark> 4-8 second render uncached
18:06 < kevinclark> sometimes faster or slower, but usually about there
widmore.entityTypes.<entity>.1MinuteRate (60) = sum widmore*.Runner.entityType.<entity>.1MinuteRate
widmore.entityTypes.<entity>.5MinuteRate (60) = sum widmore*.Runner.entityType.<entity>.5MinuteRate
widmore.entityTypes.<entity>.15MinuteRate (60) = sum widmore*.Runner.entityType.<entity>.15MinuteRate
looking-glass.mimetypes.<mimetype>.1MinuteRate (60) = sum looking-glass*.Worker.mimetypes.<<mimetype>>.1MinuteRate
looking-glass.mimetypes.<mimetype>.5MinuteRate (60) = sum looking-glass*.Worker.mimetypes.<<mimetype>>.5MinuteRate
looking-glass.mimetypes.<mimetype>.15MinuteRate (60) = sum looking-glass*.Worker.mimetypes.<<mimetype>>.15MinuteRate
@kevinclark
kevinclark / error
Created August 10, 2011 20:55
storage-schema.conf
Traceback (most recent call last):
File "/opt/graphite/bin/carbon-cache.py", line 30, in <module>
run_twistd_plugin(__file__)
File "/opt/graphite/lib/carbon/util.py", line 84, in run_twistd_plugin
runApp(config)
File "/usr/local/lib/python2.6/dist-packages/twisted/scripts/twistd.py", line 23, in runApp
_SomeApplicationRunner(config).run()
File "/usr/local/lib/python2.6/dist-packages/twisted/application/app.py", line 374, in run
self.application = self.createOrGetApplication()
File "/usr/local/lib/python2.6/dist-packages/twisted/application/app.py", line 434, in createOrGetApplication
[/Users/kevinc/code/scala-trans] ➔ ../scala/build/pack/bin/scalac -classpath . -make:transitive -Ydebug *.scala
SIG(EMT) => dump compiler caches
Recompiling B.scala
[running phase parser on B.scala]
[running phase namer on B.scala]
[running phase packageobjects on B.scala]
[running phase typer on B.scala]
java.io.FileNotFoundException: ./A.class (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
def throwing = { throw new RuntimeException("I fail") }
throwA[RetryFailure] {
retrying(3) { throwing _ }
}
Errors with:
RetryableSpec A retried method that throws::throws a RetryFailure(com.greplin.widmore.tests.RetryableSpec): com.greplin.widmore.util.RetryFailure: Unable to get result after 3 tries
[/Users/kevinc] ➔ sudo brew install zookeeper --python --gcc
Password:
==> Downloading http://www.alliedquotes.com/mirrors/apache/zookeeper/zookeeper-3.3.3/zookeeper-3.3.3.tar.gz
File already downloaded and cached to /Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/zookeeper/3.3.3 --disable-dependency-tracking --without-cppunit
==> make install
==> python src/python/setup.py build
running build
running build_ext
[local /Library/Formula (master)] ➔ sudo brew install zookeeper --python
==> Downloading http://www.alliedquotes.com/mirrors/apache/zookeeper/zookeeper-3.3.3/zookeeper-3.3.3.tar.gz
File already downloaded and cached to /Library/Caches/Homebrew
==> ./configure --prefix=/usr/local/Cellar/zookeeper/3.3.3 --disable-dependency-tracking --without-cppunit
==> make install
==> python src/python/setup.py build
running build
running build_ext
building 'zookeeper' extension
creating build
[error] /private/var/greplin/src/widmore/src/main/scala/com/greplin/widmore/util/RichResource.scala:11: Parameter type in structural refinement may not refer to an abstract type defined outside that refinement
[error] def returnResource(loaner: T)
@kevinclark
kevinclark / gist:819229
Created February 9, 2011 20:39 — forked from matthewmccullough/gist:47267
Tweaked to do relative dirs in git repos
alias git=hub
alias g='git'
alias go='git checkout'
alias irc='ssh glu.ttono.us'
alias clj='java jline.ConsoleRunner clojure.main'
alias la='ls -a'
alias ll='ls -alF'
export EDITOR='mvim -f'
export PATH="/Users/$(whoami)/bin:/usr/local/bin:/opt/local/bin:/opt/local/sbin:/opt/local/lib/postgresql83/bin:$PATH"
def foo():
try:
result = itRaises()
except MyException:
log('oh crap')
return
handleResult(result)