elasticSearch之Docker部署

客户的es要部署上线生产环境,由于生产环境全部是基于docker部署,所以ES也不例外。

前置条件: 服务器:3台 16G+ 8核+ 200G空间+

网络:千兆内网交换

由于我们的客户服务器都是高配256G内存22T sas raid 10阵列 40核cpu,所以硬件条件足以满足。

部署方式:docker集群

网络模式:host模式

最小工作集群:3节点

前端接入:haproxy:9300

实例如下:

 

docker run -it -d
–name $nodeName
–net=host
–oom-kill-disable=true
-e ES_HEAP_SIZE=”$ES_HEAP_SIZE”
-v $datadir:/data/elasticsearch/data
-v $logdir:/data/elasticsearch/logs
“$image”
–node.name “$nodeName”
–cluster.name $clusterName
–network.publish_host $localIP
–transport.tcp.port $tranPort
–http.port $httpPort
–discovery.zen.ping.multicast.enabled “false”
–discovery.zen.ping.unicast.hosts “10.0.0.1:9300″,”10.0.0.2:9300″,”10.0.0.3:9300″
–index.cache.field.max_size “10000mb”
–index.cache.filter.max_size “10000mb”
–index.cache.field.expire “60m”
–index.cache.field.type “soft”
–indices.cache.filter.size “50%”
–index.cache.filter.expire “60m”
–Des.index.store.type “memory”
–threadpool.search.size “61″

服务器维护 服务器配置 服务器 维护 运维 网管 系统调优 网络调优 数据库优化