上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 257 下一页
摘要: package hostsimport ( "bufio" "errors" "fmt" "io" "net" "os" "strings" "github.com/labring/sealos/pkg/utils/file" "github.com/labring/sealos/pkg/utils 阅读全文
posted @ 2023-01-13 14:43 技术颜良 阅读(297) 评论(0) 推荐(0)
摘要: 前言 随着时间的推移,语言爱好者已经构建和共享了许多 Go 框架和库。这些包执行不同的功能,从开发微服务到制作 discord 机器人,一直到构建 Web 应用程序!在本文中,我将尝试让您熟悉一些有用的方法,这些方法是我在尝试使用这种有趣的新编程语言学习和构建应用程序时发现的。 这绝不是一个详尽的列 阅读全文
posted @ 2023-01-13 09:01 技术颜良 阅读(151) 评论(0) 推荐(0)
摘要: /*Copyright The Helm Authors.Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the Li 阅读全文
posted @ 2023-01-11 14:12 技术颜良 阅读(88) 评论(0) 推荐(0)
摘要: 事件背景 因为 k8s 中采用大量的异步机制、以及多种对象关系设计上的解耦,当应用实例数 增加/删除、或者应用版本发生变化触发滚动升级时,系统并不能保证应用相关的 service、ingress 配置总是及时能完成刷新。在一些情况下,往往只是新的 Pod 完成自身初始化,系统尚未完成 Endpoin 阅读全文
posted @ 2023-01-10 07:30 技术颜良 阅读(490) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2023-01-08 20:08 技术颜良 阅读(26) 评论(0) 推荐(0)
摘要: go-zero 是一个集成了各种工程实践的 web 和 rpc 框架。通过弹性设计保障了大并发服务端的稳定性,并经受了充分的实战检验(好未来-晓黑板)。 go-zero 包含极简的 API 定义和生成工具 goctl(go control),可以根据定义的 api 文件一键生成 Go, iOS, A 阅读全文
posted @ 2022-12-27 11:50 技术颜良 阅读(353) 评论(0) 推荐(0)
摘要: 大家好,我是小林。 之前有位读者面字节被问到两个很经典的 TCP 问题: 第一个问题:服务端大量处于 TIME_WAIT 状态连接的原因。 第二个问题:服务端大量处于 CLOSE_WAIT 状态连接的原因。 这两个问题在面试中很常问,主要也是因为在工作中也很常遇到这个问题。 这次,我们就来聊聊这两个 阅读全文
posted @ 2022-12-26 08:44 技术颜良 阅读(4531) 评论(0) 推荐(0)
摘要: 简介 https://blog.csdn.net/weixin_46618592/article/details/125570527 就在上周,Go 发布了 GO1.16 版本,此次更新带来了几个新特性,如 embed 原生支持,macos M1 处理器的支持,默认开启 go modules 等等。 阅读全文
posted @ 2022-12-22 11:30 技术颜良 阅读(144) 评论(0) 推荐(0)
摘要: https://github.com/gookit/gcli/blob/master/interact/steps.go package interactimport ( "context" "fmt")// StepHandler for steps runtype StepHandler fun 阅读全文
posted @ 2022-12-13 16:12 技术颜良 阅读(38) 评论(0) 推荐(0)
摘要: 创建企业微信应用 注册企业微信:访问https://work.weixin.qq.com/,注册企业,随便填,不需要认证创建应用 创建告警配置 vim /usr/local/prometheus-2.1/rule2.yml groups: - name: cluster rules: - alert 阅读全文
posted @ 2022-12-13 11:02 技术颜良 阅读(356) 评论(0) 推荐(0)
上一页 1 ··· 87 88 89 90 91 92 93 94 95 ··· 257 下一页