Skip to content

A basic Vagrant-based lab environment for experimenting with Elasticsearch

Notifications You must be signed in to change notification settings

wonseop/elastic-practice-lab

 
 

Repository files navigation

Elasticsearch training lab

이 프로젝트는 Elasticsearch 8.1.3을 교육하고 실험하기 위한 간단한 랩 환경입니다.

CentOS에서 실행되는 노드를 구축하고 로컬이 아닌 IP에서 Elasticsearch를 실행하는 데 필요한 시스템 설정으로 노드를 프로비저닝합니다. 이는 소박한 프로비저닝 방법이지만 우리의 요구 사항에 적합합니다.

랩은 순전히 교육 도구로 설계되었습니다. 프로덕션 클러스터에 대한 모든 모범 사례를 사용하지 않으며 프로덕션 클러스터에 적합한 것으로 간주되어서는 안 됩니다.

Elastic Certified Engineer를 공부 중이거나 Elasticsearch Engineer I 및/또는 II 과정을 수강한 경우, 이 실습은 시험에 사용되는 환경에 익숙해지고 과정에서 실습을 실행하는 데 도움이 될 것입니다. 가장 큰 차이점은 여기서는 Vagrant를 사용하므로 ssh 대신 vagrant ssh를 실행해야 한다는 것입니다. SSH를 직접 사용하려면 공개 키를 VM에 복사하기 위한 몇 가지 작업을 수행해야 합니다.

Dependencies

These two archives are required:

Settings summary

Running

  • Install VirtualBox
  • Install Vagrant
  • Clone this repository
  • Place the Elasticsearch and Kibana archives into the repository root
  • cd into the repo
  • Run vagrant up

Vagrantfile을 수정하지 않고 Vagrant는 두 개의 VM( Elasticsearch 노드 1개(10.0.200.101)와 Kibana 인스턴스 1개(10.0.200.104) )을 가동합니다.

Elasticsearch를 시작하려면 vagrant ssh node1을 실행하고 elasticsearch-8.1.3/bin/elasticsearch를 실행하면 됩니다.

Kibana를 시작하려면 vagrant ssh node4를 실행하고 kibana-8.1.3/bin/kibana를 실행해야 합니다.

더 많은 노드가 필요한 경우 node2node3에 대한 프로비저너의 주석 처리를 해제한 다음 vagrant up을 다시 실행할 수 있습니다. 해당 노드에서 Elasticsearch를 시작하면 자동으로 클러스터에 참여하고 샤드 재할당이 시작됩니다.

Resetting

환경을 사용해왔고 모든 것을 제거하고 처음부터 시작하고 싶거나 필요하다면 vagrant destroy를 사용할 수 있습니다. 이렇게 하면 VM이 삭제되므로 다음에 vagrant up할 때 완전히 새로운 클러스터를 얻게 됩니다.

About

A basic Vagrant-based lab environment for experimenting with Elasticsearch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%