# 指定集群名称cluster.name: yurun-stage-es# nodenamenode.name: yurun-stage-database# 是否可以当master节点node.master: true# 是否可以当数据节点node.data: true# 数据位置path.data: /usr/local/elasticsearch/data#日志位置path.logs: /usr/local/elasticsearch/logs# 锁内存bootstrap.memory_lock: true# 连接地址network.host: xxxxx# Http可访问的端口http.port: 9200# 发现地址列表,配置所有可能成为master的节点地址,端口不写默认 transport.port。默认9300discovery.zen.ping.unicast.hosts: ["10.11.7.24"]# 下列为主机名形式# discovery.zen.ping.unicast.hosts: ["yurun-stage-database"]## 最少存活多少个节点 master可用discovery.zen.minimum_master_nodes: 1# http跨域设置http.cors.allow-origin: "/.*/"http.cors.enabled: truehttp.cors.allow-headers: X-Requested-With,X-Auth-Token,Content-Type, Content-Length, Authorizationhttp.cors.allow-credentials: true
也就是说stage环境下,es是一个单节点的集群。其实默认也是
