上一页 1 ··· 116 117 118 119 120 121 122 123 124 ··· 234 下一页

2019年8月9日

手把手教你搭建一个 Elasticsearch 集群

摘要: 为何要搭建 Elasticsearch 集群 凡事都要讲究个为什么。在搭建集群之前,我们首先先问一句,为什么我们需要搭建集群?它有什么优势呢? 高可用性 Elasticsearch 作为一个搜索引擎,我们对它的基本要求就是存储海量数据并且可以在非常短的时间内查询到我们想要的信息。所以第一步我们需要保 阅读全文

posted @ 2019-08-09 18:33 ExplorerMan 阅读(637) 评论(0) 推荐(0)

ES 集群管理(集群规划、集群搭建、集群管理)

摘要: 一、集群规划 搭建一个集群我们需要考虑如下几个问题: 1. 我们需要多大规模的集群? 2. 集群中的节点角色如何分配? 3. 如何避免脑裂问题? 4. 索引应该设置多少个分片? 5. 分片应该设置几个副本? 下面我们就来分析和回答这几个问题 1、我们需要多大规模的集群? 需要从以下两个方面考虑: 1 阅读全文

posted @ 2019-08-09 17:26 ExplorerMan 阅读(2194) 评论(0) 推荐(0)

Elasticsearch如何关掉服务

摘要: 1.使用head插件找到想关掉的节点进行关停 2.使用命令kill杀掉服务器的ES进程即可1.查找ES进程ps -ef | grep elastic 2.杀掉ES进程kill -9 2382(进程号) 3.重启ESsh elasticsearch -d 需要对ES节点进行重新启动或正常关机的时候,有 阅读全文

posted @ 2019-08-09 17:08 ExplorerMan 阅读(2744) 评论(0) 推荐(0)

测算Redis处理实际生产请求的QPS/TPS

摘要: 内容目录: Benchmark工具 测算redis处理实际生产请求的QPS/TPS 内容目录: Benchmark工具 测算redis处理实际生产请求的QPS/TPS 测算Redis处理实际生产请求的QPS/TPS Benchmark工具 redis发布版本中自带了redis-benchmark性能 阅读全文

posted @ 2019-08-09 15:19 ExplorerMan 阅读(2210) 评论(0) 推荐(0)

2019年8月8日

filebeat直连elasticsearch利用pipeline提取message中的字段

摘要: 这里使用filebeat直连elasticsearch的形式完成数据传输,由于没有logstash,所有对于原始数据的过滤略显尴尬(logstash的filter非常强大)。 但是由于业务需求,还是需要将message(原始数据)中的某些字段进行提取,具体方式如下: 1. /path/目录下建立pi 阅读全文

posted @ 2019-08-08 21:34 ExplorerMan 阅读(632) 评论(0) 推荐(0)

python连接 elasticsearch 查询数据,支持分页

摘要: 使用python连接es并执行最基本的查询 from elasticsearch import Elasticsearch es = Elasticsearch(["localhost:9200"]) para = {"_source":"message"} es.search(index=inde 阅读全文

posted @ 2019-08-08 21:33 ExplorerMan 阅读(2916) 评论(0) 推荐(0)

python 查询 elasticsearch 常用方法(Query DSL)

摘要: 1. 建立连接 from elasticsearch import Elasticsearch es = Elasticsearch(["localhost:9200"]) 2. 查询所有数据 # 方式1: es.search(index="index_name", doc_type="type_n 阅读全文

posted @ 2019-08-08 21:31 ExplorerMan 阅读(15130) 评论(1) 推荐(0)

es笔记---新建es索引

摘要: es对索引的一堆操作都是用restful api去进行的,参数时一堆json,一年前边查边写搞过一次,这回搞迁移,发现es都到6.0版本了,也变化了很多,写个小笔记记录一下。 创建一个es索引很简单,一个put请求。 PUT /my_index { "settings": { ... any set 阅读全文

posted @ 2019-08-08 20:37 ExplorerMan 阅读(3652) 评论(0) 推荐(0)

ES(ElasticSearch) 索引创建

摘要: 个人分类: ElasticSearchindex 个人分类: ElasticSearchindex 个人分类: ElasticSearchindex 个人分类: ElasticSearchindex 个人分类: ElasticSearchindex 环境:ES 6.2.2 os:Centos 7 k 阅读全文

posted @ 2019-08-08 20:23 ExplorerMan 阅读(7800) 评论(0) 推荐(0)

Python 操作 ElasticSearch

摘要: 官方文档:https://elasticsearch-py.readthedocs.io/en/master/ 1、介绍 python提供了操作ElasticSearch 接口,因此要用python来操作ElasticSearch,首先要安装python的ElasticSearch包,用命令 pip 阅读全文

posted @ 2019-08-08 19:48 ExplorerMan 阅读(406) 评论(0) 推荐(0)

上一页 1 ··· 116 117 118 119 120 121 122 123 124 ··· 234 下一页

导航