2.X/7. Administration Monitoring Deployment

7-1-5. Index Stats

drscg 2017. 9. 23. 12:42

So far, we have been looking at node-centric statistics: How much memory does this node have? How much CPU is being used? How many searches is this node servicing?

지금까지, node 중심 의 통계를 살펴봤다. 이 node가 가지고 있는 메모리가 얼마인지? CPU가 얼마나 사용되고 있는지? 이 node가 서비스하고 있는 검색은 얼마나 많은지?

Sometimes it is useful to look at statistics from an index-centric perspective: How many search requests is this index receiving? How much time is spent fetching docs in that index?

때로는, index 중심 의 통계를 살펴보는 것도 유용하다. 이 index 가 받은 검색 request는 얼마나 많은가? 해당 index 에서 document를 가져오는데 소요되는 시간은?

To do this, select the index (or indices) that you are interested in and execute an Index stats API:

이를 위해, 관심 있는 그리고 index stats API를 실행할 index를 선택해야 한다.

GET my_index/_stats 

GET my_index,another_index/_stats 

GET _all/_stats 

my_index 에 대한 통계.

index의 이름을 콤마(,)로 구분하여 다수 index에 대해 통계를 request할 수 있다.

index 이름으로 특별한 _all 을 사용하여 indices에 대한 통계를 request할 수 있다.

The stats returned will be familar to the node-stats output: search fetch get index bulk segment counts and so forth

이 통계의 response는 node-stats 의 출력(searchfetchgetindexbulksegment counts 등)과 유사하다.

Index-centric stats can be useful for identifying or verifying hot indices inside your cluster, or trying to determine why some indices are faster/slower than others.

index 중심의 통계는 cluster 내부의 hot index를 확인하고 검증하는데 유용하다. 또는 어떤 index가 왜 다른 index에 비해 빠르거나 느린지를 알아낼 수 있다.

In practice, however, node-centric statistics tend to be more useful. Entire nodes tend to bottleneck, not individual indices. And because indices are usually spread across multiple nodes, index-centric statistics are usually not very helpful because they aggregate data from different physical machines operating in different environments.

그러나, 실제로는 node 중심의 통계가 더 유용한 경향이 있다. node 전체는 병목 현상이 있을 수 있지만, 개별 index는 아니다. 그리고, index는 일반적으로 다수의 node에 분산되어 있기 때문에, index 중심의 통계는 일반적으로 그리 도움이 되지 않는다. 왜냐하면, 다른 환경에서 동작하는 다른 물리적 machine에서 데이터를 aggregation하기 때문이다.

Index-centric stats are a useful tool to keep in your repertoire, but are not usually the first tool to reach for.

index 중심의 통계는 유용한 도구이긴 하지만, 자주 이용하는 도구는 아니다.

'2.X > 7. Administration Monitoring Deployment' 카테고리의 다른 글

7-1-3. Monitoring Individual Nodes  (0) 2017.09.23
7-1-4. Cluster Stats  (0) 2017.09.23
7-1-6. Pending Tasks  (0) 2017.09.23
7-1-7. cat API  (0) 2017.09.23
7-2. Production Deployment  (0) 2017.09.23