SRE类别订阅
centos7部署mongodb分片集群4.0.11
先配hosts 172.16.0.13 shard01 172.16.0.14 shard02 17… 继续阅读 centos7部署mongodb分片集群4.0.11
mongodb加索引不锁库
执行 db.collection.ensureIndex({key:1},{background: … 继续阅读 mongodb加索引不锁库
mysql主从报错1146
要使用slave-skip-errors=all或者slave-skip-errors=1146参数… 继续阅读 mysql主从报错1146
gitlab备份
git用户执行! 备份 gitlab-rake gitlab:backup:create cron … 继续阅读 gitlab备份
/var/log/messages监控脚本
#!/bin/bash #Set the variable which equal to zero … 继续阅读 /var/log/messages监控脚本
Could not execute Delete_rows event on table mysql.__firewall_rules__; Can’t find record in ‘__firewall_rules__’, Error_code: 1032; handler error HA_ERR_KEY_NOT_FOUND; the event’s master log mysql-bin.000228, end_log_pos 30423413
mongodb批量删除记录
db.getCollection(‘test’).find({“userid”:{:[62,63]}… 继续阅读 mongodb批量删除记录
Kubernetes发布策略
微服务部署方案对比 https://blog.sklinux.com/posts/devops/%E… 继续阅读 Kubernetes发布策略
用azcopy工具上传目录到azure blob
下载安装 yum install -y libunwind wget -O azcopy.tar.g… 继续阅读 用azcopy工具上传目录到azure blob
商用SSL实现nginx双向认证
#test.com.ca-bundle 是发布商提供的CA bundle openssl x509 … 继续阅读 商用SSL实现nginx双向认证
/usr/libexec/grepconf.sh: line 5: grep: command not found
[root@usdt01 ~]# source /etc/profile bash: tty: co… 继续阅读 /usr/libexec/grepconf.sh: line 5: grep: command not found
证书的ca-bundle文件
ca-bundle.crt 文件存储了各大证书颁发证的根证书交叉文件。curl 访问https网站时… 继续阅读 证书的ca-bundle文件
nginx代理webscoket
nginx配置,server域: location ^~/ws { proxy_pass http:… 继续阅读 nginx代理webscoket
nginx日志接入logstash
input { file { type => “log” path => “/usr/l… 继续阅读 nginx日志接入logstash
mongodb模糊查询
#mysql: select * from student where name like ’%te… 继续阅读 mongodb模糊查询
RocketMQ延迟消息的配置与使用
在brocker的配置文件加入 messageDelayLevel=1s 5s 10s 15s 20… 继续阅读 RocketMQ延迟消息的配置与使用
eureka注册中心配置高可用
eureka启动时增加两个参数: –eureka.client.register-with-eur… 继续阅读 eureka注册中心配置高可用
Eureka Server不剔除已失效节点
eureka端配置: eureka.server.enable-self-preservation … 继续阅读 Eureka Server不剔除已失效节点
mongodb单集合备份恢复
单个collection备份: mongoexport -h dbhost -d dbname -c… 继续阅读 mongodb单集合备份恢复