上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: 1、加扩展 #lua wget http://luajit.org/download/LuaJIT-2.0.5.tar.gz tar -zxvf LuaJIT-2.0.5.tar.gz cd LuaJIT-2.0.5 make && make install PREFIX=/usr/local/Lu 阅读全文
posted @ 2022-06-27 18:48 腐汝 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 发现线上有大量499的请求,然后看见有的499的请求body_bytes_sent 为0,所以就此情况查看一番。 复现场景:192.168.60.128 上面请求192.168.60.150的机器,150上的应用接口执行时间30秒,128上面的超时时间2秒,此时nginx返回了499,body_by 阅读全文
posted @ 2022-06-17 17:39 腐汝 阅读(1766) 评论(0) 推荐(0) 编辑
摘要: 1、根据已有内核参数调整 net.core.somaxconn = 1024 net.core.netdev_max_backlog = 1024 net.ipv4.tcp_max_syn_backlog = 1024 2、nginx backlog listen 80 backlog=512; l 阅读全文
posted @ 2022-06-16 11:09 腐汝 阅读(202) 评论(0) 推荐(0) 编辑
摘要: app1: apiVersion: apps/v1 kind: Deployment metadata: name: my-nginx-2 spec: selector: matchLabels: run: my-nginx-2 replicas: 1 template: metadata: lab 阅读全文
posted @ 2022-06-02 14:33 腐汝 阅读(202) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash dd=18 date_time=`date -d "$dd days ago" +%F` file_name=app-${date_time} log_dir=/opt/logs/ label=xxx namespace=xxx pod_name_list=($(/usr/b 阅读全文
posted @ 2022-05-31 17:53 腐汝 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 因为k8s集群版本太低,升级版本太麻烦,所以就通过脚本监控了。 #!/bin/bash declare -A gbdict #将AWK内容转成数组 array=($(/usr/local/bin/crictl stats|grep -v CONTAINER|awk '{if($4 ~ "GB")pr 阅读全文
posted @ 2022-05-30 18:02 腐汝 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 网站参考: https://sourcemaking.com/design_patterns/strategy https://refactoringguru.cn/design-patterns/strategy/python/example#lang-features 代码参考: """ Def 阅读全文
posted @ 2022-05-19 10:14 腐汝 阅读(23) 评论(0) 推荐(0) 编辑
摘要: 搞来搞去又搞回来了。。。 可以参考一下:https://www.runoob.com/w3cnote/python-yield-used-analysis.html def main(seq): n = len(seq) for i in range(n): yield seq[i], seq[(i 阅读全文
posted @ 2022-05-18 23:11 腐汝 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 一、网安检测,需要我们整改 1)iframe 点击劫持,只允许同源的域名使用iframe。 2) 高版本的浏览器通过csp的方式来加非同源的白名单。 测试: <!DOCTYPE html> <html> <head lang="en"> <meta charset="UTF-8" > <title> 阅读全文
posted @ 2022-05-17 23:25 腐汝 阅读(1034) 评论(0) 推荐(0) 编辑
摘要: 控制 Egress 流量任务展示了如何配置 Istio 以允许网格内部的应用程序访问外部 HTTP 和 HTTPS 服务,但那个任务实际上是通过 sidecar 直接调用的外部服务。而这个示例会展示如何配置 Istio 以通过专用的 egress gateway 服务间接调用外部服务。 Istio 阅读全文
posted @ 2022-04-04 23:34 腐汝 阅读(340) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页