forked from fullstorydev/solr-bench
-
Notifications
You must be signed in to change notification settings - Fork 2
/
collection-api-reference.json
143 lines (135 loc) · 4.29 KB
/
collection-api-reference.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
{
"task-types": {
"indexing": {
"index-benchmark": {
"name": "CLOUD_INDEXING",
"description": "Wikipedia dataset on SolrCloud",
"replication-type": "cloud",
"dataset-file": "small-data/small-enwiki.tsv.gz",
"file-format": "tsv",
"id-field": "id",
"setups": [
{
"setup-name": "cloud_2x2",
"collection": "small-wikipedia-${INDEX}",
"replication-factor": 3,
"shards": 1,
"min-threads": 2,
"max-threads": 2,
"thread-step": 1
}
]
}
},
"collection-creation": {
"command": "${SOLRURL}admin/collections?action=CREATE&name=collection${INDEX}&numShards=${SHARDS}",
"defaults": {
"INDEX": 0,
"SHARDS": 1
}
},
"shard-splitting": {
"command": "${SOLRURL}admin/collections?action=SPLITSHARD&collection=small-wikipedia-${INDEX}&shard=${SHARD}",
"defaults": {}
},
"add-replica": {
"command": "${SOLRURL}admin/collections?action=ADDREPLICA&collection=small-wikipedia-${INDEX}&shard=${SHARD}",
"defaults": {}
},
"num-docs": {
"command": "${SOLRURL}small-wikipedia/select?q=*:*&rows=0&distrib=false",
"defaults": {}
},
"restart-solr-node": {
"restart-solr-node": "${NODE_INDEX}",
"await-recoveries": true
}
},
"global-variables": {
"collection-counter": 0,
"split-counter": 0,
"addreplica-counter": 0,
"addreplica1-counter": 0,
"addreplica2-counter": 0
},
"global-constants": {
"HOST": "localhost",
"PORT": "8983"
},
"execution-plan": {
"task1": {
"type": "indexing",
"instances": 40,
"concurrency": 4,
"mode": "sync",
"parameters": {
"INDEX": "${collection-counter}",
"SHARDS": 1
},
"pre-task-evals": [
"inc(collection-counter,1)"
]
},
"task2": {
"description": "Split all the collections' shard1, 10 at a time",
"type": "shard-splitting",
"instances": 40,
"concurrency": 10,
"parameters": {
"INDEX": "${split-counter}",
"SHARD": "shard1"
},
"pre-task-evals": [
"inc(split-counter,1)"
],
"wait-for": "task1",
"mode": "async"
},
"task3": {
"description": "ADDREPLICA for all the collections' shard1, 10 at a time",
"type": "add-replica",
"instances": 40,
"concurrency": 10,
"parameters": {
"INDEX": "${addreplica-counter}",
"SHARD": "shard1"
},
"pre-task-evals": [
"inc(addreplica-counter,1)"
],
"wait-for": "task1",
"mode": "async"
},
"task4": {
"description": "After SPLITs complete, lots of ADDREPLICA for all the collections' shard1_1, 20 at a time",
"type": "add-replica",
"instances": 40,
"concurrency": 20,
"parameters": {
"INDEX": "${addreplica2-counter}",
"SHARD": "shard1_1"
},
"pre-task-evals": [
"inc(addreplica2-counter,1)"
],
"wait-for": "task2",
"mode": "async"
}
},
"cluster": {
"num-solr-nodes": 10,
"startup-params": "-m 4g -V",
"provisioning-method": "local"
},
"repository": {
"commit-id": "e77f75042ef820d27c687a8eac82bb34eeef28f6",
"description": "Solr Reference Dev Branch",
"name": "git-repository",
"package-subdir": "/solr/package/",
"build-command": "ant ivy-bootstrap && cd solr && ant compile package",
"submodules": false,
"url": "https://github.com/apache/lucene-solr",
"user" : "ishan"
},
"metrics": ["jvm/solr.jvm/memory.heap.used", "jvm/solr.jvm/os.systemCpuLoad", "solr.jetty/solr.jetty/org.eclipse.jetty.server.handler.DefaultHandler.get-requests/count"]
}