当前位置:网站首页>Very important very important very important very important very important very important very important very important very important
Very important very important very important very important very important very important very important very important very important
2022-06-25 11:21:00 【Anonymous & Xiaoyu】
1、 List the process number
ps -ef | grep elastic
2、 Close the process number
kill -9 Process number
3、 restart elasticsearch
./elasticsearch -d
Parameters -d It means running in the background
1、es Out-of-service root User start
Abnormal information :can not run elasticsearch as root
Solution : A new user adduser xxx take es Folder permission modification chown -R xx|xx Folder
2、./elasticsearch -d Background start
3、 Problems needing attention during installation
1. Modify memory
Abnormal information :Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c5330000, 986513408, 0) failed; error='Cannot allocate memory' (errno=12)
Solution : modify /config/jvm.options file -Xms200m -Xmx200m
2. Modify the file size
Abnormal information : max file descriptors [65535] for elasticsearch process is too low, increase to at least [65536]
[2]: max number of threads [3895] for user [elastic] is too low, increase to at least [4096]
[3]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
Solution :
1. modify /etc/security/limits.conf, Modify it to the prompt value
- hard nofile 65536
2. modify /etc/security/limits.d/90-nproc.conf file add to
- hard nproc 4096
3. modify /etc/sysctl.conf
Add the configuration :vm.max_map_count=262144, And then execute the command sysctl -p
soft nproc: The maximum number of file descriptors that can be opened ( Soft limit )
hard nproc: The maximum number of file descriptors that can be opened ( Hard limit )
soft nofile: The maximum number of processes available to a single user ( Soft limit )
hard nofile: The maximum number of processes available to a single user ( Hard limit )
4、 Simple cluster configuration
Master configuration
Cluster name , Other nodes use this name to find the specified cluster
cluster.name: wali
The name of the node , Node names in a cluster cannot be duplicate
node.name: master
Is it the primary node
node.master: true
Where the data is stored
path.data: /home/tar/elasticsearch-6.3.2/data
Where to store the log
path.logs: /home/tar/elasticsearch-6.3.2/logs
The binding of ip
network.host : 172.31.69.209
Indicates whether it is Elasticsearch Service enabled HTTP. If you want to use Elasticsearch REST Request to query directly Elasticsearch data , Then you can enable HTTP port
http.cors.enabled: true
If http.cors.enabled The value of is true, Then the attribute specifies that allow REST Where does the request come from .
http.cors.allow-origin: "*"
If enabled HTTP port , Then this attribute is specified by Elasticsearch The port used by the service .
http.port: 9200
Used in a cluster Elasticsearch Port for communication between nodes
transport.tcp.port: 9300
Other node configuration
Cluster name , Other nodes use this name to find the specified cluster
cluster.name: wali
The name of the node , Node names in a cluster cannot be duplicate
node.name: slave2
Where the data is stored
path.data: /home/wuzhuang/data2
Where to store the log
path.logs: /home/wuzhuang/logs2
The binding of ip
network.host : 172.31.69.209
Provide others Elasticsearch Unicast discovery function of service node . Configure host based in the cluster TCP Other ports Elasticsearch Comma separated list of services .
discovery.zen.ping.unicast.hosts: ["172.31.69.209"]
elasticsearch.yml Configuration properties
attribute | The default value | describe |
cluster.name | <kbd class="ph userinput">federated_cluster</kbd> | Elasticsearch Cluster name . Using a cluster can separate Process Federation Server Binding to a single distributed system . All servers participating in the cluster must have the same cluster name . |
node.name | <kbd class="ph userinput">node1</kbd> | Elasticsearch The node name . Each of the clusters Process Federation Server Must have a unique node name . |
node.master | <kbd class="ph userinput">true</kbd> | Indicates whether a node is qualified to be a master . Master node management Elasticsearch The state of the cluster . At run time ,Elasticsearch The service will automatically nominate a qualified cluster member as the master node . |
node.data | <kbd class="ph userinput">true</kbd> | Indicates whether the node is a data node . The data node contains and manages part of the index . |
http.enabled | <kbd class="ph userinput">false</kbd> | Indicates whether it is Elasticsearch Service enabled HTTP. If you want to use Elasticsearch REST Request to query directly Elasticsearch data , Then you can enable HTTP port . |
htttp.port | <kbd class="ph userinput">9200</kbd> | If enabled HTTP port , Then this attribute is specified by Elasticsearch The port used by the service . |
http.cors.enabled | <kbd class="ph userinput">true</kbd> | If enabled HTTP port , Then this property specifies whether cross source REST request . |
http.cors.allowed.origin | <kbd class="ph userinput">localhost</kbd> | If http.cors.enabled The value of is <kbd class="ph userinput">true</kbd>, Then the attribute specifies that allow REST Where does the request come from . |
transport.tcp.port | <kbd class="ph userinput">9300</kbd> | Used in a cluster Elasticsearch Port for communication between nodes . |
discovery.zen.minimum_master_nodes | <kbd class="ph userinput">1</kbd> | Indicates the required for a cluster quota Process Federation Server The number of . |
discovery.zen.ping.multicast.enabled | <kbd class="ph userinput">false</kbd> | One or more multicast requests received and responded to by the sending node provide access to other Elasticsearch Multicast of service nodes ping Discovery function . For more information , see also Elasticsearch file . |
discovery.zen.ping.unicasts.hosts | <kbd class="ph userinput">localhost</kbd> | Provide others Elasticsearch Unicast discovery function of service node . Configure host based in the cluster TCP Other ports Elasticsearch Comma separated list of services . |
discovery.zen.ping.timeout | <kbd class="ph userinput">3s</kbd> | Elastic Search nodes waiting to join Elasticsearch Cluster time . |
边栏推荐
- [maintain cluster case set] gaussdb query user space usage
- C disk uses 100% cleaning method
- Compilation of learning from Wang Shuang (1)
- After reading this article, I will teach you to play with the penetration test target vulnhub - drivetingblues-7
- SystemVerilog (XIII) - enumerate data types
- Handler、Message、Looper、MessageQueue
- CMU提出NLP新范式—重构预训练,高考英语交出134高分
- 每日3题(3)-检查整数及其两倍数是否存在
- Technical practice and development trend of video conference all in one machine
- 金仓数据库 KingbaseES 插件identity_pwdexp
猜你喜欢

