This commit is contained in:
Teiva Harsanyi 2025-03-11 20:25:19 +01:00
parent efc8756ad0
commit b632c41d91
9 changed files with 23 additions and 19 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 84 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 76 KiB

After

Width:  |  Height:  |  Size: 84 KiB

View file

@ -5254,6 +5254,10 @@ the use case. However, we should see the two options as complementary. </p>
<p>By default, <abbr title="The variable defines the limit of OS threads in charge of executing user-level code simultaneously">GOMAXPROCS</abbr> is set to the number of OS-apparent logical CPU cores.</p>
<p>When running some Go code inside Docker and Kubernetes, we must know that Go isn't <abbr title="Completely Fair Scheduler">CFS</abbr>-aware (<a href="https://github.com/golang/go/issues/33803">github.com/golang/go/issues/33803</a>). Therefore, <abbr title="The variable defines the limit of OS threads in charge of executing user-level code simultaneously">GOMAXPROCS</abbr> isn't automatically set to the value of <code>spec.containers.resources.limits.cpu</code> (see <a href="https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/">Kubernetes Resource Management for Pods and Containers</a>); instead, it's set to the number of logical cores on the host machine. The main implication is that it can lead to an increased tail latency in some specific situations.</p>
<p>One solution is to rely on <a href="https://github.com/uber-go/automaxprocs">uber-go/automaxprocs</a> that automatically set <code>GOMAXPROCS</code> to match the Linux container CPU quota.</p>
<details class="warning" open="open">
<summary>Warning</summary>
<p>automaxprocs does not work for workloads running in AWS ECS <a href="https://github.com/uber-go/automaxprocs/issues/66">issue #66</a>. Use <a href="https://github.com/rdforte/gomaxecs">rdforte/gomaxecs</a> instead.</p>
</details>
<h2 id="community">Community</h2>
<p>Thanks to all the contributors:</p>
<p><a href="https://contrib.rocks/image?repo=teivah/100-go-mistakes">

View file

@ -3348,7 +3348,7 @@
<summary>The Coder Cafe</summary>
<p>もし私の本を楽しんでいただけたなら、私の最新プロジェクトにもご興味があるかもしれません。<a href="https://thecoder.cafe?rd=100go.co/ja">The Coder Cafe</a>は、コーダー向けの日刊ニュースレターです。</p>
<blockquote>
<p>Feeling overwhelmed by the endless stream of tech content? At The Coder Cafe, we serve one essential concept for coders daily. Written by a senior software engineer at Google, it's perfectly brewed for your morning coffee, helping you grow your skills deeply.</p>
<p>Feeling overwhelmed by the endless stream of tech content? At The Coder Cafe, we serve one essential concept for coders. Written by a senior software engineer at Google, it's perfectly brewed for your morning coffee, helping you grow your skills deeply.</p>
</blockquote>
<p><center><a href="https://thecoder.cafe?rd=100go.co/ja"><img src="../img/thecodercafe.png" alt="" style="width:480px;height:240px;"></a></center></p>
</details>

View file

@ -3414,7 +3414,7 @@
<summary>The Coder Cafe</summary>
<p>Se você gostou do meu livro, talvez se interesse pelo meu novo projeto: <a href="https://thecoder.cafe?rd=100go.co/pt-br">The Coder Cafe</a>, uma newsletter diária para programadores.</p>
<blockquote>
<p>Feeling overwhelmed by the endless stream of tech content? At The Coder Cafe, we serve one essential concept for coders daily. Written by a senior software engineer at Google, it's perfectly brewed for your morning coffee, helping you grow your skills deeply.</p>
<p>Feeling overwhelmed by the endless stream of tech content? At The Coder Cafe, we serve one essential concept for coders. Written by a senior software engineer at Google, it's perfectly brewed for your morning coffee, helping you grow your skills deeply.</p>
</blockquote>
<p><center><a href="https://thecoder.cafe?rd=100go.co/pt-br"><img src="../img/thecodercafe.png" alt="" style="width:480px;height:240px;"></a></center></p>
</details>

File diff suppressed because one or more lines are too long

View file

@ -2,77 +2,77 @@
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://100go.co/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/20-slice/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/28-maps-memory-leaks/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/5-interface-pollution/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/56-concurrency-faster/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/89-benchmarks/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/9-generics/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/92-false-sharing/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/98-profiling-execution-tracing/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/book/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/chapter-1/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/external/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/ja/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/pt-br/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://100go.co/zh/</loc>
<lastmod>2025-03-10</lastmod>
<lastmod>2025-03-11</lastmod>
<changefreq>daily</changefreq>
</url>
</urlset>

Binary file not shown.

View file

@ -3168,7 +3168,7 @@
<summary>The Coder Cafe</summary>
<p>如果您喜欢我的书,您可能会对我的最新项目感兴趣:<a href="https://thecoder.cafe?rd=100go.co/zh">The Coder Cafe</a>,这是一个为程序员提供的每日简报。</p>
<blockquote>
<p>Feeling overwhelmed by the endless stream of tech content? At The Coder Cafe, we serve one essential concept for coders daily. Written by a senior software engineer at Google, it's perfectly brewed for your morning coffee, helping you grow your skills deeply.</p>
<p>Feeling overwhelmed by the endless stream of tech content? At The Coder Cafe, we serve one essential concept for coders. Written by a senior software engineer at Google, it's perfectly brewed for your morning coffee, helping you grow your skills deeply.</p>
</blockquote>
<p><center><a href="https://thecoder.cafe?rd=100go.co/zh"><img src="../img/thecodercafe.png" alt="" style="width:480px;height:240px;"></a></center></p>
</details>