YUKI Hiroshi
null+****@clear*****
Fri Apr 18 16:06:58 JST 2014
YUKI Hiroshi 2014-04-18 16:06:58 +0900 (Fri, 18 Apr 2014) New Revision: f0d505c114928316e09a56b58398c06c5a294493 https://github.com/droonga/chef-cookbooks/commit/f0d505c114928316e09a56b58398c06c5a294493 Message: Update the format of the catalog.json to 2 Modified files: droonga/templates/default/droonga-engine-catalog.json.erb Modified: droonga/templates/default/droonga-engine-catalog.json.erb (+42 -30) =================================================================== --- droonga/templates/default/droonga-engine-catalog.json.erb 2014-04-18 16:02:26 +0900 (87ef93b) +++ droonga/templates/default/droonga-engine-catalog.json.erb 2014-04-18 16:06:58 +0900 (1371b47) @@ -11,38 +11,50 @@ }, "datasets": { "Droonga": { - "workers": 2, - "plugins": ["search", "groonga", "add"], - "number_of_replicas": 2, - "number_of_partitions": 2, - "partition_key": "_key", - "date_range": "infinity", - "ring": { - "<%= engine.host %>:23041": { - "weight": 50, - "partitions": { - "2014-01-24": [ - "<%= engine.host %>:<%= engine.port %>/<%= engine.tag %>.000", - "<%= engine.host %>:<%= engine.port %>/<%= engine.tag %>.001" - ] - } + "nWorkers": 2, + "plugins": ["groonga", "crud", "search"], + "replicas": [ + { + "dimension": "_key", + "slicer": "hash", + "slices": [ + { + "label": "slice000", + "weight": 50, + "volume": { + "address": "<%= engine.host %>:<%= engine.port %>/<%= engine.tag %>.000" + } + }, + { + "label": "slice001", + "weight": 50, + "volume": { + "address": "<%= engine.host %>:<%= engine.port %>/<%= engine.tag %>.001" + } + } + ] }, - "<%= engine.host %>:23042": { - "weight": 50, - "partitions": { - "2014-01-24": [ - "<%= engine.host %>:<%= engine.port %>/<%= engine.tag %>.002", - "<%= engine.host %>:<%= engine.port %>/<%= engine.tag %>.003" - ] - } + { + "dimension": "_key", + "slicer": "hash", + "slices": [ + { + "label": "slice010", + "weight": 50, + "volume": { + "address": "<%= engine.host %>:<%= engine.port %>/<%= engine.tag %>.010" + } + }, + { + "label": "slice011", + "weight": 50, + "volume": { + "address": "<%= engine.host %>:<%= engine.port %>/<%= engine.tag %>.011" + } + } + ] } - } + ] } - }, - "input_adapter": { - "plugins": ["crud", "groonga"] - }, - "output_adapter": { - "plugins": ["crud", "groonga"] } } -------------- next part -------------- HTML����������������������������...Download