You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by li...@apache.org on 2015/09/03 03:31:29 UTC

[14/50] [abbrv] incubator-kylin git commit: update doc: add document on kylin server modes

update doc: add document on kylin server modes


Project: http://git-wip-us.apache.org/repos/asf/incubator-kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-kylin/commit/83de8e0b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-kylin/tree/83de8e0b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-kylin/diff/83de8e0b

Branch: refs/heads/0.7
Commit: 83de8e0bc072c038a608dc905a4f822f5783f91f
Parents: 6ef5b7b
Author: honma <ho...@ebay.com>
Authored: Fri Aug 21 13:55:57 2015 +0800
Committer: honma <ho...@ebay.com>
Committed: Fri Aug 21 13:56:17 2015 +0800

----------------------------------------------------------------------
 conf/kylin.properties                         |   2 ++
 website/_docs/install/advance_settings.md     |  10 ++++++++++
 website/images/install/kylin_server_modes.png | Bin 0 -> 97534 bytes
 3 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/83de8e0b/conf/kylin.properties
----------------------------------------------------------------------
diff --git a/conf/kylin.properties b/conf/kylin.properties
index cee23b2..de8196b 100644
--- a/conf/kylin.properties
+++ b/conf/kylin.properties
@@ -31,6 +31,8 @@ kylin.hdfs.working.dir=/kylin
 
 kylin.job.mapreduce.default.reduce.input.mb=500
 
+kylin.server.mode=all
+
 # If true, job engine will not assume that hadoop CLI reside on the same server as it self
 # you will have to specify kylin.job.remote.cli.hostname, kylin.job.remote.cli.username and kylin.job.remote.cli.password
 kylin.job.run.as.remote.cmd=false

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/83de8e0b/website/_docs/install/advance_settings.md
----------------------------------------------------------------------
diff --git a/website/_docs/install/advance_settings.md b/website/_docs/install/advance_settings.md
index 3630954..f618d37 100644
--- a/website/_docs/install/advance_settings.md
+++ b/website/_docs/install/advance_settings.md
@@ -33,3 +33,13 @@ create 'lzoTable', {NAME => 'colFam',COMPRESSION => 'LZO'}
 
 You'll need to stop Kylin first by running `./kylin.sh stop`, and then modify $KYLIN_HOME/conf/kylin_job_conf.xml by uncommenting some configuration entries related to LZO compression. 
 After this, you need to run `./kylin.sh start` to start Kylin again. Now Kylin will use LZO to compress MR outputs and hbase tables.
+
+## Kylin Server modes
+
+Kylin instances are stateless,  the runtime state is saved in its "Metadata Store" in hbase (kylin.metadata.url config in conf/kylin.properties). For load balance considerations it is possible to start multiple Kylin instances sharing the same metadata store (thus sharing the same state on table schemas, job status, cube status, etc.)
+
+Each of the kylin instances has a kylin.server.mode entry in conf/kylin.properties specifying the runtime mode, it has three options: 1. "job" for running job engine only 2. "query" for running query engine only and 3 "all" for running both. Notice that only one server can run the job engine("all" mode or "job" mode), the others must all be "query" mode.
+
+A typical scenario is depicted in the following chart:
+
+![]( /images/install/kylin_server_modes.png)

http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/83de8e0b/website/images/install/kylin_server_modes.png
----------------------------------------------------------------------
diff --git a/website/images/install/kylin_server_modes.png b/website/images/install/kylin_server_modes.png
new file mode 100644
index 0000000..bc4a398
Binary files /dev/null and b/website/images/install/kylin_server_modes.png differ