Skip to content

Commit 2033be2

Browse files
committed
Merge branch 'release/v0.2.0'
2 parents 3bbd033 + 3ea155c commit 2033be2

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

README.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ h1. elasticsearch-segmentspy
33
SegmentSpy is a tool to watch the segments in your indices. Segment graphs update in real-time, allowing you to watch as ElasticSearch (Lucene) merges your segments.
44

55
|_. elasticsearch-segmentspy |_. ElasticSearch |
6-
| master | 0.17.0 -> master |
6+
| master | 0.17.0 -> 0.20.5 |
77

88
*Note*: SegmentSpy has only been tested on 0.20.2 - 0.20.5, but should work all the way back to 0.17.0 when the Segments API was implemented
99

_site/js/app.js

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,8 @@ $(document).ready(function () {
123123
if (typeof segments[divId] === 'undefined')
124124
segments[divId] = [];
125125

126-
segments[divId].push(['Segment ID', 'Searchable', 'Committed', 'Uncommitted', 'Deleted Docs']);
127-
126+
segments[divId].push(['Segment ID', 'Fully Synced', 'Committed', 'Uncommitted', 'Deleted Docs']);
127+
// flushed
128128
$.each(shardValuePR.segments, function (k,v) {
129129

130130
//bit of math to normalize our values, since Google Charts doesn't do stacked log scales.
@@ -139,12 +139,25 @@ $(document).ready(function () {
139139
//artificially boost num_docs by one, so you can see very small segments
140140
v.num_docs += 1;
141141

142+
//fully committed/flushed and in memory
142143
if (v.search === true && v.committed === true)
143144
segments[divId].push([k, v.num_docs, 0, 0, deleted]);
144-
else if (v.search === false && v.committed === true)
145+
146+
//Lucene Committed to disk
147+
else if (v.search === false && v.committed === true) {
145148
segments[divId].push([k, 0, v.num_docs, 0, deleted]);
146-
else
147-
segments[divId].push([k, 0, 0, v.num_docs, deleted]);
149+
//console.log('v.search === true && v.committed === false');
150+
}
151+
152+
//Resident in NRT IndexReader (in memory), not Lucene Committed yet
153+
else if (v.search === true && v.committed === false){
154+
segments[divId].push([k, 0, 0, v.num_docs, deleted]);
155+
//console.log(v);
156+
}
157+
158+
//After reading the ES source, this option does not appear possible
159+
//else if (v.search === false && v.committed === false)
160+
// segments[divId].push([k, 0, 0, 0, v.num_docs, deleted]);
148161

149162
});
150163
});

_site/js/graph.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ function getGrapher() {
1515
1: {logScale: true, maxValue:1000000}},
1616
series:[{color: '#0008FF'}, {color: '#0099FF'},{color: 'orange'}, {color: 'red'}],
1717
bar: {groupWidth: "90%"},
18+
chartArea: {left:100,top:10,width:"800px"},
19+
1820
},
1921

2022
drawChart : function () {

screenshot.png

-1.25 KB
Loading

0 commit comments

Comments
 (0)