2.X/7. Administration Monitoring Deployment 28

7. Administration, Monitoring, and Deployment

The majority of this book is aimed at building applications by using Elasticsearch as the backend. This section is a little different. Here, you will learn how to manage Elasticsearch itself. Elasticsearch is a complex piece of software, with many moving parts. Many APIs are designed to help you manage your Elasticsearch deployment.이 책의 대부분은 backend에서 Elasticsearch를 사용하여 응용프로그램을 구축하는 것을 목표로 하고 있..

7-1. Monitoring

Elasticsearch is often deployed as a cluster of nodes. A variety of APIs let you manage and monitor the cluster itself, rather than interact with the data stored within the cluster.Elasticsearch는 흔히 node들의 cluster로 배포된다. cluster 내에 저장된 데이터와 상호작용하는 것보다는, cluster 자체를 관리하고 모니터하는 다양한 API가 있다.As with most functionality in Elasticsearch, there is an overarching design goal that tasks should be perform..

7-1-1. Marvel for Monitoring

Marvel enables you to easily monitor Elasticsearch through Kibana. You can view your cluster’s health and performance in real time as well as analyze past cluster, index, and node metrics.Marvel은 Kibana를 통해 Elasticsearch를 쉽게 모니터할 수 있다. 이전의 cluster, index, 그리고 node metrics를 분석하는 것과 마찬가지로, 실시간으로 cluster의 상태, 성능을 살펴볼 수 있다.While you can access a large number of statistics through the APIs described ..

7-1-2. Cluster Health

An Elasticsearch cluster may consist of a single node with a single index. Or it may have a hundred data nodes, three dedicated masters, a few dozen client nodes—all operating on a thousand indices (and tens of thousands of shards).Elasticsearch의 cluster는 단일 index를 가진 단일 node로 구성되어 있을 수 있다. 또는 모두 천 개의 index(그리고, 수만 개의 shard를 가지고 있는)에서 운영되는, 수백 개의 데이터 node, 3개의 전용 master node, 수십 개의 클라이언트 node 등을..

7-1-3. Monitoring Individual Nodes

Cluster-health is at one end of the spectrum—a very high-level overview of everything in your cluster. The node-stats API is at the other end. It provides a bewildering array of statistics about each node in your cluster.cluster-health 는 cluster의 모든 것에 대한 매우 높은 수준의 개요 부분이다. node-stats API는 또 다른 부분이다. 이것은 cluster의 각 node에 대한 복잡한 통계의 배열을 제공한다.Node-stats provides so many stats that, until you are a..

7-1-4. Cluster Stats

The cluster-stats API provides similar output to the node-stats. There is one crucial difference: Node Stats shows you statistics per node, while cluster-stats shows you the sum total of all nodes in a single metric.cluster-stats API는 node-stats 와 유사한 출력을 제공한다. 결정적인 차이점이 하나 있는데, node-stats 는 node 별 통계를 보여주는 반면에, cluster-stats 는 모든 node의 총 합을 하나의 통계로 보여준다.This provides some useful stats to glance..

7-1-5. Index Stats

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 m..

7-1-6. Pending Tasks

There are certain tasks that only the master can perform, such as creating a new index or moving shards around the cluster. Since a cluster can have only one master, only one node can ever process cluster-level metadata changes. For 99.9999% of the time, this is never a problem. The queue of metadata changes remains essentially zero.새로운 index를 생성하거나, cluster에서 shard의 이동처럼, master만이 할 수 있는 특정 작업이..

7-1-7. cat API

If you work from the command line often, the cat APIs will be helpful to you. Named after the linux cat command, these APIs are designed to work like *nix command-line tools.command line에서 작업하는 경우, cat API는 매우 유용하다. linux의 cat 명령어에서 이름을 딴, 이 API는 *nix의 command line tool처럼 동작하도록 설계되었다.They provide statistics that are identical to all the previously discussed APIs (Health, node-stats, and so forth..

7-2. Production Deployment

If you have made it this far in the book, hopefully you’ve learned a thing or two about Elasticsearch and are ready to deploy your cluster to production. This chapter is not meant to be an exhaustive guide to running your cluster in production, but it covers the key things to consider before putting your cluster live.여기까지 왔다면, Elasticsearch에 대해 한두 가지를 배웠을 것이고, 제품에 cluster를 배포할 준비가 된 것이다. 이 장은 제품..