摘要: [TOC] 1. 对象存储 1.1 aliyun OSS 1.2 aws S3 2. Hadoop 参考: "http://hadoop.apache.org/" "https://hadoop.apache.org/docs/stable/" "单节点集群部署" "HDFS Architectur 阅读全文
posted @ 2020-02-29 11:40 yvhqbat 阅读(518) 评论(0) 推荐(0) 编辑
摘要: [TOC] 参考 kafka "http://kafka.apachecn.org/" "https://github.com/edenhill/librdkafka" "https://docs.confluent.io/2.0.0/clients/librdkafka/index.html" " 阅读全文
posted @ 2020-01-21 10:32 yvhqbat 阅读(90) 评论(0) 推荐(0) 编辑
摘要: [TOC] 1. 项目中 CLOSE_WAIT 1.1 现象 线上出现大量的CLOSE_WAIT连接问题,多达2万多个,新的连接很多创建错误,通过以下命令可以查看: 1.2 产生 CLOSE_WAIT 的原因 aws sdk 底层采用 libcurl 库发送http请求,维护有一个 curl 的句柄 阅读全文
posted @ 2019-11-13 13:50 yvhqbat 阅读(1227) 评论(0) 推荐(0) 编辑
摘要: [TOC] task为任务名(或服务程序名),部署服务时,需要将task改为对应的服务程序名即可,不可重复。 yaml文件中需要修改的只是有注释的部分。 1. deployment deployment.yaml 调用 创建deployment。 2. service service.yaml 调用 阅读全文
posted @ 2019-03-27 16:36 yvhqbat 阅读(233) 评论(0) 推荐(0) 编辑
摘要: distribute_lock.go disribute_lock_test.go 阅读全文
posted @ 2019-03-26 15:30 yvhqbat 阅读(757) 评论(0) 推荐(0) 编辑
摘要: [TOC] influxdb 参考: "https://github.com/influxdata/influxdb" "https://github.com/influxdata/influxdb/tree/1.7/client" "https://docs.influxdata.com/infl 阅读全文
posted @ 2019-03-19 09:51 yvhqbat 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 1. go语言 《Go程序设计语言》、《the way to go》 2. Docker 2.1 Dockerfile 命令 格式 说明 FROM FROM : 指定基础镜像(scratch/ubuntu…) COPY COPY 复制本地文件到镜像 ADD ADD 复制本地文件或网络文件的url到镜 阅读全文
posted @ 2019-02-23 19:00 yvhqbat 阅读(934) 评论(0) 推荐(0) 编辑
摘要: python 文件遍历 阅读全文
posted @ 2019-02-23 18:33 yvhqbat 阅读(483) 评论(0) 推荐(0) 编辑
摘要: ``` package main import ( "context" "fmt" "io" "io/ioutil" "log" "net" "net/http" "time" ) var handlersMap = make(map[string]http.HandlerFunc) func f1 阅读全文
posted @ 2019-02-18 20:03 yvhqbat 阅读(1371) 评论(0) 推荐(0) 编辑
摘要: [TOC] 参考: "https://coreos.com/etcd/" "https://coreos.com/etcd/docs/latest/demo.html" "etcd v3命令和API" "etcdv3与etcdv2特性比较" 1. 集群搭建(启动脚本) 2. 基本操作 2.1 end 阅读全文
posted @ 2019-01-12 21:09 yvhqbat 阅读(2073) 评论(0) 推荐(0) 编辑