11 2018 档案

摘要:使用ps命令自定义查看程序占用内存: 阅读全文
posted @ 2018-11-19 16:15 Hsinwang 阅读(148) 评论(0) 推荐(0)
摘要:memtester [-p PHYSADDR] <MEMORY> [ITERATIONS] MEMORY 申请测试内存的数量,单位默认是megabytes(兆),也可以是B K M G ITERATIONS 测试的次数,默认是无限 官网:http://pyropus.ca/software/memt 阅读全文
posted @ 2018-11-19 14:01 Hsinwang 阅读(1195) 评论(0) 推荐(0)
摘要:1. 使用docker运行es docker run -d -p 9200:9200 --name='es' elasticsearch:5.6.8 #创建一个新的容器并运行一个命令 docker ps -a docker exec -it es /bin/bash #进入交互模式,es必须先启动 2. 挂载目录 -v 宿主机目录:容器目录 docker run -it -... 阅读全文
posted @ 2018-11-16 09:08 Hsinwang 阅读(13625) 评论(0) 推荐(0)
摘要:cgcreate -g cpuset:/test cgset -r cpuset.cpus=0 test cgset -r cpuset.mems=0 test #mems必须设置 cgexec -g cpuset:/sunwg_g1 python test.py 注: 1. 查看linux文档发现cpuset子系统是有两个参数是强制要求定义的,cpuset.cpus和cpuset.me... 阅读全文
posted @ 2018-11-14 11:00 Hsinwang 阅读(2102) 评论(0) 推荐(0)
摘要:方法1: 使用node模块 - elasticdump安装 npm install elasticdump -g elasticdump example: elasticdump \ --input=http://production.es.com:9200/my_index \ --output=http://staging.es.com:9200/my_index \ --ty... 阅读全文
posted @ 2018-11-13 16:49 Hsinwang 阅读(1073) 评论(0) 推荐(0)
摘要:elasticsearch.yml jvm.options 阅读全文
posted @ 2018-11-10 17:37 Hsinwang 阅读(212) 评论(0) 推荐(0)
摘要:原因:append()方法只是将字典的地址存到list中,而键赋值的方式就是修改地址,所以才导致覆盖的问题 解决:使用copy() 或者 deepcopy() 注:当字典中存在list的时候需要使用deepcopy() 阅读全文
posted @ 2018-11-10 17:18 Hsinwang 阅读(865) 评论(0) 推荐(0)
摘要:mapping type可参考官方 阅读全文
posted @ 2018-11-06 11:14 Hsinwang 阅读(153) 评论(0) 推荐(0)
摘要:使用Python对ElasticSearch获取数据及操作 阅读全文
posted @ 2018-11-05 20:41 Hsinwang 阅读(584) 评论(0) 推荐(0)