YUKI Hiroshi
null+****@clear*****
Fri May 8 14:23:08 JST 2015
YUKI Hiroshi 2015-05-08 14:23:08 +0900 (Fri, 08 May 2015) New Revision: c79a173f1115ec181b08e0b310ec37c76eadee0c https://github.com/droonga/droonga.org/commit/c79a173f1115ec181b08e0b310ec37c76eadee0c Message: Add examples of droonga-engine-catalog-generate's usage Modified files: reference/1.1.1/command-line-tools/droonga-engine-catalog-generate/index.md Modified: reference/1.1.1/command-line-tools/droonga-engine-catalog-generate/index.md (+94 -1) =================================================================== --- reference/1.1.1/command-line-tools/droonga-engine-catalog-generate/index.md 2015-05-08 12:59:33 +0900 (ad88c14) +++ reference/1.1.1/command-line-tools/droonga-engine-catalog-generate/index.md 2015-05-08 14:23:08 +0900 (8d95518) @@ -17,20 +17,113 @@ Instead, use [the `droonga-engine-configure` command](../droonga-engine-configur ### Orphan cluster with single volume -(TBD) +Most popular usage is generating `catalog.json` for an orphan Engine node as a new replica node managed by [the `droonga-engine-join` command](../droonga-engine-join/). For example, if you are logged in to an unprepared node `192.168.100.50`, the command line is: + +~~~ +(on 192.168.100.50) +# droonga-engine-catalog-generate --hosts 192.168.100.50 +~~~ + +Full version with omitted options is: + +~~~ +(on 192.168.100.50) +# droonga-engine-catalog-generate \ + --output /home/droonga-engine/droonga/catalog.json \ + --dataset Default \ + --n-workers 4 \ + --hosts 192.168.100.50 \ + --port 10031 \ + --tag droonga \ + --n-slices 1 \ + --plugins groonga,search,crud,dump,system,catalog +~~~ ### Cluster with two replica nodes (TBD) +~~~ +(on 192.168.100.50) +# droonga-engine-catalog-generate \ + --hosts 192.168.100.50,192.168.100.51 +~~~ + +Full version with omitted options is: + +~~~ +(on 192.168.100.50) +# droonga-engine-catalog-generate \ + --output /home/droonga-engine/droonga/catalog.json \ + --dataset Default \ + --n-workers 4 \ + --hosts 192.168.100.50,192.168.100.51 \ + --port 10031 \ + --tag droonga \ + --n-slices 1 \ + --plugins groonga,search,crud,dump,system,catalog +~~~ + ### Cluster with two replica nodes and prepare two slices for each replica (TBD) +~~~ +(on 192.168.100.50) +# droonga-engine-catalog-generate \ + --hosts 192.168.100.50,192.168.100.51 \ + --n-slices 2 +~~~ + +Full version with omitted options is: + +~~~ +(on 192.168.100.50) +# droonga-engine-catalog-generate \ + --output /home/droonga-engine/droonga/catalog.json \ + --dataset Default \ + --n-workers 4 \ + --hosts 192.168.100.50,192.168.100.51 \ + --port 10031 \ + --tag droonga \ + --n-slices 2 \ + --plugins groonga,search,crud,dump,system,catalog +~~~ + ### Cluster including two datasets (TBD) +~~~ +(on 192.168.100.50) +# droonga-engine-catalog-generate \ + --hosts 192.168.100.50,192.168.100.51 \ + --dataset Testing \ + --hosts 192.168.100.60,192.168.100.61 +~~~ + +Full version with omitted options is: + +~~~ +(on 192.168.100.50) +# droonga-engine-catalog-generate \ + --output /home/droonga-engine/droonga/catalog.json \ + --dataset Default \ + --n-workers 4 \ + --hosts 192.168.100.50,192.168.100.51 \ + --port 10031 \ + --tag droonga \ + --n-slices 1 \ + --plugins groonga,search,crud,dump,system,catalog \ + --dataset Testing \ + --n-workers 4 \ + --hosts 192.168.100.60,192.168.100.61 \ + --port 10031 \ + --tag droonga \ + --n-slices 1 \ + --plugins groonga,search,crud,dump,system,catalog +~~~ + ## Parameters {#parameters} -------------- next part -------------- HTML����������������������������...Download