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

2019年8月8日

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 阅读(15051) 评论(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 阅读(3625) 评论(0) 推荐(0)

ES(ElasticSearch) 索引创建

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

posted @ 2019-08-08 20:23 ExplorerMan 阅读(7756) 评论(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 阅读(390) 评论(0) 推荐(0)

redis4支持内存碎片清理功能使用

摘要: 最近看到redis4支持内存碎片清理了, 之前一直期待有这么一个功能, 因为之前遇到内存碎片的解决办法就是重启, 现在终于有了优雅的解决方案.\^o^/, 这个功能其实oranagra 在2017年1月1日已经提交pr了, 相关地址: https://github.com/antirez/redis 阅读全文

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

Linux下安装Elasticsearch6.5

摘要: 1、安装JDK8(Elastic 需要 Java 8 环境) 1)下载jdk8文件:http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html\ 2)解压文件:tar -zxvf jdk-8u 阅读全文

posted @ 2019-08-08 18:30 ExplorerMan 阅读(447) 评论(0) 推荐(0)

2019年8月6日

Linux iostat命令详解

摘要: Linux系统出现了性能问题,一般我们可以通过top、iostat、free、vmstat等命令来查看初步定位问题。在一个以前看到系统监控工具,总在想那些监控工具的代理,如何收集系统性能信息,io性能,cpu使用,带宽使用等信息,偶然发现,不同系统均提供有性能分析工具的,代理可通过这些命令获取系统性 阅读全文

posted @ 2019-08-06 20:11 ExplorerMan 阅读(423) 评论(0) 推荐(0)

2019年8月5日

flask-profiler, 监视端点调用并尝试进行某些分析的Flask 事件探查器

摘要: 源代码名称:flask-profiler 源代码网址:http://www.github.com/muatik/flask-profiler flask-profiler源代码文档 flask-profiler源代码下载 Git URL: 复制代码 git://www.github.com/muat 阅读全文

posted @ 2019-08-05 14:57 ExplorerMan 阅读(814) 评论(0) 推荐(0)

2019年8月3日

ELK是什么

摘要: 为什么做日志系统 通常当系统发生故障时,工程师需要登录到各个服务器上,使用 grep / sed / awk 等 Linux 脚本工具去日志里查找故障原因。在没有日志系统的情况下,首先需要定位处理请求的服务器,如果这台服务器部署了多个实例,则需要去每个应用实例的日志目录下去找日志文件。每个应用实例还 阅读全文

posted @ 2019-08-03 22:52 ExplorerMan 阅读(956) 评论(0) 推荐(0)

linux下elasticsearch 安装、配置及示例

摘要: <!-- flowchart 箭头图标 勿删 --> 简介 开始学es,我习惯边学边记,总结出现的问题和解决方法。本文是在两台linux虚拟机下,安装了三个节点。本次搭建es同时实践了两种模式——单机模式和分布式模式。条件允许的话,可以在多台机器上配置es节点,如果你机器性能有限,那么可以在一台虚拟 阅读全文

posted @ 2019-08-03 20:50 ExplorerMan 阅读(372) 评论(0) 推荐(0)

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

导航