forked from code.google.com/p/vitess/go/pools