上一页 1 2 3 4 5 6 7 ··· 18 下一页
摘要: 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 阅读(1884) 评论(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 阅读(1054) 评论(0) 推荐(0) 编辑
摘要: elasticsearch.yml jvm.options 阅读全文
posted @ 2018-11-10 17:37 Hsinwang 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 原因:append()方法只是将字典的地址存到list中,而键赋值的方式就是修改地址,所以才导致覆盖的问题 解决:使用copy() 或者 deepcopy() 注:当字典中存在list的时候需要使用deepcopy() 阅读全文
posted @ 2018-11-10 17:18 Hsinwang 阅读(847) 评论(0) 推荐(0) 编辑
摘要: mapping type可参考官方 阅读全文
posted @ 2018-11-06 11:14 Hsinwang 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 使用Python对ElasticSearch获取数据及操作 阅读全文
posted @ 2018-11-05 20:41 Hsinwang 阅读(569) 评论(0) 推荐(0) 编辑
摘要: query DSL match 查询 { "match": { "tweet": "About Search" } } 注:match查询只能就指定某个确切字段某个确切的值进行搜索,做精确匹配搜索时, 你最好用过滤语句,因为过滤语句可以缓存数据。 match_phrase 查询 { "query": 阅读全文
posted @ 2018-10-21 16:47 Hsinwang 阅读(997) 评论(0) 推荐(0) 编辑
摘要: 当多个请求需要全部完成后返回结果可以使用 Promise.all() https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects/Promise/all 使用request-promise模块代码结 阅读全文
posted @ 2018-10-19 09:08 Hsinwang 阅读(11314) 评论(0) 推荐(0) 编辑
摘要: 1.标题 一级标题 ^^^^^^^^ 二级标题 --------- 三级标题 >>>>>>>>> 2. 块 1) 文字块 :: for i in [1,2,3,4]: print i 注:用两个冒号来分割,并在之后紧接着插入空行,而后放入块的内容,块内容要相对之前的内容有缩进。 2) 代码块 .. code-block:: bash ... 3. 符号... 阅读全文
posted @ 2018-10-16 17:31 Hsinwang 阅读(392) 评论(0) 推荐(0) 编辑
摘要: 使用request发送post请求 阅读全文
posted @ 2018-10-16 09:55 Hsinwang 阅读(174) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 18 下一页