I'm slowly losing processors as elasticsearch threads hang on
org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:278)
It happens with "search_type=dfs_query_then_fetch" and without.
*
*
I'm running v0.90.3
Here is a sample query:
{
"query": {
"bool": {
"should": [
{
"constant_score": {
"query": {
"text": {
"brandName": {
"query": "Paulinie"
}
}
},
"boost": 3
}
},
{
"text": {
"name": {
"query": "BURNOUT RUFFLES"
}
}
},
{
"has_child": {
"score_type": "max",
"query": {
"bool": {
"should": [
{
"dis_max": {
"queries": [
{
"text": {
"color": {
"query": "OFFWHITE",
"boost": 1.5
}
}
},
{
"text": {
"vendors.color": {
"query": "OFFWHITE",
"boost": 1.5
}
}
}
]
}
},
{
"text": {
"size": {
"query": "3T",
"boost": 1.5
}
}
},
{
"text": {
"sku": {
"query": "WD2258PA",
"boost": 5
}
}
},
{
"bool": {
"boost": 10,
"must": [
{
"term": {
"vendors.vendorId": {
"value": 5358
}
}
},
{
"text": {
"vendors.sku": {
"query": "WD2258PA",
"boost": 2
}
}
}
]
}
}
]
}
},
"type": "product"
}
},
{
"fuzzy_like_this": {
"prefix_length": 2,
"like_text": "OFFWHITE",
"max_query_terms": 12,
"fields": [
"name"
]
}
}
]
}
},
"from": 0,
"size": 10
}
~ > curl localhost:9200/_nodes/hot_threads
102.0% (510ms out of 500ms) cpu usage by thread
'elasticsearch[emsweb-02][search][T#16]'
9/10 snapshots sharing following 16 elements
org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:278)
org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:339)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:624)
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:162)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:488)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:444)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)
org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:134)
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:295)
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:175)
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.executeQuery(TransportSearchDfsQueryThenFetchAction.java:144)
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$2.run(TransportSearchDfsQueryThenFetchAction.java:131)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
unique snapshot
org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:282)
org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:339)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:624)
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:162)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:488)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:444)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)
org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:134)
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:295)
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:175)
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.executeQuery(TransportSearchDfsQueryThenFetchAction.java:144)
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$2.run(TransportSearchDfsQueryThenFetchAction.java:131)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
100.0% (500ms out of 500ms) cpu usage by thread
'elasticsearch[emsweb-02][search][T#62]'
10/10 snapshots sharing following 16 elements
org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:278)
org.apache.lucene.search.BooleanScorer.score(BooleanScorer.java:339)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:624)
org.elasticsearch.search.internal.ContextIndexSearcher.search(ContextIndexSearcher.java:162)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:488)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:444)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:281)
org.apache.lucene.search.IndexSearcher.search(IndexSearcher.java:269)
org.elasticsearch.search.query.QueryPhase.execute(QueryPhase.java:134)
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:295)
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:175)
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction.executeQuery(TransportSearchDfsQueryThenFetchAction.java:144)
org.elasticsearch.action.search.type.TransportSearchDfsQueryThenFetchAction$AsyncAction$2.run(TransportSearchDfsQueryThenFetchAction.java:131)
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
java.lang.Thread.run(Thread.java:662)
Any ideas?
Thanks,
Josh
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.