会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
过去的我
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
···
20
下一页
2022年7月31日
logstash配置解析nginx日志常用操作
摘要: 我用的是filebeat, input { beats { port => 5783 } } filter { json { source => "message" } } output { elasticsearch { hosts => [ "xxx:9200","xxxxx:9200" ] i
阅读全文
posted @ 2022-07-31 13:56 过去的我
阅读(477)
评论(0)
推荐(0)
2022年7月2日
华为云ecs,evs打标签
摘要: 背景是由于界面上不支持批量打标签,我们机器又比较多,华为云ui很卡(个人猜测是因为他每次都返回全量数据导致),体验非常差,他们有个tms标签管理服务,但是不支持各种排序,筛选,数据量一大,没法搞,所以还是自己api实现吧。 过程其实还是简单的,我们是定义project,每个project基本上都是同
阅读全文
posted @ 2022-07-02 08:56 过去的我
阅读(227)
评论(0)
推荐(0)
2022年4月23日
yaml简单模板
摘要: type Host struct { HostName string `yaml:"host"` Addr string `yaml:"ip"` } type Hosts []Host func (bs *Hosts) Read(filename string) error { f, err :=
阅读全文
posted @ 2022-04-23 11:47 过去的我
阅读(220)
评论(0)
推荐(0)
2022年3月15日
污点和容忍度taint tolerations
摘要: taint tolerations
阅读全文
posted @ 2022-03-15 09:35 过去的我
阅读(162)
评论(0)
推荐(0)
2021年12月4日
salt centos6 repo
摘要: https://archive.repo.saltproject.io/yum/redhat/6/x86_64/ 2015.5/ 2015.8/ 2016.11/ 2016.3/ 2017.7/ 2018.3/ 2019.2/ 3000/ archive/ latest/ 2021-08-05 21
阅读全文
posted @ 2021-12-04 17:33 过去的我
阅读(53)
评论(0)
推荐(0)
2021年11月20日
ansible处理一些逻辑请求思路
摘要: ansible处理一些逻辑请求思路 我发现ansible处理一些没有模块能用的那种带逻辑判断的任务,比较难处理。比如说做swap这种, - stat: path=/data/swap register: s 然后再判断s 是否存在 - shell: dd if=/dev/zero of=/eastm
阅读全文
posted @ 2021-11-20 19:20 过去的我
阅读(117)
评论(0)
推荐(0)
2021年8月15日
nginx logging to syslog using filebeat
摘要: nginx logging to syslog using filebeat 全文 http://nginx.org/en/docs/syslog.html error_log 和 access_log指令都支持把日志通过syslog发出去。这边稍微记录一下我的实践。比较简单。毕竟机器多了,一台台登
阅读全文
posted @ 2021-08-15 15:26 过去的我
阅读(198)
评论(0)
推荐(0)
2021年7月18日
nginx反向代理小结
摘要: 还挺好用的,分2种,一种是原本支持的7层代理,http或者https ,另一种是后面支持的tcp,udp代理 1. 7层代理 主要是这个 https://nginx.org/en/docs/http/ngx_http_proxy_module.html location / { proxy_pass
阅读全文
posted @ 2021-07-18 14:37 过去的我
阅读(73)
评论(0)
推荐(0)
2021年4月5日
use application gateway to expose aks service over http/https
摘要: application gateway, aks ,ingress
阅读全文
posted @ 2021-04-05 16:28 过去的我
阅读(235)
评论(0)
推荐(0)
2021年2月19日
quicksort和第k小元素问题
摘要: quicksort和第k小元素问题 1. 超好用的模板 int partition(int a[],int l,int r){ // 这里i 是l-1 ,不会越界,因为下面是++i, i会先加。j也会先减,因为是以右边的元素作为划分点。 int i = l-1, j=r; int v = a[r];
阅读全文
posted @ 2021-02-19 20:01 过去的我
阅读(67)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
···
20
下一页
公告