首页 > 其他分享 >Elasticsearch 配置参数

Elasticsearch 配置参数

时间:2023-09-23 15:57:10浏览次数:51  
标签:http heap ## 配置 参数 elasticsearch jvm Elasticsearch build

Elasticsearch 配置参数

1. elasticsearch 配置文件说明:

elasticsearch: 
	bin:
	lib:
	modules:
	logs:
	plugins:
	config:
		elasticsearch.yml              #  elasticsearch 配置文件
		jvm.options                      # jvm 配置文件
		log4j2.properties             # 日志配置文件

2. jvm.options参数

################################################################
## IMPORTANT: JVM heap size
################################################################
##
## The heap size is automatically configured by Elasticsearch
## based on the available memory in your system and the roles
## each node is configured to fulfill. If specifying heap is
## required, it should be done through a file in jvm.options.d,
## and the min and max should be set to the same value. For
## example, to set the heap to 4 GB, create a new file in the
## jvm.options.d directory containing these lines:
##
## -Xms4g # 默认4g
## -Xmx4g
##
## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
## for more information
##
################################################################

3.elasticsearch.yml

# 集群使用描述性名称:
cluster.name: my-application
# 使用节点的描述性名称:
node.name: node-1
# 存放数据的目录的路径(多个位置用逗号分隔)
path.data: /path/to/data
# 日志文件路径
path.logs: /path/to/logs
# 默认情况下Elasticsearch只能在本地主机上访问。在这里设置一个不同的地址来公开网络上的这个节点:
network.host: 192.168.0.1
# 默认 http 端口 9200
http.port: 9200

# 配置跨域
http.cors.enabled: true
http.cors.allow-origin: "*"

4. 访问curl "http://127.0.0.1:9200"

[root@8f1930bdze131 ~]# curl "http://127.0.0.1:9200"
{
  "name" : "8f1930bdze131", # 主机名
  "cluster_name" : "elasticsearch", # 默认一个也是集群,默认集群名 elasticsearch
  "cluster_uuid" : "XjL5BIXbRrOY0VR4HfloEQ", # 集群 uuid
  "version" : {
    "number" : "7.12.0", # 当前版本
    "build_flavor" : "default",
    "build_type" : "docker",
    "build_hash" : "78722783c38caa25a70982b5b042074cde5d3b3a",
    "build_date" : "2021-03-18T06:17:15.410153305Z",
    "build_snapshot" : false,
    "lucene_version" : "8.8.0", # 基于 lucene 版本
    "minimum_wire_compatibility_version" : "6.8.0",
    "minimum_index_compatibility_version" : "6.0.0-beta1"
  },
  "tagline" : "You Know, for Search" # 标语:你知道了,为了收索
}

标签:http,heap,##,配置,参数,elasticsearch,jvm,Elasticsearch,build
From: https://www.cnblogs.com/liuzonglin/p/17724489.html

相关文章

  • elasticsearch 集群搭建
    elasticsearch集群搭建elasticsearch.ymlcluster.name:bigdatanode.name:node-1path.data:/usr/local/las/data/elasticsearchpath.logs:/usr/local/las/log/elasticsearchbootstrap.memory_lock:falsebootstrap.system_call_filter:falsenetwork.host:0.0.0.0ne......
  • ElasticSearch RestFul 风格
    ......
  • elasticsearch 自定义字典
    ......
  • iperf3:网络测试工具及测试用例+参数详解
    1,iperf3简介iPerf3是用于主动测试IP网络上最大可用带宽的工具。它支持时序、缓冲区、协议(TCP,UDP,SCTP与IPv4和IPv6)有关的各种参数。对于每次测试,它都会详细的带宽报告,延迟抖动和数据包丢失。它与原始iPerf不共享任何代码,也不向后兼容。它是一个C/S架构的测试工具,需要在同时运......
  • Rocky Linux 8配置时间同步服务 chrony
    我们需要再单独去安装 dnfinstall-ychrony,只需要配置对应的时间同步服务器即可。服务器配置#Usepublicserversfromthepool.ntp.orgproject.#Pleaseconsiderjoiningthepool(http://www.pool.ntp.org/join.html).server10.32.186.70iburst  //添加时间服......
  • 深度学习算法中的参数共享(Parameter Sharing)
    引言在深度学习算法中,参数共享(ParameterSharing)是一种重要的技术,它通过共享模型的参数来减少模型的复杂度,并提升模型的性能和泛化能力。本文将介绍参数共享的概念、原理以及在深度学习算法中的应用。参数共享的概念参数共享指的是在模型的不同部分使用相同的参数。在传统的机器学......
  • 软件设计开发笔记5:QT开发三参数温室气体数据记录软件
      最近有一个为三参数温室气体分析仪及其多通道换向阀箱编写数据记录和控制的需求。所以在这一篇中我们就来分析一下如何使用QT实现这一需求。1、需求分析  虽然说传递过来的需求只有“实现一个三参数温室气体分析仪及其多通道换向阀箱的数据记录和控制”这样一句话,但所有人......
  • Maven 配置热部署
    Maven配置热部署参考文档:maven配置热部署-秒客网(miaokee.com)(22条消息)新版本Idea热部署无效问题处理_全栈高级工程师的博客-CSDN博客<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><scope>r......
  • ROCKY 8 搭建本地yum源及配置局域网公用
    1.上传完整镜像文件 CRT软件,ALT+P打开上传界面,put命令进行上传,windows端命令在前面加L。1.将iso文件上传至/opt下。2.创建挂载目录3.挂载iso文件mount-oloop/opt/Rocky-8.4-x86_64-dvd1.iso/mnt/cdrom/4.修改配置yum源vim/etc/yum.repos.d/Rocky-Media.repo(修改......
  • redis.conf文件参数说明
    redis.conf文件参数说明‍1、单位(Units)配置大小单位,开头定义了一些基本的度量单位,只支持bytes,不支持bit大小写不敏感#不区分大小写#unitsarecaseinsensitiveso1GB1Gb1gBareallthesame.2、包含(INCLUDES)类似jsp中的include,多实例的情况可以把公用的配置......