However, if any of your Java heap is sitting in swap, it can really
affect performance, and it is worth doing some work to make sure that
you never touch the swap.
Linux can put some data into swap even when there is plenty of free
memory.
You may already be doing this, but just in case, here is how I would set
things up:
1) If you have eg 8GB of memory available on your box to run ES, I would
use 50-60% of that for ES itself, and leave the rest for kernel
filesystem caches etc
2) Set your ES_MIN_MEM and ES_MAX_MEM to the same value (eg 4GB)
3) Set "ulimit -l unlimited" before starting ES - this gives the ES
process permission to lock memory.
I run ES as user 'elasticsearch' and I have this line in
'/etc/security/limits.conf':
elasticsearch - memlock unlimited
4) Add "boostrap.mlockall: 1" to your config file, to tell ES to lock
the memory
If ES is the only service you have running on the box, you may just want
to set swapoff -a
affect performance, and it is worth doing some work to make sure that
you never touch the swap.
Linux can put some data into swap even when there is plenty of free
memory.
You may already be doing this, but just in case, here is how I would set
things up:
1) If you have eg 8GB of memory available on your box to run ES, I would
use 50-60% of that for ES itself, and leave the rest for kernel
filesystem caches etc
2) Set your ES_MIN_MEM and ES_MAX_MEM to the same value (eg 4GB)
3) Set "ulimit -l unlimited" before starting ES - this gives the ES
process permission to lock memory.
I run ES as user 'elasticsearch' and I have this line in
'/etc/security/limits.conf':
elasticsearch - memlock unlimited
4) Add "boostrap.mlockall: 1" to your config file, to tell ES to lock
the memory
If ES is the only service you have running on the box, you may just want
to set swapoff -a
'IT-Consultant' 카테고리의 다른 글
Elastic Search를 소개합니다. (0) | 2011.07.05 |
---|---|
특정 파티션을 지정해서 검색 (0) | 2011.06.30 |
elasticsearch.yml (0) | 2011.06.30 |
매개변수의 변화 (call by reference) (0) | 2011.06.25 |
public, private, protected의 속 시원한 설명 (0) | 2011.06.25 |