南昌网站设计专业排名,阳城做网站,个人网站备案通过做淘客,网站怎么做seo优化对官方文档Networking的阅读笔记。 ES集群中的节点#xff0c;支持处理两类通信平面 
集群内节点之间的通信#xff0c;官方文档称之为transport layer。集群外的通信#xff0c;处理客户端下发的请求#xff0c;比如数据的CRUD#xff0c;检索等#xff0c;官方文档称之…对官方文档Networking的阅读笔记。 ES集群中的节点支持处理两类通信平面 
集群内节点之间的通信官方文档称之为transport layer。集群外的通信处理客户端下发的请求比如数据的CRUD检索等官方文档称之为HTTP layer。 
对于这两个平面公共的配置配置参数可以使用network.*。 针对transport layer的配置参数可以使用transport.*。 针对HTTP layer的配置参数可以使用http.*。 
参数networkhttptransportremote_cluster说明hostnetwork.hosthttp.hosttransport.hostremote_cluster.host业务的监听地址。bind_hostnetwork.bind_hosthttp.bind_hosttransport.bind_hostremote_cluster.bind_host默认值与host相同。publish_hostnetwork.publish_hosthttp.publish_hosttransport.publish_hostremote_cluster.publish_host默认值与host相同。publish_portN/Ahttp.publish_porttransport.publish_portremote_cluster.publish_portportN/Ahttp.porttransport.portremote_cluster.port业务的监听端口。tcp.keep_alivenetwork.tcp.keep_alivehttp.tcp.keep_alivetransport.tcp.keep_aliveremote_cluster.tcp.keep_aliveTCP socket的SO_KEEPALIVE参数默认值为true。tcp.keep_idlenetwork.tcp.keep_idlehttp.tcp.keep_idletransport.tcp.keep_idleremote_cluster.tcp.keep_idleTCP socket的TCP_KEEPIDLE参数默认值为-1。tcp.keep_intervalnetwork.tcp.keep_intervalhttp.tcp.keep_intervaltransport.tcp.keep_intervalremote_cluster.tcp.keep_intervalTCP socket的TCP_KEEPINTVL参数默认值为-1。tcp.keep_countnetwork.tcp.keep_counthttp.tcp.keep_counttransport.tcp.keep_countremote_cluster.tcp.keep_countTCP socket的TCP_KEEPCNT参数默认值为-1。tcp.no_delaynetwork.tcp.no_delayhttp.tcp.no_delaytransport.tcp.no_delayremote_cluster.tcp.no_delayTCP socket的TCP_NODELAY参数默认值为true。详细说明见wiki。tcp.reuse_addressnetwork.tcp.reuse_addresshttp.tcp.reuse_addresstransport.tcp.reuse_addressremote_cluster.tcp.reuse_addressTCP socket的SO_REUSEADDR参数Windows平台的默认值为false其它平台的默认值为true。tcp.send_buffer_sizenetwork.tcp.send_buffer_sizehttp.tcp.send_buffer_sizetransport.tcp.send_buffer_sizeremote_cluster.tcp.send_buffer_sizeTCP的发送缓冲区的大小默认值为-1表示使用系统的默认值。tcp.receive_buffer_sizenetwork.tcp.receive_buffer_sizehttp.tcp.receive_buffer_sizetransport.tcp.receive_buffer_sizeremote_cluster.tcp.receive_buffer_sizeTCP的接收缓冲区的大小默认值为-1表示使用系统的默认值。compressionN/Ahttp.compressiontransport.compressionN/A压缩。 
transport独有的参数 
transport.connect_timeouttransport.compresstransport.compression_scheme 压缩算法可选值包括deflate或者lz4默认值为lz4。transport.ping_schedule 指示发送业务心跳的周期默认值为-1表示不发送业务心跳。 
http独有的参数 http.max_content_length HTTP请求消息体的长度的最大值默认值为100MB。  http.max_initial_line_length HTTP请求中URL的长度的最大值默认值为4KB。  http.max_header_size HTTP请求中HTTP头部的总长度的最大值默认值为16KB。  http.compression 使用HTTPS时默认取值为false其它情况下取值为true。  http.compression_level 压缩级别取值范围为[1, 9]默认值为3。  http.detailed_errors.enabled 指定是否允许在HTTP响应消息中暴露详细的错误提示信息默认值为true。  http.pipelining.max_events HTTP请求消息队列的长度默认值为10000。  http.max_warning_header_count HTTP响应消息中允许包含的提示信息头部的数量默认值为-1即不限制。  http.max_warning_header_size HTTP响应消息中允许包含的提示信息头部的长度默认值为-1即不限制。  http.client_stats.enabled 指示是否记录HTTP通信过程中的统计数据默认值为true。  http.client_stats.closed_channels.max_count 默认值为10000。  http.client_stats.closed_channels.max_age 关闭HTTP通道之后上传统计数据的时延值默认值为5m。  
http协议CORS特性相关的参数 
http.cors.enabled 是否启用对CORS的支持。http.cors.allow-originhttp.cors.max-age 指示缓存HTTP方法OPTIONS的返回值的时长即超时时间默认值为1728000即20天。http.cors.allow-methods HTTP请求中允许使用的方法默认值包括 OPTIONSHEADGETPOSTPUTDELETE http.cors.allow-headers 允许在HTTP请求消息中使用的头部默认值包括 X-Requested-WithContent-TypeContent-LengthAuthorizationAcceptUser-AgentX-Elastic-Client-Meta http.cors.expose-headers 指定在HTTP响应消息中返回的头部默认值为X-elastic-product。http.cors.allow-credentials 决定头部Access-Control-Allow-Credentials是否返回默认值为false。 
remote_cluster_server独有的参数 
remote_cluster_server.enabled 指示是否启用远端集群默认值为false。 
网络通信的线程模型这部分内容在处理通信相关的故障时非常意义后续有空时详细阅读。 导出ES进程的栈时使用关键字transport_worker来检索可以看到相关的线程的栈。 
参考资料 
Nodes hot threads API