<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shigemk2</author_name>
  <author_url>https://blog.hatena.ne.jp/shigemk2/</author_url>
  <blog_title>by shigemk2</blog_title>
  <blog_url>https://www.shigemk2.com/</blog_url>
  <categories>
    <anon>Docker</anon>
  </categories>
  <description>cpuはcpu-sharesで、dockerコンテナのCPU配分の重みのようなもの。 タスク定義でcpuを定義するとdocker run --cpu-sharesが動く タスク定義パラメータのドキュメント、英語の方が詳しい(というか日本語訳がたりてない) docs.docker.com docs.aws.amazon.com knowledge.sakura.ad.jp ドキュメントを見る感じだと、タスク定義のcpuの値はnullでも0でもよくてその場合はcpu-sharesが何も渡らない状態になる(Fargateだと設定は必須)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.shigemk2.com%2Fentry%2F2021%2F09%2F01%2F003437&quot; title=&quot;cpu-shares - by shigemk2&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-09-01 00:34:37</published>
  <title>cpu-shares</title>
  <type>rich</type>
  <url>https://www.shigemk2.com/entry/2021/09/01/003437</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
