Navigation Menu

Skip to content

Commit

Permalink
Update the format of the catalog.json to 2
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 18, 2014
1 parent 1c4af5a commit f0d505c
Showing 1 changed file with 42 additions and 30 deletions.
72 changes: 42 additions & 30 deletions droonga/templates/default/droonga-engine-catalog.json.erb
Expand Up @@ -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"]
}
}

0 comments on commit f0d505c

Please sign in to comment.