some minor fixes in docs and change jetty defaults

This commit is contained in:
fjy 2014-11-04 10:08:50 -08:00
parent 3b29e77866
commit 42cf20c9f1
4 changed files with 16 additions and 9 deletions

View File

@ -75,9 +75,13 @@ Setting up Zookeeper
Before we get started, we need to start Apache Zookeeper. Before we get started, we need to start Apache Zookeeper.
```bash ```bash
curl http://apache.osuosl.org/zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz -o zookeeper-3.4.5.tar.gz Download zookeeper from [http://www.apache.org/dyn/closer.cgi/zookeeper/](http://www.apache.org/dyn/closer.cgi/zookeeper/)
tar xzf zookeeper-3.4.5.tar.gz Install zookeeper.
cd zookeeper-3.4.5
e.g.
curl http://www.gtlib.gatech.edu/pub/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz -o zookeeper-3.4.6.tar.gz
tar xzf zookeeper-3.4.6.tar.gz
cd zookeeper-3.4.6
cp conf/zoo_sample.cfg conf/zoo.cfg cp conf/zoo_sample.cfg conf/zoo.cfg
./bin/zkServer.sh start ./bin/zkServer.sh start
cd .. cd ..

View File

@ -48,9 +48,13 @@ CREATE database druid;
#### Setting up Zookeeper #### Setting up Zookeeper
```bash ```bash
curl http://apache.osuosl.org/zookeeper/zookeeper-3.4.5/zookeeper-3.4.5.tar.gz -o zookeeper-3.4.5.tar.gz Download zookeeper from [http://www.apache.org/dyn/closer.cgi/zookeeper/](http://www.apache.org/dyn/closer.cgi/zookeeper/)
tar xzf zookeeper-3.4.5.tar.gz Install zookeeper.
cd zookeeper-3.4.5
e.g.
curl http://www.gtlib.gatech.edu/pub/apache/zookeeper/zookeeper-3.4.6/zookeeper-3.4.6.tar.gz -o zookeeper-3.4.6.tar.gz
tar xzf zookeeper-3.4.6.tar.gz
cd zookeeper-3.4.6
cp conf/zoo_sample.cfg conf/zoo.cfg cp conf/zoo_sample.cfg conf/zoo.cfg
./bin/zkServer.sh start ./bin/zkServer.sh start
cd .. cd ..

View File

@ -32,7 +32,7 @@ public class DruidHttpClientConfig
{ {
@JsonProperty @JsonProperty
@Min(0) @Min(0)
private int numConnections = 5; private int numConnections = 20;
@JsonProperty @JsonProperty
private Period readTimeout = new Period("PT15M"); private Period readTimeout = new Period("PT15M");

View File

@ -31,8 +31,7 @@ public class ServerConfig
{ {
@JsonProperty @JsonProperty
@Min(1) @Min(1)
// Jetty defaults are whack private int numThreads = 30;
private int numThreads = Math.max(10, (Runtime.getRuntime().availableProcessors() * 17) / 16 + 2);
@JsonProperty @JsonProperty
@NotNull @NotNull