<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yasudacloud</author_name>
  <author_url>https://blog.hatena.ne.jp/yasudacloud/</author_url>
  <blog_title>yasudacloudの日記</blog_title>
  <blog_url>https://yasuda.cloud/</blog_url>
  <categories>
  </categories>
  <description>Strapiの公式ドキュメントにProcess managerというページがありpm2を使った例が紹介されています。 docs.strapi.io ですがこの例のまま設定すると本番環境のホストサーバーのCPUが2つ以上ある場合、CPUリソースが無駄になります。 例えばコアが2つある場合 pm2 start --name=&quot;sample&quot; server.js -i 2 と実行するとパフォーマンスが向上します。 以下、一応検証した結果のまとめ セットアップ StrapiをローカルPCのDocker上で動作させます。 公式の手順に沿ってこんな感じでプロジェクトを作りました。 npx create-s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyasuda.cloud%2Fentry%2F2022%2F06%2F28%2F233949&quot; title=&quot;本番環境でStrapiをpm2で動かす - yasudacloudの日記&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>https://assets.yasuda.cloud/strapi_logo.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-06-28 23:39:49</published>
  <title>本番環境でStrapiをpm2で動かす</title>
  <type>rich</type>
  <url>https://yasuda.cloud/entry/2022/06/28/233949</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
