Daijiro MORI
null+****@clear*****
Wed Feb 12 20:37:51 JST 2014
Daijiro MORI 2014-02-12 20:37:51 +0900 (Wed, 12 Feb 2014) New Revision: 70405cce2e351f9d61b5c537edee2045eaba01f7 https://github.com/droonga/droonga.org/commit/70405cce2e351f9d61b5c537edee2045eaba01f7 Message: Add some explanation about the idea of zones. Modified files: reference/catalog/index.md Modified: reference/catalog/index.md (+25 -5) =================================================================== --- reference/catalog/index.md 2014-02-12 18:07:42 +0900 (016a084) +++ reference/catalog/index.md 2014-02-12 20:37:51 +0900 (fbfc334) @@ -218,12 +218,31 @@ Example: ### `zones` -It is an array of farms. +`Zones` is an array to express proximities between farms. +Farms are grouped by a zone, and zones can be grouped by another zone recursively. +Zones make a single tree structure, expressed by nested arrays. +Farms in a same branch are regarded as relatively closer than other farms. +e.g. + +``` +[["A", ["B", "C"]], "D"] +``` + +expresses the following tree. + +``` + /\ + /\ D + A /\ + B C +``` + +This tree means the farm "B" and "C" are closer than "A" or "D" to each other. You should make elements in a `zones` close to each other, like in the same host, in the same switch, in the same network. -This is a required parameter. +This is an optional parameter. Note: fluent-plugin-droonga 0.8.0 doesn't use this value yet. @@ -232,9 +251,10 @@ Example: ~~~json { "zones": [ - "localhost:23003/farm0", - "localhost:23003/farm1", - "localhost:23004/farm0" + ["localhost:23003/farm0", + "localhost:23003/farm1"], + ["localhost:23004/farm0", + "localhost:23004/farm1"] ] } ~~~ -------------- next part -------------- HTML����������������������������... ダウンロード