• 今日单词

    rapidity Things are happening with machine-gun rapidity: Brexit, the Turkish coup, Islamist massacres in France, the surrounding of Aleppo, the nomination of Donald Trump. /rəˈpɪdətɪ; rə`pɪdətɪ/ n[U] 迅速 湍急 with...

  • mesos scheduler与master通讯

    用的是http, 但是需要长链接. 服务器返回“200 OK” status code with Transfer-Encoding: chunked. 所以如果一个Http库只能在链接close之后才解释, 这样的库不能用. 因为接下来的通讯需要用另外一个链接,我们叫做第二个链接. master收到请求后, 对第二个链接回复202. 然后把真正的响应回复到第一个长链接中.

  • go-unpacking-array-as-arguments

    command := strings.Split("service nginx reload") cmd := exec.Command(command[0], command[1:]...) err := cmd.Run()

  • golang中select是同步的

    glog.Info(data) select { case zevent := <-watch: glog.Info(zevent) } glog.Info(data) select 是同步的, 打印出zevent之后, 再打印后面的data

  • nginx中location的匹配规则

    官方资料见 http://nginx.org/en/docs/http/ngx_http_core_module.html#location location语法是这样的 location [ = | ~ | ~* | ^~ ] uri { ... } , []里面的东西代表可有可无. 举一个例子 location = / { [ configuration A ] } location...

  • elasticsearch在有节点脱离集群时删除索引

    如果节点A先脱离集群了, 这时候删除了某个索引. 然后节点A又再次加入集群, 会导致一个现象: 这个索引回来了, 但是无法分配到任何节点上.

  • /proc/meminfo

    从https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s2-proc-meminfo.html全文复制 This is one of the more commonly used files in the /proc/ directory, as it reports a large amount of valuable information about the systems RAM usage. The following...

  • elasticsearch对可能破坏性的操作限制通配符

    PUT _cluster/settings?master_timeout=5m { "transient": { "action.destructive_requires_name": true } }

  • 数据类型对es bulk的影响

    共14912997 数据,就一个字段, 平均31bytes, 里面有平均7个token 把字符串按mapping转成integer ; 1 shard merge后291.4m es cpu time 12m hangout user time 8m search 98ms string ; 1 shars merge后325.2m es cpu time 13m10s hangout user...

  • elasticsearch中限制搜索超时时间

    PUT _cluster/settings { "transient": {"search.default_search_timeout":"250s"} }