当前位置:网站首页>Core concepts of elastic search learning Introduction (4)
Core concepts of elastic search learning Introduction (4)
2022-07-22 20:17:00 【R_ be still fresh fresh in one 's memories】
1.1 Cluster
Represents a cluster , There are multiple nodes in the cluster , One of them is the main node , This master node can be elected , The primary and secondary nodes are internal to the cluster .ES One of the concepts is decentralization , Literally, it's a centerless node , This is for the outside of the cluster , Because from the outside ES colony , Logically it's a whole , You communicate with any node and with the whole ES Cluster communication is equivalent .
The primary node is responsible for managing the cluster state , This includes managing the state of shards and replicas , And the discovery and deletion of nodes .
You only need to start multiple within the same network segment ES node , It can automatically form a cluster .
By default ES Nodes in the same network segment will be found automatically , Automatically form a cluster .
Viewing status of the cluster : http://hadoop01:9200/_cluster/health?pretty
1.2 shards
For index fragmentation ,ES A complete index can be divided into multiple slices , The advantage is that you can split a large index into multiple indexes , Distributed to different nodes , Form a distributed search . The number of slices can only be specified before index creation , And the index cannot be changed after creation .
You can specify... When creating the index library
curl -XPUT 'localhost:9200/test1/' -d '{"settings":{"number_of_shards":3}}'
The default is an index library with 5 A shard : index.number_of_shards:5
1.3 replicas
For index copy ,ES You can set a copy for the index , The first function of replica is to improve the fault tolerance of the system , A node can recover from a replica when a partition is damaged or lost . The second is to improve ES The query efficiency of ,ES Will automatically load balance the search request .
You can specify... When creating the index library
curl -XPUT 'localhost:9200/test2/' -d'{"settings":{"number_of_replicas":2}}'
The default is a partition with 1 Copies : index.number_of_replicas:1
1.4 recovery
Represents data recovery or data redistribution ,ES When a node is added or exited, index fragmentation will be reallocated according to the load of the machine , Data recovery will also be performed when the suspended node is restarted .
1.5 gateway
representative ES Persistent storage of index ,ES The default is to store the index in memory first , When the memory is full, persist to the hard disk . When this ES When the cluster is shut down and restarted, it will start from gateway Read index data from .Es Support multiple types of gateway, There's a local file system ( Default ), distributed file system ,Hadoop Of HDFS and amazon Of s3 Cloud storage services .
1.6 discovery.zen
representative ES Automatic discovery of nodes mechanism ,ES It's based on p2p The system of , It first looks for the existing nodes through broadcasting , Then through the multicast protocol to carry out the communication between nodes , It also supports point-to-point interaction .
If the nodes of different network segments are composed ES colony
Disable auto discovery
discovery.zen.ping.multicast.enabled:false
Set the annotation list that can be found when the new node is started
Discovery.zen.ping.unicast.hosts:["192.8.50.150", "192.8.53.124:9300"]
1.7 Transport
representative ES How internal nodes or clusters interact with clients , The default internal is to use tcp Protocol to interact , And it supports http agreement (json Format )、thrift、servlet、memcached、zeroMQ Wait for the transmission protocol ( Through plug-in integration ).
边栏推荐
- How to solve the blue screen problem in win8.1 system and how to solve the malicious hijacking of IE home page?
- Résumé de fin d'année 2017
- Daily work specifications
- Spark资料查找
- Fluent 2 Advanced (V):json_ Serializable use
- Leetcode 394. string decoding
- 求N!后面有多少个0
- [reading notes] micro habits: slimming down
- Kotlin learning three: set and lambda
- 网页被劫持了该怎么办?dns被劫持如何修复?网页劫持介绍
猜你喜欢
appstore 上传屏幕快照尺寸
Elastic Search 学习入门之插件安装(五)
What are the common ways for websites to be hacked and hijacked? What are the DNS hijacking tools?
域名劫持定义及原理、域名被劫持解决办法有那些
高速ADC测试心得
What should I do if the web page is hijacked? How to repair DNS hijacked? Introduction to web hijacking
网络劫持是什么?网页被篡改劫持怎么修复(终级方案)网页劫持如何修复?
Matlab FFT参数设置研究
常见的网站被黑被劫持的手段有哪些?dns劫持工具有那些?
图的深度优先搜索和广度优先搜索
随机推荐
为什么memset不能将数组元素初始化为1?
NC4 judge whether there is a ring in the linked list
ld: framework not found Pods_ XXX clang: error: linker command failed with exit code 1 (use -v to see
Flutter development (XXXI): flutter starts the white screen
什么是百度快照劫持?百度快照劫持原理和解决办法
What are the common ways for websites to be hacked and hijacked? What are the DNS hijacking tools?
What should I do if the web page is hijacked? How to repair DNS hijacked? Introduction to web hijacking
网站安全之域名被劫持、域名被劫持后该怎么办!!!
Don't hack the website. How to solve it? How to deal with the problem of website being hacked
How to clear localstorage data after closing the browser
NodeJS安装教程
Daily work specifications
梁宁产品课程学习
Development and construction of NFT card chain game system DAPP
[chat] essays after two years of work
信号量实现同步互斥经典案例
网站莫名跳转,从百度谈什么是网站劫持?DNS劫持(域名劫持)DNS劫持是啥
域名dns被劫持怎么办、dns被劫持怎么办、dns被劫持的解决方法
Opening soon | openatom openharmony sub forum of 2022 open atom global open source summit "interconnection of all things, enabling thousands of industries"
PyTorch学习——利用梯度下降法实现一元线性回归