Elasticsearch query speed degrade -


i have elasticsearch(1.5.2) cluster (2 node data) 218m docs (22.3gi). elastic setting default (5 shard , 1 replica), except memory: -xmx5g -xms5g

my problem query request slow - 2sec. when index small ~10k doc requery time 100-200 ms. i'm running load of 50 concurrent users , time increase 10-20 sec.

cluster machines: 2 dedicated vm nodes

architecture:          x86_64 cpu(s):                16 core(s) per socket:    8 vendor id:             genuineintel model name:            intel(r) xeon(r) cpu e5-2670 0 @ 2.60ghz memory:                16gb 

mapping:

{ "all": {     "properties": {         "schemarev": {             "type": "long"         },         "schema": {             "index": "not_analyzed",             "type": "string"         },         "id": {             "index": "not_analyzed",             "type": "string"         },         "rev": {             "type": "long"         },         "name": {             "type": "string",             "fields": {                 "raw": {                     "index": "not_analyzed",                     "type": "string"                 }             }         },         "properties": {             "properties": {                 "фио": {                     "type": "string",                     "fields": {                         "raw": {                             "index": "not_analyzed",                             "type": "string"                         }                     }                 },                 "телефон": {                     "type": "string",                     "fields": {                         "raw": {                             "index": "not_analyzed",                             "type": "string"                         }                     }                 },                 "возраст": {                     "type": "integer"                 },                 "адрес": {                     "type": "string",                     "fields": {                         "raw": {                             "index": "not_analyzed",                             "type": "string"                         }                     }                 },                 "email": {                     "type": "string",                     "fields": {                         "raw": {                             "index": "not_analyzed",                             "type": "string"                         }                     }                 }             },             "type": "nested"         },         "_creator_id": {             "index": "not_analyzed",             "type": "string"         },         "type": {             "index": "not_analyzed",             "type": "string"         },         "schemaid": {             "index": "not_analyzed",             "type": "string"         }     } } 

}

document sample:

{     "schemaid": "55eaf455-b0db-4359-95cd-b16b57ae7b3e",     "name": "o1",     "properties": {         "фио": "asd",         "телефон": "8967234",         "адрес": "asfsdf",         "возраст": 37     } } 

query this, no aggregation:

{     "match_all" : { } } 

this size=10 , from=0

also in log there is:

[warn ][monitor.jvm              ] [master order] [gc][young][50][9] duration [1s], collections [1]/[1.6s], total [1s]/[1.9s], memory [4.3gb]->[4.2gb]/[9.8gb], all_pools {[young] [748.1mb]->[32.5mb]/[865.3mb]}{[survivor] [108.1mb]->[108.1mb]/[108.1mb]}{[old] [3.4gb]->[4.1gb]/[8.9gb]} 

what can in situation?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -