Home
Archives
Links icon
LinkedIn Twitter
About
🌐
English Português
  • Etcd Operation

    Dec 6, 2022 etcd golang

    磁盘 The output reports whether the disk is fast enough to host etcd by comparing the 99th percentile of the fsync metric captured from the run to see if it is less than 10 ms. [输出报告磁盘是否足够快以托管 etcd,方法是比较从运行中捕获的 fsync 指标的第 99 个百分位,看它是否小于 10 毫秒。] Because etcd replicates the requests among all the members, its performance …

    Read More
  • Golang memory

    Jun 16, 2021 Golang

    Insert Lead paragraph here. go_memstats_heap_idle_bytes : 申请但是未分配的堆内存或者回收了的堆内存(空闲)字节数,runtime持有,可提供堆内存的快速分配 go_memstats_heap_inuse_bytes:正在使用的堆内存字节数 以上两者之和,大致相当于服务占用内存量 runtime中和内存使用情况相关的结构体为runtime.MemStats,这个结构定义了golang运行过程中所有内存相关的信息 go_gc_duration_seconds:持续时间秒 go_gc_duration_seconds_sum:gc-持续时间-秒数- …

    Read More
  • Liveness and Readiness Probes

    Jan 4, 2021 k8s

    You (probably) need liveness and readiness probes One of the most common questions I get as a consultant is, “What is the difference between a liveness and a readiness probe?” The next most frequent question is, “Which one does my application need?” Anyone who has tried Duck Duck Go-ing these questions knows that they …

    Read More
  • K8s Design Patterns

    Jan 4, 2021 k8s

    Top 10 must-know Kubernetes design patterns Here are the must-know top 10 design patterns for beginners synthesized from the Kubernetes Patterns book. Getting familiar with these patterns will help you understand foundational Kubernetes concepts, which in turn will help you in discussions and when designing …

    Read More
  • Kubesphere in Openshift

    Sep 27, 2020 kubesphere openshift

    kubesphere in openshift 1oc adm policy add-scc-to-user privileged system:serviceaccount:kubesphere-system:ks-installer 2 3### 4oc adm policy add-scc-to-user anyuid system:serviceaccount:kubesphere-system:redis-ha-haproxy 5oc adm policy add-scc-to-user anyuid system:serviceaccount:kubesphere-system:redis-ha 6oc adm …

    Read More
  • Operator Framework

    Sep 9, 2020 openshift k8s

    Documentation Docs can be found on the Operator SDK website. Overview This project is a component of the Operator Framework, an open source toolkit to manage Kubernetes native applications, called Operators, in an effective, automated, and scalable way. Read more in the introduction blog post. Operators make it easy to …

    Read More
  • Godebug Gc

    Sep 9, 2020 golang

    什么是 GC 在计算机科学中,垃圾回收(GC)是一种自动管理内存的机制,垃圾回收器会去尝试回收程序不再使用的对象及其占用的内存。而最早 John McCarthy 在 1959 年左右发明了垃圾回收,以简化 Lisp 中的手动内存管理的机制(来自 wikipedia)。 为什么要 GC 手动管理内存挺麻烦,管错或者管漏内存也很糟糕,将会直接导致程序不稳定(持续泄露)甚至直接崩溃。 GC 带来的问题 硬要说会带来什么问题的话,也就数大家最关注的 Stop The World(STW),STW 代指在执行某个垃圾回收算法的某个阶段时,需要将整个应用程序暂停去处理 GC 相关的工作事项。例如: 行为 会不会 STW 为什么 …

    Read More
  • Godebug Sched

    Sep 9, 2020 golang

    让 Go 更强大的原因之一莫过于它的 GODEBUG 工具,GODEBUG 的设置可以让 Go 程序在运行时输出调试信息,可以根据你的要求很直观的看到你想要的调度器或垃圾回收等详细信息,并且还不需要加装其它的插件,非常方便,今天我们将先讲解 GODEBUG 的调度器相关内容,希望对你有所帮助。 不过在开始前,没接触过的小伙伴得先补补如下前置知识,便于更好的了解调试器输出的信息内容。 前置知识 Go scheduler 的主要功能是针对在处理器上运行的 OS 线程分发可运行的 Goroutine,而我们一提到调度器,就离不开三个经常被提到的缩写,分别是: G:Goroutine,实际上我们每次调用 go func …

    Read More
  • Go Tool Trace

    Sep 9, 2020 golang

    在 Go 中有许许多多的分析工具,在之前我有写过一篇 《Golang 大杀器之性能剖析 PProf》 来介绍 PProf,如果有小伙伴感兴趣可以去我博客看看。 但单单使用 PProf 有时候不一定足够完整,因为在真实的程序中还包含许多的隐藏动作,例如 Goroutine 在执行时会做哪些操作?执行/阻塞了多长时间?在什么时候阻止?在哪里被阻止的?谁又锁/解锁了它们?GC 是怎么影响到 Goroutine 的执行的?这些东西用 PProf 是很难分析出来的,但如果你又想知道上述的答案的话,你可以用本文的主角 go tool trace 来打开新世界的大门。目录如下: 初步了解 1import ( 2 "os" 3 …

    Read More
  • Go Tool Pprof

    Sep 9, 2020 golang

    想做性能分析 PProf 想要进行性能优化,首先瞩目在 Go 自身提供的工具链来作为分析依据,本文将带你学习、使用 Go 后花园,涉及如下: runtime/pprof:采集程序(非 Server)的运行数据进行分析 net/http/pprof:采集 HTTP Server 的运行时数据进行分析 是什么 pprof 是用于可视化和分析性能分析数据的工具 pprof 以 profile.proto 读取分析样本的集合,并生成报告以可视化并帮助分析数据(支持文本和图形报告) profile.proto 是一个 Protocol Buffer v3 的描述文件,它描述了一组 callstack 和 symbolization 信息, …

    Read More
    • ««
    • «
    • 1
    • 2
    • »
    • »»

litsky

Technologist, perpetual student, teacher, continual incremental improvement.
Read More

Featured Posts

  • Etcd Operation
  • Golang memory
  • Liveness and Readiness Probes
  • K8s Design Patterns
  • Kubesphere in Openshift
  • Operator Framework
  • Godebug Gc
  • Godebug Sched

Recent Posts

  • Etcd Operation
  • Golang memory
  • Liveness and Readiness Probes
  • K8s Design Patterns
  • Kubesphere in Openshift
  • Operator Framework
  • Godebug Gc
  • Godebug Sched

Categories

TECHNOLOGY 12 K8S 1 SYNTAX 1 THEMES 1

Series

THEMES-GUIDE 1

Tags

GOLANG 6 K8S 6 OPENSHIFT 3 ETCD 2 MARKDOWN 2 CSS 1 EMOJI 1 FEATURED 1 HTML 1 INDEX 1 KUBESPHERE 1 PRIVACY 1 PROMETHEUS 1 SHORTCODES 1
All Tags
CSS1 EMOJI1 ETCD2 FEATURED1 GOLANG6 HTML1 INDEX1 K8S6 KUBESPHERE1 MARKDOWN2 OPENSHIFT3 PRIVACY1 PROMETHEUS1 SHORTCODES1 TEXT1 THEMES1
[A~Z][0~9]

Copyright © 2025 CLARITY. All Rights Reserved