Nuxtjs actual combat case

Getting started with Apache Shenyu

SQL注入漏洞(绕过篇)

金仓KFS数据级联场景部署

SQL injection vulnerability (bypass)

Software testing to avoid being dismissed during the probation period

zabbix分布式系统监控

基於Minifilter框架的雙緩沖透明加解密驅動 課程論文+項目源碼

Redis6笔记02 配置文件,发布和订阅,新数据类型,Jedis操作

An interesting logic SRC mining
随机推荐
手机办理长投学堂证券开户靠谱安全吗?
At 16:00 today, Mr. sunxiaoming, a researcher of the Institute of computing, Chinese Academy of Sciences, took you into the quantum world
2022 PMP project management examination agile knowledge points (2)
[shangyun boutique] energy saving and efficiency improvement! Accelerating the transformation of "intelligent manufacturing" in the textile industry
Android之Kotlin语法详解与使用
報名開啟|飛槳黑客馬拉松第三期如約而至,久等啦
VW VH adaptation of mobile terminal
[file containing vulnerability-03] six ways to exploit file containing vulnerabilities
C disk uses 100% cleaning method
Apache ShenYu 入门
基于SSH的高校实验室物品管理信息系统的设计与实现 论文文档+项目源码及数据库文件
Jincang database kingbasees plug-in identity_ pwdexp
基于超算平台气象预警并行计算架构研究
Introduction to JVM principle
Coscon'22 lecturer solicitation order
Spannable 和 Editable、SpannableString 和 SpannableString
try-catch-finally
仿真与烧录程序有哪几种方式?(包含常用工具与使用方式)
Application of global route guard
SQL注入漏洞(绕过篇)