From 63338e6e3536b81a61d8b6e847e58a620176d646 Mon Sep 17 00:00:00 2001 From: fjy Date: Wed, 11 Feb 2015 14:34:02 -0800 Subject: [PATCH] Update realtime node configs for examples; fixes #1111 --- docs/content/Tutorial:-Loading-Streaming-Data.md | 2 +- docs/content/Tutorial:-The-Druid-Cluster.md | 4 ++-- examples/config/realtime/runtime.properties | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/Tutorial:-Loading-Streaming-Data.md b/docs/content/Tutorial:-Loading-Streaming-Data.md index 4cb77b28771..e1d3124aaf4 100644 --- a/docs/content/Tutorial:-Loading-Streaming-Data.md +++ b/docs/content/Tutorial:-Loading-Streaming-Data.md @@ -93,7 +93,7 @@ You should be comfortable starting Druid nodes at this point. If not, it may be 1. Real-time nodes can be started with: ```bash - java -Xmx256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Ddruid.realtime.specFile=examples/indexing/wikipedia.spec -classpath lib/*:config/realtime io.druid.cli.Main server realtime + java -Xmx512m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Ddruid.realtime.specFile=examples/indexing/wikipedia.spec -classpath lib/*:config/realtime io.druid.cli.Main server realtime ``` 2. A realtime.spec should already exist for the data source in the Druid tarball. You should be able to find it at: diff --git a/docs/content/Tutorial:-The-Druid-Cluster.md b/docs/content/Tutorial:-The-Druid-Cluster.md index 4e61cfc282c..0dddf161226 100644 --- a/docs/content/Tutorial:-The-Druid-Cluster.md +++ b/docs/content/Tutorial:-The-Druid-Cluster.md @@ -280,7 +280,7 @@ Now we should be handing off segments every 6 minutes or so. To start the realtime node that was used in our first tutorial, you simply have to issue: ``` -java -Xmx256m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Ddruid.realtime.specFile=examples/wikipedia/wikipedia_realtime.spec -classpath lib/*:config/realtime io.druid.cli.Main server realtime +java -Xmx512m -Duser.timezone=UTC -Dfile.encoding=UTF-8 -Ddruid.realtime.specFile=examples/wikipedia/wikipedia_realtime.spec -classpath lib/*:config/realtime io.druid.cli.Main server realtime ``` The configurations are located in `config/realtime/runtime.properties` and should contain the following: @@ -293,7 +293,7 @@ druid.service=realtime # We can only 1 scan segment in parallel with these configs. # Our intermediate buffer is also very small so longer topNs will be slow. druid.processing.buffer.sizeBytes=100000000 -druid.processing.numThreads=1 +druid.processing.numThreads=2 # Enable Real monitoring # druid.monitoring.monitors=["com.metamx.metrics.SysMonitor","com.metamx.metrics.JvmMonitor","io.druid.segment.realtime.RealtimeMetricsMonitor"] diff --git a/examples/config/realtime/runtime.properties b/examples/config/realtime/runtime.properties index d5331456872..f76c27d0408 100644 --- a/examples/config/realtime/runtime.properties +++ b/examples/config/realtime/runtime.properties @@ -22,7 +22,7 @@ druid.service=realtime # We can only 1 scan segment in parallel with these configs. # Our intermediate buffer is also very small so longer topNs will be slow. druid.processing.buffer.sizeBytes=100000000 -druid.processing.numThreads=1 +druid.processing.numThreads=2 # Enable Real monitoring # druid.monitoring.monitors=["com.metamx.metrics.SysMonitor","com.metamx.metrics.JvmMonitor","io.druid.segment.realtime.RealtimeMetricsMonitor"]