{"id":993,"date":"2023-02-10T10:53:54","date_gmt":"2023-10-14T09:12:10","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/"},"modified":"2025-08-01T04:07:04","modified_gmt":"2025-07-31T19:07:04","slug":"%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/","title":{"rendered":"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5"},"content":{"rendered":"<p>\u8457\u8005\u306f\u3001\u5bc4\u4ed8\u30d7\u30ed\u30b0\u30e9\u30e0\u300cWrite for Donations\u300d\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001The Apache Software Foundation\u3068Free and Open Source Fund\u3092\u5bc4\u4ed8\u306e\u53d7\u53d6\u5148\u3068\u3057\u3066\u9078\u3073\u307e\u3057\u305f\u3002<\/p>\n<h3>\u30a4\u30f3\u30c8\u30ed\u30c0\u30af\u30b7\u30e7\u30f3<\/h3>\n<p>\u30de\u30b9\u30c8\u30c9\u30f3\u306f\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u306e\u30bb\u30eb\u30d5\u30db\u30b9\u30c8\u578b\u30bd\u30fc\u30b7\u30e3\u30eb\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u3059\u3002<br \/>\n\u30de\u30b9\u30c8\u30c9\u30f3\u306f\u30d5\u30a7\u30c7\u30ec\u30fc\u30c6\u30c3\u30c9\u3055\u308c\u3066\u304a\u308a\u3001\u8907\u6570\u306e\u30de\u30b9\u30c8\u30c9\u30f3\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u304c\u76f8\u4e92\u904b\u7528\u3067\u304d\u308b\u305f\u3081\u3001\u7570\u306a\u308b\u30b5\u30fc\u30d0\u30fc\u306e\u30e6\u30fc\u30b6\u30fc\u540c\u58eb\u304c\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u53d6\u308a\u5408\u3063\u3066\u30d5\u30a7\u30c7\u30a3\u30d0\u30fc\u30b9\u3068\u3044\u3046\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\n\u30d5\u30a7\u30c7\u30a3\u30d0\u30fc\u30b9\u306fActivityPub\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066\u304a\u4e92\u3044\u306b\u901a\u4fe1\u3059\u308b\u76f8\u4e92\u63a5\u7d9a\u3055\u308c\u305f\u30b5\u30fc\u30d0\u30fc\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u3067\u3059\u3002<\/p>\n<p>Mastodon\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u6025\u901f\u306b\u6210\u9577\u3059\u308b\u306b\u3064\u308c\u3066\u3001\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u8ca0\u8377\u3082\u5897\u3048\u3066\u3044\u307e\u3059\u3002\u904e\u53bb1\u5e74\u9593\u3001\u30d4\u30fc\u30af\u6642\u306e\u30e6\u30fc\u30b6\u30fc\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u306b\u3088\u308a\u3001Mastodon\u30b5\u30fc\u30d0\u30fc\u304c\u30c0\u30a6\u30f3\u3057\u3066\u3057\u307e\u3046\u4e8b\u4f8b\u304c\u6570\u591a\u304f\u767a\u751f\u3057\u307e\u3057\u305f\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u6025\u5897\u306b\u3088\u308bMastodon\u30b5\u30fc\u30d0\u30fc\u306e\u30c0\u30a6\u30f3\u3092\u9632\u3050\u305f\u3081\u306b\u306f\u3001\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Mastodon components\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656440d8daa94e2bdf7ac080\/4-0.png\" alt=\"Mastodon Architecture Non-Transparent\" \/><\/div>\n<p>\u6b21\u306b\u793a\u3059\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u307e\u3059\uff081\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306e\u307f\uff09:<br \/>\n\u30aa\u30d7\u30b7\u30e7\u30f3\u3068\u3057\u3066\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u9759\u7684\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u5927\u5e45\u306b\u5411\u4e0a\u3057\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u8ca0\u8377\u304c\u8efd\u6e1b\u3067\u304d\u307e\u3059\u3002\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306e\u5411\u4e0a\u306f\u306a\u3044\u3082\u306e\u306e\u3001ElasticSearch\u3092\u4f7f\u7528\u3059\u308c\u3070\u5168\u6587\u691c\u7d22\u304c\u53ef\u80fd\u306b\u306a\u308a\u3001LibreTranslate\u3092\u5229\u7528\u3059\u308c\u3070\u30b5\u30fc\u30d0\u30fc\u304c\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u81ea\u52d5\u7684\u306b\u7ffb\u8a33\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u5c11\u3057\u3060\u3051\u4fbf\u5229\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1aMastodon\u306e\u30b5\u30fc\u30d3\u30b9\u306f\u30c7\u30fc\u30bf\u30b9\u30c8\u30ec\u30fc\u30b8\uff08Redis\u3068PostgreSQL\uff09\u3092\u901a\u3058\u3066\u306e\u307f\u901a\u4fe1\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5206\u6563\u8a2d\u5b9a\u306b\u304a\u3044\u3066\u5927\u304d\u306a\u67d4\u8edf\u6027\u304c\u63d0\u4f9b\u3055\u308c\u307e\u3059\u304c\u3001\u9069\u5207\u306a\u8a2d\u5b9a\u306a\u3057\u306b\u5358\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u8907\u6570\u306e\u30de\u30b7\u30f3\u306b\u5206\u6563\u3055\u305b\u308b\u3060\u3051\u3067\u306f\u3001\u671b\u307e\u3057\u3044\u6027\u80fd\u5411\u4e0a\u306f\u5f97\u3089\u308c\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u3042\u306a\u305f\u306e\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306b\u304a\u3051\u308b\u7570\u306a\u308b\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u6280\u8853\u306b\u3064\u3044\u3066\u5b66\u3073\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>Increasing the database resources and available connections<\/li>\n<li>Splitting Sidekiq queues into multiple processes<\/li>\n<li>Configuring threads and resources for each Sidekiq queue<\/li>\n<li>Adding object storage to unload Web service<\/li>\n<li>Increasing threads and processes of Web service<\/li>\n<\/ul>\n<p>Mastodon\u30b5\u30fc\u30d0\u30fc\u306e\u62e1\u5f35\u3092\u8a08\u753b\u3057\u3066\u3044\u3066\u3001\u30a2\u30af\u30c6\u30a3\u30d6\u306a\u30e6\u30fc\u30b6\u30fc\u306e\u9700\u8981\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u5834\u5408\u3001\u5168\u3066\u306e\u8a18\u4e8b\u3092\u78ba\u8a8d\u3057\u3066\u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<br \/>\n\u4e00\u65b9\u3067\u3001\u7279\u5b9a\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u7bc0\u306b\u76f4\u63a5\u79fb\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u57fa\u672c\u7684\u306a\u30eb\u30fc\u30eb\u306f\u3001Mastodon\u306e\u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u5404\u30de\u30b7\u30f3\u306e\u5e73\u5747\u8ca0\u8377\u3092\u7d0460-70\uff05\u306b\u4fdd\u3064\u3053\u3068\u3067\u3059\u3002\u6642\u306b\u306f\u3001\u9069\u5207\u306a\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u304c\u4f4e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3084\u4f4e\u3044\u5e73\u5747\u8ca0\u8377\u3092\u5f15\u304d\u8d77\u3053\u3059\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ee5\u4e0b\u306e\u5404\u7bc0\u306b\u306f\u3001\u305d\u306e\u3088\u3046\u306a\u72b6\u6cc1\u3092\u691c\u51fa\u3059\u308b\u305f\u3081\u306e\u75c7\u72b6\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a \u3053\u306e\u8a18\u4e8b\u306b\u306f\u3001systemd \u30b5\u30fc\u30d3\u30b9 (\u305f\u3068\u3048\u3070 Mastodon vServer 1-Click) \u4e0a\u3067\u5b9f\u884c\u3055\u308c\u308b Mastodon \u30b5\u30fc\u30d0\u30fc\u306e\u4f8b\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u4ed6\u306e\u7a2e\u985e\u306e Mastodon \u30bb\u30c3\u30c8\u30a2\u30c3\u30d7 (Docker\u3001K8s \u306a\u3069) \u3092\u3054\u5229\u7528\u306e\u5834\u5408\u306f\u3001\u5bfe\u5fdc\u3059\u308b\u69cb\u6210\u65b9\u6cd5\u3092\u3054\u691c\u8a0e\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<h2>\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b<\/h2>\n<p>PostgreSQL\u306f\u3001\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u4e3b\u8981\u306a\u771f\u5b9f\u306e\u60c5\u5831\u6e90\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u8cc7\u683c\u60c5\u5831\u3001\u30c8\u30a5\u30fc\u30c8\u3001\u30d6\u30fc\u30b9\u30c8\u3001\u30e6\u30fc\u30b6\u30fc\u95a2\u4fc2\u306a\u3069\u304c\u3059\u3079\u3066\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u78ba\u4fdd\u3057\u3001\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3092\u4f5c\u308b\u3053\u3068\u306f\u3001\u6700\u3082\u91cd\u8981\u306a\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u30de\u30b9\u30c8\u30c9\u30f3\u306f\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3078\u306e\u81a8\u5927\u306a\u6570\u306e\u63a5\u7d9a\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u63a5\u7d9a\u304c\u4e0d\u8db3\u3059\u308b\u3068\u3001Sidekiq\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u304c\u4f4e\u4e0b\u3057\u3001\u30d5\u30a3\u30fc\u30c9\u306e\u66f4\u65b0\u304c\u6570\u6642\u9593\u9045\u308c\u3001\u5168\u4f53\u7684\u306a\u9045\u3055\u304c\u751f\u3058\u3001\u30b5\u30fc\u30d0\u30fc\u81ea\u4f53\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u306a\u304f\u306a\u308b\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u5fc5\u8981\u306a\u63a5\u7d9a\u6570\u3092\u8a08\u7b97\u3057\u3001\u305d\u308c\u306b\u5fdc\u3058\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u4f59\u5206\u306a\u30ea\u30bd\u30fc\u30b9\u3092\u5fc5\u8981\u3068\u305b\u305a\u306b\u3001\u63a5\u7d9a\u304c\u8db3\u308a\u306a\u304f\u306a\u308b\u3053\u3068\u3092\u9632\u304e\u3001\u5168\u3066\u306eMastodon\u30b5\u30fc\u30d3\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u308b\u3053\u3068\u3092\u9632\u304e\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-info\">\n<p class=\"post-conf-desc\">Info<\/p>\n<div>\u60c5\u5831\uff1a\u3042\u306a\u305f\u306eMastodon\u30b5\u30fc\u30d0\u30fc\u306b\u5fc5\u8981\u306a\u63a5\u7d9a\u6570\u306f\u3001PostgreSQL\u306emax_connections\u5909\u6570\u3092\u7d76\u5bfe\u306b\u8d85\u3048\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002\u307e\u305f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u7af6\u5408\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001max_connections\u306f\u3067\u304d\u308b\u3060\u3051\u5c11\u306a\u304f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u3042\u306a\u305f\u306e\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306b\u5fc5\u8981\u306a\u7dcf\u63a5\u7d9a\u6570\u3092\u8a08\u7b97\u3059\u308b\u306b\u306f\u3001\u5404\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3088\u3063\u3066\u5fc5\u8981\u306a\u63a5\u7d9a\u6570\u3092\u8a08\u7b97\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>For every Web service instance, the required connections are MAX_THREADS multiplied by WEB_CONCURRENCY.<\/li>\n<li>For every StreamingAPI instance, the required connections are the STREAMING_CLUSTER_NUM multiplied by the DB_POOL.<\/li>\n<li>For every Sidekiq instance, the required connections equal the DB_POOL.<\/li>\n<\/ul>\n<div class=\"post-conf-info\">\n<p class=\"post-conf-desc\">Info<\/p>\n<div>\u60c5\u5831\uff1a\u4e0a\u8a18\u306e\u3059\u3079\u3066\u306e\u5909\u6570\u306f\u3001\u5bfe\u5fdc\u3059\u308b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u74b0\u5883\u3067\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u8a18\u4e8b\u3067\u306f\u3001\u3053\u3053\u306b\u30ea\u30b9\u30c8\u3055\u308c\u3066\u3044\u308b\u3059\u3079\u3066\u306e\u5909\u6570\u3068\u5171\u306b\u4f5c\u696d\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u305d\u308c\u3089\u306e\u6570\u5024\u3092\u5408\u8a08\u3057\u3066\u3001\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u7528\u306b20\u3064\u306e\u63a5\u7d9a\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u304cmax_connections\u306e\u5024\u3067\u3059\u3002<\/p>\n<div class=\"post-conf-info\">\n<p class=\"post-conf-desc\">Info<\/p>\n<div>\u60c5\u5831\uff1aMastodon\u3092\u30b9\u30b1\u30fc\u30eb\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u9069\u5207\u306a\u8a2d\u5b9a\u304c\u6700\u512a\u5148\u3067\u3059\u304c\u3001max_connections\u306e\u6570\u3092\u6c7a\u5b9a\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u307e\u305a\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u3069\u306e\u3088\u3046\u306b\u30b9\u30b1\u30fc\u30eb\u3055\u305b\u308b\u304b\u3092\u77e5\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u30b9\u30b1\u30fc\u30eb\u3055\u305b\u308b\u8a08\u753b\u3092\u4f5c\u6210\u3057\u305f\u5f8c\uff08\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\uff09\u3001\u3053\u3053\u306b\u623b\u3063\u3066max_connections\u306e\u8a08\u7b97\u3092\u5b8c\u4e86\u3055\u305b\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u6700\u5927\u63a5\u7d9a\u6570\u306e\u5024\u304c\u308f\u304b\u3063\u305f\u306e\u3067\u3001\u305d\u308c\u3092\u4f7f\u3063\u3066\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>PGTune\u3068\u3044\u3046\u30b5\u30fc\u30d3\u30b9\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u8a2d\u5b9a\u3092\u751f\u6210\u3059\u308b\u306e\u306b\u826f\u3044\u65b9\u6cd5\u3067\u3059\u3002<br \/>\nPGTune\u306e\u30da\u30fc\u30b8\u3092\u958b\u304f\u3068\u3001\u5024\u3092\u5165\u529b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u8a2d\u5b9a\u30d5\u30a3\u30fc\u30eb\u30c9\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>DB Version: Specify here the version of PostgreSQL that your Mastodon server uses. You can find it by using this command on the machine running PostgreSQL:<\/li>\n<\/ul>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">pg_config <span class=\"token parameter variable\">&#8211;version<\/span><\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ul class=\"post-ul\">\n<li>OS Type: Operating system of the machine which runs PostgreSQL.<\/li>\n<li>DB Type: Type of workload your PostgreSQL will perform. In the case of Mastodon, choose Online Transaction Processing System (OLTP in the future) since Mastodon creates tons of connections.<\/li>\n<li>Total Memory (RAM): Amount of memory PostgreSQL will use. Try to allocate up to half of the physical memory of a machine, but if other services are running on the same machine &#8211; make sure not to exceed the total RAM. For example, on a machine with 8 GB of RAM and just PostgreSQL, we specify 4 GB in PGTune.<\/li>\n<li>Number of CPUs: Amount of CPU cores that PostgreSQL will use. Since OLTP is CPU bound, we highly recommend setting this number as high as the number of CPU threads your machine supports.<\/li>\n<li>Number of Connections: max_connections goes here.<\/li>\n<li>Data Storage: Type of data storage device on the machine which runs PostgreSQL.<\/li>\n<\/ul>\n<p>\u305f\u3068\u3048\u3070\u30018 GB\u306eRAM\u3092\u642d\u8f09\u3057\u305f\u30de\u30b7\u30f3\u3067\u30018\u30b9\u30ec\u30c3\u30c9\u3068\u6700\u5927\u63a5\u7d9a\u6570420\u306e\u8a2d\u5b9a\u306e\u5834\u5408\u3001\u914d\u7f6e\u306f\u6b21\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656440d8daa94e2bdf7ac080\/27-0.png\" alt=\"PGTune example\" \/><\/div>\n<p>\u300c\u751f\u6210\u300d\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u3001postgresl.conf \u30d5\u30a1\u30a4\u30eb\u306b\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u306e\u3042\u308b\u8a2d\u5b9a\u30d1\u30e9\u30e1\u30fc\u30bf\u304c\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>\u3042\u306a\u305f\u306ePostgreSQL\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30de\u30b7\u30f3\u3067\u3001postgresql.conf\u3092\u958b\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/postgresql\/<mark>major version of your PostgreSQL<\/mark>\/main\/postgresql.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305f\u3068\u3048\u3070\u3001PostgreSQL\u306e\u30d0\u30fc\u30b8\u30e7\u30f315.x\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u3053\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u5834\u6240\u306f\/etc\/postgresql\/15\/main\/postgresql.conf\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>\u6b21\u306b\u3001PGTune\u306b\u3088\u3063\u3066\u751f\u6210\u3055\u308c\u305f\u5404\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u3064\u3044\u3066\u3001postgresql.conf\u3067\u540c\u3058\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u691c\u7d22\u3057\u3001\u305d\u306e\u5024\u3092\u5909\u66f4\u3057\u307e\u3059\u3002nano\u3067\u306fCtrl+W\u3092\u4f7f\u7528\u3057\u3066\u691c\u7d22\u3057\u3001vi\/vim\u3067\u306fEsc+\/\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002postgresql.conf\u306b\u5b58\u5728\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u3069\u3053\u306b\u3067\u3082\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656440d8daa94e2bdf7ac080\/33-0.png\" alt=\"Example of searching parameter in postgresql.conf\" \/><\/div>\n<p>\u6700\u5f8c\u306b\u3001\u5909\u66f4\u3092\u9069\u7528\u3059\u308b\u305f\u3081\u306bPostgreSQL\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">service<\/span> postgressql restart<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001\u3042\u306a\u305f\u306fMastodon\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306bPostgreSQL\u3092\u8a2d\u5b9a\u3057\u3001\u65b0\u3057\u3044\u8a2d\u5b9a\u3092\u9069\u7528\u3059\u308b\u65b9\u6cd5\u3092\u77e5\u3063\u3066\u3044\u307e\u3059\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001max_connections\u3092\u8a08\u7b97\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u5909\u6570\u306e\u6b63\u78ba\u306a\u5024\u304c\u793a\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<h2>Sidekiq\u30ad\u30e5\u30fc\u306e\u5b8c\u74a7\u5316<\/h2>\n<p>Sidekiq\u306fRuby\u306e\u30b8\u30e7\u30d6\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u3067\u3042\u308a\u3001\u30ef\u30fc\u30ab\u30fc\u3067\u3059\u3002\u3053\u306e\u30c4\u30fc\u30eb\u306f\u3001\u6295\u7a3f\u306e\u30b5\u30fc\u30d0\u30fc\u9593\u4f1d\u64ad\u3001\u30ea\u30f3\u30af\u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u751f\u6210\u3001\u3044\u3044\u306d\u306e\u51e6\u7406\u306a\u3069\u3001\u30d0\u30c3\u30af\u30b0\u30e9\u30a6\u30f3\u30c9\u3067\u306e\u30b8\u30e7\u30d6\u5b9f\u884c\u3092\u62c5\u5f53\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>Sidekiq\u3067\u306f\u3001\u30b8\u30e7\u30d6\u306e\u30ad\u30e5\u30fc\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3068\u3057\u3066Redis\u3092\u4f7f\u7528\u3057\u3001\u30b8\u30e7\u30d6\u306e\u7d50\u679c\u3092\u4fdd\u5b58\u3059\u308b\u305f\u3081\u306bPostgreSQL\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002\u8907\u6570\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u63a5\u7d9a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\uff08\u30e6\u30fc\u30b6\u30fc\u304c\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u30d5\u30a9\u30ed\u30fc\u3057\u3066\u3044\u308b\u5834\u5408\uff09\u3001\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u30921\u3064\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u5225\u306e\u30b5\u30fc\u30d0\u30fc\u306b\u4f1d\u64ad\u3059\u308b\u305f\u3081\u306b\u591a\u304f\u306e\u30b8\u30e7\u30d6\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>Sidekiq\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306e\u75c7\u72b6\u306b\u306f\u3001\u30d5\u30a3\u30fc\u30c9\u306e\u66f4\u65b0\u306b\u304a\u3051\u308b\u9045\u5ef6\u304c\u9577\u304f\u306a\u308b\u3053\u3068\u3001\u8a70\u307e\u3063\u305fSidekiq\u30ad\u30e5\u30fc\u3001\u305d\u3057\u3066\u6301\u7d9a\u7684\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8ca0\u8377\u304c\u542b\u307e\u308c\u307e\u3059\u3002<\/p>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u5fc5\u8981\u306aSidekiq\u30ad\u30e5\u30fc\u306e\u30b5\u30a4\u30ba\u3068\u3001\u305d\u308c\u3092\u52d5\u4f5c\u3055\u305b\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u7269\u7406\u7684\u306a\u30de\u30b7\u30f3\u306e\u6570\u3092\u304a\u304a\u3088\u305d\u6c42\u3081\u307e\u3059\u3002<\/p>\n<p>\u30de\u30b9\u30c8\u30c9\u30f3\u306b\u306f\u3001Sidekiq\u306e\u8907\u6570\u306e\u30ad\u30e5\u30fc\u304c\u3042\u308a\u307e\u3059\u3002\u3057\u304b\u3057\u3001\u305d\u306e\u4e2d\u306b\u306f\u30ea\u30bd\u30fc\u30b9\u3092\u3088\u308a\u591a\u304f\u6d88\u8cbb\u3057\u3001CPU\u3092\u5b8c\u5168\u306b\u8ca0\u8377\u3055\u305b\u308b\u30ad\u30e5\u30fc\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u4ed6\u306e\u30ad\u30e5\u30fc\u306f\u307b\u3068\u3093\u3069\u8ca0\u8377\u3092\u3082\u305f\u3089\u3057\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u306e\u8868\u306b\u306f\u3001\u30de\u30b9\u30c8\u30c9\u30f3\u306b\u5fc5\u8981\u306a\u3059\u3079\u3066\u306e\u30ad\u30e5\u30fc\u3068\u305d\u306e\u30ea\u30bd\u30fc\u30b9\u306e\u512a\u5148\u5ea6\u304c\u8a18\u8f09\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30cf\u30a4\u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3\u306e\u30ad\u30e5\u30fc\u306f\u3001\u30ed\u30fc\u30d7\u30e9\u30a4\u30aa\u30ea\u30c6\u30a3\u3068\u6bd4\u8f03\u3057\u3066\u3088\u308a\u591a\u304f\u306eCPU\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<div>\n<div class=\"post-table\">\n<table>\n<thead>\n<tr>\n<th>Queue<\/th>\n<th>Priority<\/th>\n<th>Role<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>default<\/td>\n<td>Highest<\/td>\n<td>Handles all tasks that affect local users.<\/td>\n<\/tr>\n<tr>\n<td>ingress<\/td>\n<td>High<\/td>\n<td>Handles incoming remote activities. Lower priority than the default queue so local users still see their posts when the server is under load. Keep in mind, the <code>ingress<\/code> queue is highly CPU intense.<\/td>\n<\/tr>\n<tr>\n<td>push<\/td>\n<td>Medium<\/td>\n<td>Delivers payloads to other servers.<\/td>\n<\/tr>\n<tr>\n<td>pull<\/td>\n<td>Medium<\/td>\n<td>Handles tasks such as handling imports, backups, resolving threads, deleting users, and forwarding replies.<\/td>\n<\/tr>\n<tr>\n<td>mailers<\/td>\n<td>Low<\/td>\n<td>Delivers emails.<\/td>\n<\/tr>\n<tr>\n<td>scheduler<\/td>\n<td>Lowest<\/td>\n<td>Manages cron jobs such as refreshing trending hashtags and cleaning up logs.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/div>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a\uff1a\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30ad\u30e5\u30fc\u306f\u8907\u6570\u306e\u30d7\u30ed\u30bb\u30b9\u306b\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3057\u3066\u306f\u306a\u308a\u307e\u305b\u3093\u3002Mastodon\u30b5\u30fc\u30d0\u30fc\u3067\u306f\u3001\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u3092\u5b9f\u884c\u3059\u308b\u30d7\u30ed\u30bb\u30b9\u306f1\u3064\u3060\u3051\u5b58\u5728\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u4e0a\u8a18\u306e\u30c6\u30fc\u30d6\u30eb\u306f\u3001\u30de\u30b7\u30f3\u3092\u9069\u5207\u306b\u5272\u308a\u5f53\u3066\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u304c\u3001\u30ad\u30e5\u30fc\u81ea\u4f53\u306e\u8a2d\u5b9a\u306f\u3069\u3046\u3067\u3059\u304b\uff1f\u30ad\u30e5\u30fc\u306f\u3001\u52b9\u679c\u7684\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3067\u304d\u308b\u30a2\u30af\u30c6\u30a3\u30d6\u30e6\u30fc\u30b6\u30fc\u306e\u6570\u306b\u5236\u9650\u304c\u3042\u308a\u3001\u3053\u306e\u5236\u9650\u306f\u7279\u5b9a\u306e\u30ad\u30e5\u30fc\u304c\u6301\u3064\u30b9\u30ec\u30c3\u30c9\u6570\u306b\u95a2\u9023\u3057\u3066\u3044\u307e\u3059\u3002\u5272\u308a\u5f53\u3066\u3089\u308c\u305f\u30b9\u30ec\u30c3\u30c9\u6570\u304c\u591a\u3051\u308c\u3070\u3001\u7279\u5b9a\u306e\u30ad\u30e5\u30fc\u304c\u51e6\u7406\u3067\u304d\u308b\u30a2\u30af\u30c6\u30a3\u30d6\u30e6\u30fc\u30b6\u30fc\u3082\u591a\u304f\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001\u30ad\u30e5\u30fc\u306e\u7a2e\u985e\u306b\u3088\u3063\u3066\u3082\u3053\u306e\u5236\u9650\u306f\u5f71\u97ff\u3092\u53d7\u3051\u307e\u3059\u3002\u4e00\u90e8\u306e\u30ad\u30e5\u30fc\u306f\u3001\u4ed6\u306e\u30ad\u30e5\u30fc\u3068\u6bd4\u8f03\u3057\u3066\u540c\u3058\u6570\u306e\u30e6\u30fc\u30b6\u30fc\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306b\u3088\u308a\u5c11\u306a\u3044\u30b9\u30ec\u30c3\u30c9\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u3002\u3053\u306e\u591a\u6b21\u5143\u95a2\u4fc2\u306f\u3001\u4ee5\u4e0b\u306e\u30b0\u30e9\u30d5\u3067\u8aac\u660e\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Generic Sidekiq scaling pattern\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656440d8daa94e2bdf7ac080\/46-0.png\" alt=\"Mastodon Sidekiq Scaling Estimation\" \/><\/div>\n<p>\u30b5\u30fc\u30d0\u30fc\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306b\u3088\u3063\u3066\u3001\u30d7\u30c3\u30b7\u30e5\u30ad\u30e5\u30fc\u3084\u30d7\u30eb\u30ad\u30e5\u30fc\u306e\u512a\u5148\u9806\u4f4d\u306f\u7570\u306a\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u4ed6\u306e\u9023\u90a6\u3068\u9ad8\u5ea6\u306b\u9023\u643a\u3057\u3066\u3044\u308b\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u306e\u5834\u5408\u306f\u3001\u30d7\u30c3\u30b7\u30e5\u30ad\u30e5\u30fc\u306b\u512a\u5148\u5ea6\u3092\u4e0e\u3048\u308b\u3079\u304d\u3067\u3059\u3002\u4e00\u65b9\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u7279\u5b9a\u306e\u8208\u5473\u306e\u3042\u308b\u5730\u57df\u306b\u7279\u5316\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u306a\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u304c\u591a\u304f\u767a\u751f\u3059\u308b\u305f\u3081\u3001\u30d7\u30eb\u306b\u512a\u5148\u5ea6\u3092\u4e0e\u3048\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u7570\u306a\u308b\u30b5\u30fc\u30d0\u30fc\u306f\u7570\u306a\u308b\u4f7f\u7528\u30d1\u30bf\u30fc\u30f3\u3068\u8ca0\u8377\u5206\u6563\u3092\u6301\u3063\u3066\u3044\u307e\u3059\u3002\u4ed6\u306e\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u306e\u30e6\u30fc\u30b6\u30fc\u304c\u30e6\u30fc\u30b6\u30fc\u3092\u5fdc\u63f4\u3057\u305f\u308a\u3001\u597d\u610f\u3092\u793a\u3059\u53ef\u80fd\u6027\u3092\u5206\u6790\u3057\u3066\u3001\u81ea\u5206\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u4f7f\u7528\u30d1\u30bf\u30fc\u30f3\u3092\u4e88\u6e2c\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u4f8b\u3048\u3070\u3001\u3082\u3057\u3082\u3042\u306a\u305f\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u7279\u5b9a\u306e\u79d1\u5b66\u306e\u30c8\u30d4\u30c3\u30af\u3092\u30ab\u30d0\u30fc\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001\u3042\u306a\u305f\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u30e6\u30fc\u30b6\u30fc\u540c\u58eb\u304c\u4e3b\u306b\u30b3\u30df\u30e5\u30cb\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u53d6\u308b\u3067\u3057\u3087\u3046\u3002\u4e00\u65b9\u3067\u3001\u3082\u3057\u3082\u3042\u306a\u305f\u306e\u30b5\u30fc\u30d0\u30fc\u304c\u500b\u4eba\u306e\u653f\u6cbb\u30d6\u30ed\u30b0\u3067\u3042\u308b\u5834\u5408\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u540c\u58eb\u304c\u4ed6\u306e\u653f\u6cbb\u5bb6\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u53ef\u80fd\u6027\u304c\u9ad8\u304f\u306a\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002Mastodon\u306e\u7ba1\u7406\u8005\u3068\u3057\u3066\u3001\u81ea\u8eab\u306e\u30b5\u30fc\u30d0\u30fc\u306e\u8ca0\u8377\u3092\u76e3\u8996\u3057\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u9069\u5207\u306b\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Sidekiq parameters to resources relation\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656440d8daa94e2bdf7ac080\/50-0.png\" alt=\"Sidekiq parameters to resources relation\" \/><\/div>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a: \u4e00\u3064\u306eSidekiq\u30b5\u30fc\u30d3\u30b9\u306750\u30b9\u30ec\u30c3\u30c9\u4ee5\u4e0a\u306f\u4f7f\u7528\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u300260\u30b9\u30ec\u30c3\u30c9\u3092\u51e6\u7406\u3059\u308b\u5834\u5408\u306f\u3001\u305d\u308c\u305e\u308c30\u30b9\u30ec\u30c3\u30c9\u306e2\u3064\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u4f8b\u3048\u3070\u3001\u79c1\u305f\u3061\u306f\u30ed\u30fc\u30ab\u30eb\u30d5\u30a7\u30c7\u30ec\u30fc\u30b7\u30e7\u30f3\u306e\u307f\u3092\u4e3b\u306b\u5229\u7528\u3059\u308b\u30a2\u30af\u30c6\u30a3\u30d6\u30e6\u30fc\u30b6\u30fc\u304c15000\u4eba\u3044\u308b\u3068\u63a8\u5b9a\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u4e0a\u8a18\u306e\u30b0\u30e9\u30d5\u306b\u3088\u308c\u3070\u3001\u79c1\u305f\u3061\u306f\u4ee5\u4e0b\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>default: about 70 threads total, 2 services 35 threads each.<\/li>\n<li>ingress: about 50 threads total, 2 services 25 threads each.<\/li>\n<li>pull: about 40 threads total, 1 service with all 40 threads.<\/li>\n<li>push: about 30 threads total, 1 service with all 35 threads.<\/li>\n<li>mailer: about 20 threads total, 1 service with all 20 threads.<\/li>\n<li>scheduler: 5 threads total, 1 service with all 5 threads.<\/li>\n<\/ul>\n<p>\u79c1\u305f\u3061\u306e\u30e6\u30fc\u30b6\u30fc\u306f\u5916\u90e8\u9023\u643a\u3092\u3042\u307e\u308a\u4f7f\u3063\u3066\u3044\u306a\u3044\u305f\u3081\u3001\u79c1\u305f\u3061\u306f\u30d7\u30c3\u30b7\u30e5\u3067\u306f\u306a\u304f\u30d7\u30eb\u30ad\u30e5\u30fc\u306b\u512a\u5148\u5ea6\u3092\u7f6e\u304f\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30ad\u30e5\u30fc\u306f\u6700\u3082\u512a\u5148\u5ea6\u304c\u4f4e\u3044\u30ad\u30e5\u30fc\u306a\u306e\u3067\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30ad\u30e5\u30fc\u3068\u4e00\u7dd2\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u30ad\u30e5\u30fc\u306b\u306f\u5f71\u97ff\u3092\u4e0e\u3048\u305a\u3001\u5408\u8a08\u306770 + 5 = 75\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u5fc5\u8981\u3067\u3001\u304a\u304a\u3088\u305d8GB\u306eRAM\u304c\u5fc5\u8981\u3067\u3059\u3002\u30d8\u30d3\u30fc\u306a\u30ad\u30e5\u30fc\u304c1\u3064\u3060\u3051\u306a\u306e\u3067\u30014\u30b3\u30a28GB\u306e\u30de\u30b7\u30f3\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b0\u30ec\u30b9\u3068\u30e1\u30fc\u30e9\u30fc\u306f\u9ad8\u512a\u5148\u5ea6\u3068\u4f4e\u512a\u5148\u5ea6\u306e\u30ad\u30e5\u30fc\u3067\u3042\u308a\u3001\u5358\u4e00\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30ad\u30e5\u30fc\u3088\u308a\u3082\u5c11\u306a\u3044CPU\u30ea\u30bd\u30fc\u30b9\u3092\u5fc5\u8981\u3068\u3057\u307e\u3059\u304c\u3001\u4f9d\u7136\u3068\u3057\u30664\u30b3\u30a2\u306e\u30de\u30b7\u30f3\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u305d\u308c\u3089\u306e\u305f\u3081\u306b\u5fc5\u8981\u306a\u5408\u8a08\u30b9\u30ec\u30c3\u30c9\u6570\u306f25 + 20 = 45\u3067\u3001\u304a\u304a\u3088\u305d6GB\u306eRAM\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u30d7\u30eb\u30ad\u30e5\u30fc\u3068\u30d7\u30c3\u30b7\u30e5\u30ad\u30e5\u30fc\u306f\u3069\u3061\u3089\u3082\u4e2d\u7a0b\u5ea6\u306e\u512a\u5148\u5ea6\u3067\u3042\u308a\u3001\u30a4\u30f3\u30b0\u30ec\u30b9\u3084\u30e1\u30fc\u30e9\u30fc\u3088\u308a\u3082\u5c11\u3057CPU\u3092\u591a\u304f\u4f7f\u7528\u3057\u307e\u3059\u306e\u3067\u3001\u518d\u30734\u30b3\u30a2\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u5fc5\u8981\u306a\u30b9\u30ec\u30c3\u30c9\u6570\u306f40 + 30 = 70\u3067\u3001\u304a\u304a\u3088\u305d8GB\u306eRAM\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u8981\u7d04\u3059\u308b\u3068\u300115000\u4eba\u306e\u30a2\u30af\u30c6\u30a3\u30d6\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u5fdc\u3059\u308b\u305f\u3081\u306b\u3001Sidekiq\u306e\u8a2d\u5b9a\u306b\u306f\u5408\u8a08\u30673\u53f0\u306e\u30de\u30b7\u30f3\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>A 4c\/8GB machine to serve 2 services of the default queue with 35 threads each and 1 service of scheduler queue with 5 threads.<\/li>\n<li>A 4c\/8GB machine to serve 1 service of ingress queue with 50 threads and 1 service of mailer queue with 20 threads.<\/li>\n<li>A 4c\/6GB machine to serve 1 service of pull queue with 40 threads and 1 service of push queue with 30 threads.<\/li>\n<\/ul>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u5fc5\u8981\u306a\u30b3\u30a2\u6570\u3092\u78ba\u5b9a\u3059\u308b\u6700\u3082\u826f\u3044\u65b9\u6cd5\u306f\u3001Sidekiq\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30de\u30b7\u30f3\u306e\u5e73\u5747\u8ca0\u8377\u3092\u89b3\u5bdf\u3059\u308b\u3053\u3068\u3067\u3059\u3002<br \/>\n\u5e73\u5747\u8ca0\u8377\u304c80\uff05\u3092\u8d85\u3048\u308b\u5834\u5408\u3001\u3088\u308a\u591a\u304f\u306eCPU\u30b3\u30a2\u304c\u5fc5\u8981\u3067\u3059\u3002\u3082\u3057\u30b3\u30a2\u6570\u304c\u3059\u3067\u306b\u5341\u5206\u306b\u591a\u3044\u5834\u5408\uff08\u305f\u3068\u3048\u30708\u30b3\u30a2\u4ee5\u4e0a\uff09\u3001\u540c\u3058\u69cb\u6210\u306e\u5225\u306e\u30de\u30b7\u30f3\u3092\u4f5c\u6210\u3057\u3066\u8ca0\u8377\u5206\u6563\u305b\u305a\u306b\u3001\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u306e\u5225\u306e\u6b21\u5143\u3092\u624b\u306b\u5165\u308c\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u30ad\u30e5\u30fc\u30922\u56de\u4ee5\u4e0a\u5b9f\u884c\u3057\u306a\u3044\u3088\u3046\u306b\u5fd8\u308c\u305a\u306b\u3002<\/div>\n<\/div>\n<h3>\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u306e\u305f\u3081\u306eSidekiq\u306e\u62e1\u5f35<\/h3>\n<p>\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30ea\u30bd\u30fc\u30b9\u3092\u6700\u5927\u9650\u306b\u6d3b\u7528\u3059\u308b\u305f\u3081\u306b\u306f\u3001Sidekiq\u306f\u9069\u5207\u306a\u6570\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u69cb\u6210\u3055\u308c\u3001\u30d7\u30ed\u30bb\u30b9\u30ec\u30d9\u30eb\u3067\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001Sidekiq\u30ad\u30e5\u30fc\u306e\u30b9\u30ec\u30c3\u30c9\u6570\u3092\u6b63\u78ba\u306b\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u3084\u3001\u30b5\u30fc\u30d3\u30b9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u540c\u3058\u30de\u30b7\u30f3\u4e0a\u3067\u8907\u6570\u306e\u30ad\u30e5\u30fc\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u4ee5\u4e0b\u306e\u4f8b\u306f\u3001systemd\u30b5\u30fc\u30d3\u30b9\u306eExecStart\u307e\u305f\u306fDocker\u306e\u30b3\u30de\u30f3\u30c9\u30d5\u30a3\u30fc\u30eb\u30c9\u306b\u76f4\u63a5\u8a18\u8ff0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002Docker\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001Docker\u30d5\u30a1\u30a4\u30eb\u306e\u5909\u66f4\u5f8c\u306b\u30b3\u30f3\u30c6\u30ca\u3092\u518d\u30d3\u30eb\u30c9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<h4>\u5358\u4e00\u306eSidekiq\u30d7\u30ed\u30bb\u30b9\u3067\u4f7f\u7528\u3055\u308c\u308b\u30b9\u30ec\u30c3\u30c9\u6570\u3092\u5897\u3084\u3059<\/h4>\n<p>\u30b5\u30fc\u30d3\u30b9\u306f\u3001systemd\u304c\u7ba1\u7406\u3057\u3001\u30ed\u30b0\u3092\u8a18\u9332\u3057\u3001\u81ea\u52d5\u7684\u306b\u518d\u8d77\u52d5\u3059\u308b\u306a\u3069\u306e\u30ea\u30bd\u30fc\u30b9\u3067\u3059\u3002\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u3092\u30b5\u30fc\u30d3\u30b9\u306b\u30e9\u30c3\u30d4\u30f3\u30b0\u3059\u308b\u3053\u3068\u306f\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u5c55\u958b\u3059\u308b\u6700\u3082\u7c21\u5358\u306a\u65b9\u6cd5\u306e1\u3064\u3067\u3059\u3002Systemd\u30b5\u30fc\u30d3\u30b9\u306f\u3001Sidekiq\u30ad\u30e5\u30fc\u3092\u5b9f\u884c\u3059\u308b\u6700\u3082\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u3067\u3059\u3002<br \/>\nSidekiq\u30b5\u30fc\u30d3\u30b9\u306e\u5834\u6240\u306f\u3001Mastodon\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u30bf\u30a4\u30d7\u306b\u3088\u3063\u3066\u7570\u306a\u308a\u307e\u3059\u3002\u305f\u3068\u3048\u3070\u3001Mastodon vServer 1-Click\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001Sidekiq\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u6b21\u306e\u5834\u6240\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/etc\/systemd\/system\/mastodon-sidekiq.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300c\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u5148\u982d\u3092\u3055\u3063\u304f\u308a\u78ba\u8a8d\u3057\u307e\u3057\u3087\u3046\u3002\u300d<\/p>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-sidekiq\r\nAfter=network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=mastodon\r\nWorkingDirectory=\/home\/mastodon\/live\r\nEnvironment=\"RAILS_ENV=production\"\r\nEnvironment=\"DB_POOL=25\"\r\nEnvironment=\"MALLOC_ARENA_MAX=2\"\r\nEnvironment=\"LD_PRELOAD=libjemalloc.so\"\r\nExecStart=\/home\/mastodon\/.rbenv\/shims\/bundle exec sidekiq -c 25\r\n...\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u79c1\u9054\u306e\u6ce8\u610f\u306f\u3001\u7279\u306b\u300cExecStart\u300d\u3068\u300cEnvironment\u300d\u306e2\u3064\u306e\u5206\u91ce\u306b\u96c6\u4e2d\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u300cExecStart\u300d\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u306e\u958b\u59cb\u307e\u305f\u306f\u518d\u8d77\u52d5\u6642\u306b\u5b9f\u884c\u3055\u308c\u308b\u30b5\u30fc\u30d3\u30b9\u306e\u8d77\u70b9\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<br \/>\n\u300cEnvironment\u300d\u306f\u3001ExecStart\u306b\u6e21\u3055\u308c\u308b\u74b0\u5883\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u307e\u3059\u3002<\/p>\n<p>\u4e00\u3064\u306eSidekiq\u30d7\u30ed\u30bb\u30b9\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u306b\u306f\u3001Sidekiq\u304c\u4f7f\u7528\u3059\u308b\u30b9\u30ec\u30c3\u30c9\u306e\u6570\u3092\u5897\u3084\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u306e\u6570\u306f\u3001ExecStart\u30d5\u30a3\u30fc\u30eb\u30c9\u306e-c\u30d1\u30e9\u30e1\u30fc\u30bf\u3067\u5236\u5fa1\u3055\u308c\u307e\u3059\u3002-c\u30d1\u30e9\u30e1\u30fc\u30bf\u3068DB_POOL\u74b0\u5883\u5909\u6570\u3092\u540c\u671f\u3055\u305b\u308b\u3053\u3068\u3092\u5fd8\u308c\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<br \/>\n\u4f8b\u3048\u3070\u3001\u30b9\u30ec\u30c3\u30c9\u6570\u309245\u306b\u5897\u3084\u3057\u307e\u3059\u3002-c\u30d1\u30e9\u30e1\u30fc\u30bf\u3068DB_POOL\u306e\u5024\u3092\u5909\u66f4\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-sidekiq\r\nAfter=network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=mastodon\r\nWorkingDirectory=\/home\/mastodon\/live\r\nEnvironment=\"RAILS_ENV=production\"\r\nEnvironment=\"DB_POOL=<mark>40<\/mark>\"\r\nEnvironment=\"MALLOC_ARENA_MAX=2\"\r\nEnvironment=\"LD_PRELOAD=libjemalloc.so\"\r\nExecStart=\/home\/mastodon\/.rbenv\/shims\/bundle exec sidekiq -c <mark>40<\/mark>\r\n...\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<div class=\"post-conf-info\">\n<p class=\"post-conf-desc\">Info<\/p>\n<div>\u60c5\u5831\uff1aDB_POOL\u74b0\u5883\u5909\u6570\u306f\u5e38\u306b-c\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3068\u540c\u3058\u5024\uff08\u4e0a\u8a18\u4f8b\u3067\u306f40\uff09\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u5c0f\u3055\u304f\u3059\u308b\u3068\u3001Sidekiq\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u554f\u984c\u304c\u767a\u751f\u3057\u3001\u5927\u304d\u304f\u3059\u308b\u3068\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306b\u8ffd\u52a0\u8ca0\u8377\u304c\u304b\u304b\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u3092\u52a0\u3048\u305f\u5f8c\u306f\u3001\u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066Sidekiq\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl daemon-reload<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart mastodon-sidekiq.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306e\u5909\u66f4\u3092\u9069\u7528\u3059\u308b\u3053\u3068\u3067\u3001Sidekiq\u304c\u4f7f\u7528\u3059\u308b\u30b9\u30ec\u30c3\u30c9\u306e\u6570\u304c\u5897\u3048\u3001\u3088\u308a\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u3078\u306e\u5bfe\u5fdc\u304c\u53ef\u80fd\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h4>\u5358\u4e00\u306eSidekiq\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u7279\u5b9a\u306e\u30ad\u30e5\u30fc\u3092\u6307\u5b9a\u3059\u308b<\/h4>\n<p>\u6700\u521d\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u306eSidekiq\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u5206\u6790\u3057\u307e\u3057\u3087\u3046\u3002Mastodon vServer 1-Click\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001Sidekiq\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306f\u3053\u306e\u5834\u6240\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cat<\/span> \/etc\/systemd\/system\/mastodon-sidekiq.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3054\u5b58\u77e5\u306e\u901a\u308a\u3001\u30de\u30b9\u30c8\u30c9\u30f3\u306fSidekiq\u306e\u30c7\u30fc\u30bf\u3092\u8907\u6570\u306e\u30ad\u30e5\u30fc\u306b\u5206\u5272\u3057\u3066\u3044\u307e\u3059\u3002\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3067\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30ad\u30e5\u30fc\u304c\u660e\u793a\u7684\u306b\u6307\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-sidekiq\r\nAfter=network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=mastodon\r\nWorkingDirectory=\/home\/mastodon\/live\r\nEnvironment=\"RAILS_ENV=production\"\r\nEnvironment=\"DB_POOL=25\"\r\nEnvironment=\"MALLOC_ARENA_MAX=2\"\r\nEnvironment=\"LD_PRELOAD=libjemalloc.so\"\r\nExecStart=\/home\/mastodon\/.rbenv\/shims\/bundle exec sidekiq -c 25\r\n...\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u660e\u793a\u7684\u306a\u30ad\u30e5\u30fc\u304c\u306a\u3044\u5834\u5408\u3001Sidekiq\u306f\u3044\u304f\u3064\u304b\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u512a\u5148\u9806\u4f4d\u3067\u3059\u3079\u3066\u306e\u30ad\u30e5\u30fc\u3092\u51e6\u7406\u3057\u307e\u3059\u3002Sidekiq\u306e\u5358\u4e00\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u3059\u3079\u3066\u306e\u30ad\u30e5\u30fc\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306f\u3001\u30ea\u30bd\u30fc\u30b9\u3092\u591a\u304f\u6d88\u8cbb\u3059\u308b\u305f\u3081\u7406\u60f3\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<br \/>\n\u5b9f\u73fe\u3057\u305f\u3044\u306e\u306f\u3001Sidekiq\u306e\u30ad\u30e5\u30fc\u3092\u8907\u6570\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u5404\u30ad\u30e5\u30fc\u306e\u30b9\u30ec\u30c3\u30c9\u6570\u3092\u6b63\u78ba\u306b\u6307\u5b9a\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u3001\u8907\u6570\u306e\u30de\u30b7\u30f3\u3067\u7570\u306a\u308b\u30ad\u30e5\u30fc\u3092\u5b9f\u884c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<br \/>\n\u30c7\u30d5\u30a9\u30eb\u30c8\u306eSidekiq\u306e\u52d5\u4f5c\u3092\u4e0a\u66f8\u304d\u3059\u308b\u306b\u306f\u3001ExecStart\u30d5\u30a3\u30fc\u30eb\u30c9\u306b-q\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u8ffd\u52a0\u3059\u308b\u3060\u3051\u3067\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<p>\u4f8b\u3048\u3070\u3001Sidekiq\u306f\u5165\u53e3\u30ad\u30e5\u30fc\u306e\u307f\u3092\u51e6\u7406\u3059\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-sidekiq\r\nAfter=network.target\r\n\r\n[Service]\r\nType=simple\r\nUser=mastodon\r\nWorkingDirectory=\/home\/mastodon\/live\r\nEnvironment=\"RAILS_ENV=production\"\r\nEnvironment=\"DB_POOL=25\"\r\nEnvironment=\"MALLOC_ARENA_MAX=2\"\r\nEnvironment=\"LD_PRELOAD=libjemalloc.so\"\r\nExecStart=\/home\/mastodon\/.rbenv\/shims\/bundle exec sidekiq -c 25 <mark>-q ingress<\/mark>\r\n...\r\n\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u300c-q ingress\u300d\u3068\u6307\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001Sidekiq\u306b\u306f\u30a4\u30f3\u30b0\u30ec\u30b9\u30ad\u30e5\u30fc\u306e\u307f\u3092\u51e6\u7406\u3055\u305b\u3001\u4ed6\u306e\u30ad\u30e5\u30fc\u306f\u51e6\u7406\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a: \u4e0a\u8a18\u306e\u4f8b\u3067\u306f\u3001\u5165\u53e3\u4ee5\u5916\u306e\u3059\u3079\u3066\u306e\u30ad\u30e5\u30fc\u304c\u51e6\u7406\u3055\u308c\u306a\u304f\u306a\u308a\u3001Mastodon\u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u304f\u306a\u308a\u307e\u3059\u3002\u5c11\u306a\u304f\u3068\u3082\u5404\u30ad\u30e5\u30fc\u3092\u4e00\u5ea6\u30ab\u30d0\u30fc\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u306b\u306f\u3001\u30b7\u30f3\u30b0\u30eb\u30de\u30b7\u30f3\u4e0a\u3067\u8907\u6570\u306eSidekiq\u30b5\u30fc\u30d3\u30b9\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u306b\u95a2\u3059\u308b\u30ac\u30a4\u30c0\u30f3\u30b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/div>\n<\/div>\n<p>Sidekiq\u30b5\u30fc\u30d3\u30b9\u304c\u5358\u4e00\u306e\u30ad\u30e5\u30fc\u306e\u307f\u3092\u51e6\u7406\u3059\u308b\u3053\u3068\u306b\u306f\u3044\u304f\u3064\u304b\u306e\u5229\u70b9\u304c\u3042\u308a\u307e\u3059\u3002\u7279\u5b9a\u306e\u30ad\u30e5\u30fc\u306e\u30ed\u30b0\u3092\u51e6\u7406\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3059\u3057\u3001\u30ad\u30e5\u30fc\u3054\u3068\u306e\u7ba1\u7406\u3068\u30b9\u30ec\u30c3\u30c9\u5236\u5fa1\u304c\u53ef\u80fd\u3067\u3059\u3002\u307e\u305f\u3001\u7570\u306a\u308b\u30de\u30b7\u30f3\u4e0a\u3067\u7570\u306a\u308b\u30ad\u30e5\u30fc\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u3067\u5206\u6563\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u304c\u53ef\u80fd\u3068\u306a\u308a\u307e\u3059\u3002\u5168\u4f53\u7684\u306b\u306f\u3001Sidekiq\u30ad\u30e5\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u306b\u304a\u3044\u3066\u4e3b\u8981\u306a\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002<br \/>\n\u305f\u3060\u3057\u3001\u3059\u3079\u3066\u306e\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30ea\u30bd\u30fc\u30b9\u3092\u5358\u4e00\u306e\u30ad\u30e5\u30fc\u306b\u4e0e\u3048\u308b\u3053\u3068\u304c\u5e38\u306b\u52b9\u7387\u7684\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u305d\u306e\u305f\u3081\u3001\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u5358\u4e00\u306e\u30de\u30b7\u30f3\u4e0a\u3067\u8907\u6570\u306e\u30ad\u30e5\u30fc\u3092\u500b\u5225\u306b\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h4>\u30b7\u30f3\u30b0\u30eb\u30de\u30b7\u30f3\u4e0a\u3067\u8907\u6570\u306eSidekiq\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b<\/h4>\n<p>\u5358\u4e00\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3067\u306eSidekiq\u306e\u5b9f\u884c\u306f\u52b9\u7387\u7684\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u3055\u3089\u306bSidekiq\u3092\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u8907\u6570\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u540c\u6642\u306b\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<br \/>\nsystemd\u30b5\u30fc\u30d3\u30b9\u304cSidekiq\u3092\u5b9f\u884c\u3059\u308b\u6700\u3082\u4e00\u822c\u7684\u306a\u65b9\u6cd5\u3067\u3042\u308b\u305f\u3081\u3001\u5358\u4e00\u306e\u30de\u30b7\u30f3\u4e0a\u3067\u8907\u6570\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u5b9f\u884c\u3059\u308b\u305f\u3081\u306e\u30b5\u30fc\u30d3\u30b9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u4f5c\u6210\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u30011\u3064\u306e\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u65e2\u5b58\u306eSidekiq\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30d4\u30fc\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cp<\/span> \/etc\/systemd\/system\/mastodon-sidekiq.service \/etc\/systemd\/system\/mastodon-sidekiq-template.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001\u65e2\u5b58\u306eSidekiq\u30b5\u30fc\u30d3\u30b9\u306e\u30b3\u30d4\u30fc\u3067\u3042\u308bmastodon-sidekiq-template.service\u3068\u3044\u3046\u65b0\u3057\u3044\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u307e\u3059\u3002<br \/>\n\u3053\u306e\u30b3\u30d4\u30fc\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306b\u5909\u63db\u3059\u308b\u305f\u3081\u306b\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u6307\u5b9a\u5b50\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001\u7279\u5b9a\u306e\u4e8c\u3064\u306e\u6307\u5b9a\u5b50\u3001%i\u3068%j\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>%i is the instance name. For instantiated services, this is the string between the first \u201c@\u201d character and the type suffix.<\/li>\n<li>%j is the final component of the prefix. This is the string between the last \u201c-\u201d and the end of the prefix name.<\/li>\n<\/ul>\n<p>\u308f\u304b\u308a\u306b\u304f\u3044\u3067\u3059\u304b\uff1f\u305d\u308c\u3067\u306f\u3001\u5b9f\u8df5\u7684\u306a\u90e8\u5206\u306b\u98db\u3073\u8fbc\u3093\u3067\u3001\u3088\u308a\u7406\u89e3\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u7de8\u96c6\u3059\u308b\u305f\u3081\u306b\u65b0\u3057\u3044\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/systemd\/system\/mastodon-sidekiq-template.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u5024\u3092\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u6307\u5b9a\u5b50\u306b\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul class=\"post-ul\">\n<li>The description field should contain %j specifier for easier tracking and maintenance of service.<\/li>\n<li>DB_POOL environment variable should be equal to %i specifier.<\/li>\n<li>-c parameter in ExecStart should be equal to %i<\/li>\n<li>-q parameter in ExecStart should be equal to %j<\/li>\n<\/ul>\n<div>\/etc\/systemd\/system\/mastodon-sidekiq-template.service\u306e\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u3067\u8868\u73fe\u3057\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-sidekiq-%j-queue\r\nAfter=network.target\r\n\r\n[Service]\r\n...\r\nEnvironment=\"DB_POOL=%i\"\r\nEnvironment=\"MALLOC_ARENA_MAX=2\"\r\nEnvironment=\"LD_PRELOAD=libjemalloc.so\"\r\nExecStart=\/home\/mastodon\/.rbenv\/shims\/bundle exec sidekiq -c %i -q %j\r\n...\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u63a8\u6e2c\u3059\u308b\u901a\u308a\u3001%i\u6307\u5b9a\u5b50\u306fSidekiq\u306e\u30b9\u30ec\u30c3\u30c9\u6570\u3092\u542b\u3093\u3067\u304a\u308a\u3001%j\u6307\u5b9a\u5b50\u306fSidekiq\u30ad\u30e5\u30fc\u306e\u540d\u524d\u3092\u542b\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"Substitution of specifiers from the service file\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656440d8daa94e2bdf7ac080\/100-0.png\" alt=\"Substitution of specifiers from the service file\" \/><\/div>\n<p>\u3053\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u4f7f\u7528\u3057\u3066\u3001\u671b\u3080Sidekiq\u306e\u8a2d\u5b9a\u306b\u5408\u308f\u305b\u305f\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001\u3053\u306e\u30de\u30b7\u30f3\u3067\u5b9f\u884c\u3057\u305f\u3044\u30ad\u30e5\u30fc\u3092\u6307\u5b9a\u3059\u308b\u305f\u3081\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u30b3\u30d4\u30fc\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u305f\u3068\u3048\u3070\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30ad\u30e5\u30fc\u3068\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u30ad\u30e5\u30fc\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cp<\/span> \/etc\/systemd\/system\/mastodon-sidekiq-template.service \/etc\/systemd\/system\/mastodon-sidekiq-default@.service<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">cp<\/span> \/etc\/systemd\/system\/mastodon-sidekiq-template.service \/etc\/systemd\/system\/mastodon-sidekiq-scheduler@.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30ad\u30e5\u30fc\u306e\u540d\u524d\u306b\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3001\u30a4\u30f3\u30b0\u30ec\u30b9\u3001\u30d7\u30c3\u30b7\u30e5\u3001\u30d7\u30eb\u3001\u30e1\u30fc\u30e9\u30fc\u3001\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30fc\u306e\u3044\u305a\u308c\u304b\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>@\u30b7\u30f3\u30dc\u30eb\u306e\u5f8c\u306b\u4f55\u3082\u6307\u5b9a\u3057\u306a\u304b\u3063\u305f\u3053\u3068\u306b\u6c17\u3065\u3044\u305f\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002\u305d\u308c\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u81ea\u4f53\u3092\u6709\u52b9\u306b\u3059\u308b\u969b\u306b\u3001\u3053\u306e\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u6307\u5b9a\u3059\u308b\u304b\u3089\u3067\u3059\u3002<br \/>\n\u65b0\u3057\u3044\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u5316\u3059\u308b\u305f\u3081\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30ad\u30e5\u30fc\u306b20\u30b9\u30ec\u30c3\u30c9\u3001\u30b9\u30b1\u30b8\u30e5\u30fc\u30e9\u30ad\u30e5\u30fc\u306b5\u30b9\u30ec\u30c3\u30c9\u3092\u4f7f\u7528\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> mastodon-sidekiq-default@<mark>20<\/mark>.service<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> mastodon-sidekiq-scheduler@<mark>5<\/mark>.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u65b0\u3057\u3044\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u306b\u3057\u305f\u3089\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3059\u3079\u3066\u3092\u4e00\u5ea6\u306b\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start mastodon-sidekiq*<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u6bb5\u968e\u3067\u306f\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306e\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u305d\u308c\u3092\u4f7f\u7528\u3057\u3066\u7570\u306a\u308b\u30ad\u30e5\u30fc\u3068\u30b9\u30ec\u30c3\u30c9\u3092\u6301\u3064\u8907\u6570\u306eSidekiq\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u306b\u6210\u529f\u3057\u307e\u3057\u305f\u3002<\/p>\n<h4>\u5b9f\u884c\u4e2d\u306e\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u3002<\/h4>\n<p>\u4f8b\u3048\u3070\u3001\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3067\u4f5c\u6210\u3055\u308c\u305f\u30c7\u30d5\u30a9\u30eb\u30c8\u306e\u30b5\u30fc\u30d3\u30b9\u306e\u30b9\u30ec\u30c3\u30c9\u6570\u309220\u304b\u308940\u306b\u5909\u66f4\u3057\u305f\u3044\u5834\u5408\u306f\u3001\u307e\u305a\u65e2\u5b58\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u7121\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl stop mastodon-sidekiq-default.service<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl disable mastodon-sidekiq-default@<mark>20<\/mark>.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u505c\u6b62\u30b3\u30de\u30f3\u30c9\u3067\u306f\u3001\u30b9\u30ec\u30c3\u30c9\u6570\u306e\u307f\u3092\u6307\u5b9a\u3057\u306a\u304c\u3089\u3082\u3001\u7121\u52b9\u5316\u30b3\u30de\u30f3\u30c9\u3067\u306f\u305d\u306e\u70b9\u306b\u6ce8\u76ee\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u53e4\u3044\u30d7\u30c3\u30b7\u30e5\u30b5\u30fc\u30d3\u30b9\u3092\u7121\u52b9\u306b\u3057\u305f\u5f8c\u3001\u65b0\u3057\u3044\u30b5\u30fc\u30d3\u30b9\u309220\u3067\u306f\u306a\u304f40\u306e\u30b9\u30ec\u30c3\u30c9\u3067\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> mastodon-sidekiq-default@40.service<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start mastodon-sidekiq-default.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u6642\u70b9\u3067\u3001\u65e2\u5b58\u306esystemd\u30b5\u30fc\u30d3\u30b9\u306e\u30b9\u30ec\u30c3\u30c9\u6570\u3092\u6b63\u5e38\u306b\u5909\u66f4\u3057\u307e\u3057\u305f\u3002<\/p>\n<h4>\u540c\u3058Sidekiq\u30ad\u30e5\u30fc\u306e\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3059\u308b<\/h4>\n<p>\u3054\u5b58\u77e5\u306e\u901a\u308a\u3001Sidekiq\u306e1\u3064\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306f50\u30b9\u30ec\u30c3\u30c9\u4ee5\u4e0a\u8a2d\u5b9a\u3057\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u7279\u5b9a\u306e\u30ad\u30e5\u30fc\u306b60\u30b9\u30ec\u30c3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\u3001\u305d\u308c\u30922\u3064\u306e\u30b5\u30fc\u30d3\u30b9\u306b\u5206\u5272\u3057\u3066\u3001\u305d\u308c\u305e\u308c30\u30b9\u30ec\u30c3\u30c9\u306b\u8a2d\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u305d\u308c\u3092\u9054\u6210\u3059\u308b\u305f\u3081\u306b\u3001\u540c\u3058\u30ad\u30e5\u30fc\u3067\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u8907\u6570\u56de\u30b3\u30d4\u30fc\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u3001\u5404\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u8b58\u5225\u3059\u308b\u305f\u3081\u306e\u5358\u7d14\u306a\u756a\u53f7\u3067\u3059\u3002<br \/>\n\u521d\u671f\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u3092\u8907\u6570\u56de\u30b3\u30d4\u30fc\u3057\u3001\u540c\u3058\u30ad\u30e5\u30fc\u304c\u7e70\u308a\u8fd4\u3055\u308c\u308b\u305f\u3073\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u5897\u3084\u3057\u307e\u3059\u3002\u4f8b\u3048\u3070\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30ad\u30e5\u30fc\u306e\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u30922\u3064\u4f5c\u6210\u3059\u308b\u5834\u5408\uff1a<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">cp<\/span> \/etc\/systemd\/system\/mastodon-sidekiq-template.service \/etc\/systemd\/system\/mastodon-sidekiq-1-default@.service<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">cp<\/span> \/etc\/systemd\/system\/mastodon-sidekiq-template.service \/etc\/systemd\/system\/mastodon-sidekiq-2-default@.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a\uff1a\/etc\/systemd\/system\/mastodon-sidekiq-default-2@service\u306e\u540d\u524d\u306e\u5f8c\u306b\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3092\u8ffd\u52a0\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u306b\u3088\u3063\u3066\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u306f2\u3092\u30ad\u30e5\u30fc\u306e\u540d\u524d\u3068\u3057\u3066\u51e6\u7406\u3057\u3001\u5fc5\u305a\u5931\u6557\u3057\u307e\u3059\u3002\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306f\u30ad\u30e5\u30fc\u306e\u540d\u524d\u306e\u524d\u306b\u306e\u307f\u633f\u5165\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u3067\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u30ad\u30e5\u30fc\u306e\u6700\u521d\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306f40\u30b9\u30ec\u30c3\u30c9\u3092\u6709\u52b9\u306b\u3057\u30012\u756a\u76ee\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u306f60\u30b9\u30ec\u30c3\u30c9\u3092\u6709\u52b9\u306b\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> mastodon-sidekiq-1-default@<mark>40<\/mark>.service<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl <span class=\"token builtin class-name\">enable<\/span> mastodon-sidekiq-2-default@<mark>60<\/mark>.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u7d42\u7684\u306b\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u6709\u52b9\u306b\u3057\u305f\u5f8c\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3059\u3079\u3066\u3092\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl start mastodon-sidekiq*<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306e\u6642\u70b9\u3067\u306f\u3001\u540c\u3058\u30ad\u30e5\u30fc\u306e\u8907\u6570\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u3092\u6b63\u3057\u304f\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001\u5927\u91cf\u306e\u30b9\u30ec\u30c3\u30c9\u3092\u9069\u5207\u306b\u5206\u5272\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u8907\u6570\u306e\u65b9\u6cd5\u3092\u5b66\u3093\u3067\u3001Sidekiq\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u72b6\u6cc1\u306b\u3088\u3063\u3066\u306f\u3001\u5358\u4e00\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30b5\u30fc\u30d3\u30b9\u3060\u3051\u3067\u5341\u5206\u306a\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u4ed6\u306e\u5834\u5408\u3067\u306f1\u53f0\u306e\u30de\u30b7\u30f3\u4e0a\u3067\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u5fc5\u8981\u306b\u306a\u308b\u3053\u3068\u3082\u3042\u308a\u307e\u3059\u3057\u3001\u8907\u6570\u306e\u30de\u30b7\u30f3\u4e0a\u3067\u540c\u3058\u30ad\u30e5\u30fc\u306e\u8907\u6570\u306e\u30b5\u30fc\u30d3\u30b9\u304c\u5fc5\u8981\u306a\u5834\u5408\u3082\u3042\u308a\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30b1\u30fc\u30b9\u306f\u3001\u30b5\u30dd\u30fc\u30c8\u3057\u305f\u3044\u30a2\u30af\u30c6\u30a3\u30d6\u30e6\u30fc\u30b6\u30fc\u306e\u6570\u306b\u4f9d\u5b58\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u8ffd\u52a0\u3059\u308b\u3002 (Obujekuto sutor\u0113ji o tsuika suru.)<\/h2>\n<p>\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u3001\u307e\u305f\u306f\u5358\u306b\u30d0\u30b1\u30c3\u30c8\u3068\u547c\u3070\u308c\u308b\u3082\u306e\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30b5\u30fc\u30d0\u30fc\u306b\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3057\u305f\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u5199\u771f\u3001\u52d5\u753b\u3001GIF\u3001\u97f3\u58f0\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u542b\u307f\u307e\u3059\u3002<\/p>\n<p>\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u3078\u306e\u79fb\u884c\u306f\u3001\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u901f\u5ea6\u3068\u5bb9\u91cf\u3092\u5411\u4e0a\u3055\u305b\u308b\u3060\u3051\u3067\u306a\u304f\u3001Mastodon \u30b5\u30fc\u30d3\u30b9\u3078\u306e\u8ca0\u8377\u3092\u8efd\u6e1b\u3057\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u307b\u3068\u3093\u3069\u306e\u30af\u30e9\u30a6\u30c9\u63d0\u4f9b\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u306f\u3001CDN \u3082\u63d0\u4f9b\u3057\u3066\u304a\u308a\u3001\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u3092\u30e6\u30fc\u30b6\u30fc\u306b\u3088\u308a\u9ad8\u901f\u306b\u914d\u4fe1\u3057\u307e\u3059\u3002<\/p>\n<div>\u6ce8\u610f\uff1aMastodon\u306fS3\u4e92\u63db\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30d7\u30ed\u30d0\u30a4\u30c0\u306fS3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3001S3\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u8cc7\u683c\u60c5\u5831\u306e\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u63d0\u4f9b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/div>\n<p>\u3082\u3057Mastodon\u306e\u521d\u671f\u8a2d\u5b9a\u4e2d\u306b\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u306e\u8a2d\u5b9a\u3092\u3046\u3063\u304b\u308a\u898b\u843d\u3068\u3057\u3066\u3057\u307e\u3063\u305f\u5834\u5408\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u306fWeb\u30b5\u30fc\u30d3\u30b9\u306e\u307f\u3067\u4f7f\u7528\u3055\u308c\u308b\u305f\u3081\u3001\u5fc5\u8981\u306a\u5909\u6570\u3092\u76f4\u63a5Web\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30de\u30b7\u30f3\u306e\u8a2d\u5b9a\u306b\u8ffd\u52a0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u6ce8\u610f\uff1a\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u5909\u66f4\u3059\u308b\u3068\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u65e2\u5b58\u306e\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u304c\u3059\u3079\u3066\u5931\u308f\u308c\u307e\u3059\u3002<\/div>\n<\/div>\n<p>Web\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u4e2d\u306e\u30de\u30b7\u30f3\u3067\u3001\u304a\u597d\u307f\u306e\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u30fc\u3067.env.production\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002Mastodon vServer 1-Click\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001env.production\u306f\/home\/mastodon\/live\u306b\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> .env.production<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30cf\u30a4\u30e9\u30a4\u30c8\u3055\u308c\u305f\u30c6\u30ad\u30b9\u30c8\u3092\u81ea\u5206\u306e\u60c5\u5831\u3067\u7f6e\u304d\u63db\u3048\u3066\u3001\u4ee5\u4e0b\u306e\u884c\u3092.env.production\u30d5\u30a1\u30a4\u30eb\u306e\u4efb\u610f\u306e\u5834\u6240\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u308c\u3089\u306e\u5909\u6570\u304c\u3059\u3067\u306b\u5b58\u5728\u3059\u308b\u5834\u5408\u306f\u3001\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u304c\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u4e2d\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u304c\u3001\u5024\u304c\u8aa4\u3063\u3066\u3044\u308b\u5834\u5408\u3067\u3082\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<div>.env.production<br \/>\n\u74b0\u5883\u5909\u6570.production<\/div>\n<pre class=\"post-pre\"><code>...\r\nS3_ENABLED=true\r\nS3_PROTOCOL=https\r\nS3_BUCKET=<mark>your bucket name<\/mark>\r\nS3_REGION=<mark>your bucket region<\/mark>\r\nS3_HOSTNAME=<mark>your bucket hostname<\/mark>\r\nS3_ENDPOINT=<mark>your bucket endpoint<\/mark>\r\nAWS_ACCESS_KEY_ID=<mark>your bucket secret ID<\/mark>\r\nAWS_SECRET_ACCESS_KEY=<mark>your bucket secret key<\/mark>\r\n...\r\n<\/code><\/pre>\n<p>\u4e0a\u8a18\u306e\u5909\u6570\u306fS3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u63a5\u7d9a\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u3092\u8868\u3057\u3066\u3044\u307e\u3059\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u304b\u3089\u306e\u63a5\u7d9a\u30d1\u30e9\u30e1\u30fc\u30bf\u30fc\u306b\u306f\u6b63\u3057\u3044S3\u30de\u30c3\u30d4\u30f3\u30b0\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u305f\u5f8c\u3001Web\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3059\u308b\u3053\u3068\u3092\u5fc5\u305a\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart mastodon-web.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u81ea\u52d5\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u5931\u6557\u3001\u4eba\u70ba\u7684\u306a\u30df\u30b9\u3001\u3082\u3057\u304f\u306f\u624b\u52d5\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306e\u5834\u5408\u306b\u3001Mastodon\u306e\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u3092\u624b\u52d5\u3067\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u304c\u308f\u304b\u308a\u307e\u3057\u305f\u3002\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30b9\u30c8\u30ec\u30fc\u30b8\u306f\u3001Mastodon\u306eWeb\u30b5\u30fc\u30d3\u30b9\u3078\u306e\u8ca0\u8377\u3092\u8efd\u6e1b\u3057\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30e1\u30c7\u30a3\u30a2\u30d5\u30a1\u30a4\u30eb\u306e\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\/\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u901f\u5ea6\u3092\u5411\u4e0a\u3055\u305b\u308b\u306e\u306b\u5f79\u7acb\u3061\u307e\u3059\u3002<\/p>\n<h2>\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0<\/h2>\n<p>Web\u30b5\u30fc\u30d3\u30b9\u306f\u3001Mastodon\u306eUI\u3092\u63d0\u4f9b\u3057\u3001\u30e6\u30fc\u30b6\u30fc\u304b\u3089\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u3092\u51e6\u7406\u3059\u308b\u305f\u3081\u306eRuby-on-Rails\u306eHTTPS\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002Web\u30b5\u30fc\u30d3\u30b9\u306e\u8ca0\u8377\u306f\u30a2\u30af\u30c6\u30a3\u30d6\u30e6\u30fc\u30b6\u30fc\u306e\u6570\u306b\u6bd4\u4f8b\u3057\u3066\u3044\u307e\u3059\u3002\u5404\u30b9\u30ec\u30c3\u30c9\u306f\u540c\u6642\u306b1\u3064\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306b\u5fdc\u7b54\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u3059\u3079\u3066\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u5fd9\u3057\u3044\u5834\u5408\u3001\u6b21\u306e\u30ea\u30af\u30a8\u30b9\u30c8\u306f\u5f85\u6a5f\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u30ea\u30af\u30a8\u30b9\u30c8\u304c\u9577\u6642\u9593\u5f85\u6a5f\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u30a8\u30e9\u30fc\u3067\u30ad\u30e3\u30f3\u30bb\u30eb\u3055\u308c\u307e\u3059\u3002Web\u30b5\u30fc\u30d3\u30b9\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u306f\u3001\u9577\u6642\u9593\u306b\u308f\u305f\u308b\u30ea\u30af\u30a8\u30b9\u30c8\u51e6\u7406\u6642\u9593\u306b\u3088\u3063\u3066\u7279\u5b9a\u3067\u304d\u307e\u3059\uff1a\u30da\u30fc\u30b8\u306e\u8aad\u307f\u8fbc\u307f\u304c\u9045\u3044\u3001\u6295\u7a3f\u304c\u9045\u308c\u3066\u4f5c\u6210\u3055\u308c\u308b\u3001\u307e\u305f\u306f\u30ed\u30b0\u306b\u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u30a8\u30e9\u30fc\u304c\u8868\u793a\u3055\u308c\u308b\u306a\u3069\u3002<\/p>\n<div class=\"post-conf-warning\">\n<p class=\"post-conf-desc\">Warning<\/p>\n<div>\u8b66\u544a\uff1aWeb\u30b5\u30fc\u30d3\u30b9\u306fHTTPS\u306e\u307f\u3092\u9069\u7528\u3057\u3066\u304a\u308a\u3001\u3064\u307e\u308a\u3001Web\u30b5\u30fc\u30d3\u30b9\u3092\u30db\u30b9\u30c8\u3059\u308b\u8907\u6570\u306e\u30de\u30b7\u30f3\u9593\u306e\u8ca0\u8377\u5206\u6563\u5668\u3067SSL\u7d42\u4e86\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u3067\u304d\u307e\u305b\u3093\u3002<\/div>\n<\/div>\n<p>Web\u30b5\u30fc\u30d3\u30b9\u3067\u306e\u30e6\u30fc\u30b6\u30fc\u51e6\u7406\u91cf\u3092\u5897\u3084\u3059\u305f\u3081\u306b\u306f\u3001\u30b5\u30fc\u30d3\u30b9\u304c\u4f7f\u7528\u3059\u308b\u30b9\u30ec\u30c3\u30c9\u306e\u7dcf\u6570\u3092\u5897\u3084\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u3053\u308c\u306f\u3001WEB_CONCURRENCY\uff08\u30ef\u30fc\u30ab\u30fc\u306e\u6570\uff09\u304a\u3088\u3073\/\u307e\u305f\u306fMAX_THREADS\uff08\u30ef\u30fc\u30ab\u30fc\u5f53\u305f\u308a\u306e\u30b9\u30ec\u30c3\u30c9\u6570\uff09\u306e\u74b0\u5883\u5909\u6570\u3092\u5897\u3084\u3059\u3053\u3068\u3067\u5b9f\u73fe\u3067\u304d\u307e\u3059\u3002\u5404\u30ef\u30fc\u30ab\u30fc\u306b\u306fMAX_THREADS\u6570\u306e\u30b9\u30ec\u30c3\u30c9\u304c\u3042\u308a\u3001\u30b9\u30ec\u30c3\u30c9\u306e\u7dcf\u6570\u306fWEB_CONCURRENCY\uff08\u30ef\u30fc\u30ab\u30fc\u6570\uff09 \u00d7 MAX_THREADS\uff08\u30ef\u30fc\u30ab\u30fc\u5f53\u305f\u308a\u306e\u30b9\u30ec\u30c3\u30c9\u6570\uff09\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>MAX_THREADS\u3092\u5897\u3084\u3059\u3068\u3001\u3088\u308a\u591a\u304f\u306eCPU\u3092\u6d88\u8cbb\u3059\u308b\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u304c\u3001WEB_CONCURRENCY\u3092\u5897\u3084\u3059\u3068\u3001\u3088\u308a\u591a\u304f\u306eRAM\u3092\u6d88\u8cbb\u3059\u308b\u50be\u5411\u304c\u3042\u308a\u307e\u3059\u3002Mastodon\u30d0\u30fc\u30b8\u30e7\u30f34.0.2\u306e\u5834\u5408\u3001\u5358\u4e00\u306e\u30ef\u30fc\u30ab\u30fc\u306b\u306f\u5e73\u57472\u301c3GB\u306eRAM\u304c\u5fc5\u8981\u3068\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u4e0a\u8a18\u306e\u4f8b\u3067WEB_CONCURRENCY = 3\u306e\u5834\u5408\u3001\u5fc5\u8981\u306aRAM\u306e\u63a8\u5b9a\u91cf\u306f9GB\u3067\u3059\u3002<br \/>\nMAX_THREADS\u306b\u3064\u3044\u3066\u306f\u300115\u306a\u3069\u306e\u4e00\u822c\u7684\u306a\u5024\u304b\u3089\u958b\u59cb\u3057\u3001CPU\u4f7f\u7528\u7387\u304c\u5e73\u574770\uff05\u306b\u306a\u308b\u307e\u3067\u5897\u3084\u3057\u3066\u307f\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001Web\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30de\u30b7\u30f3\u3092\u89b3\u5bdf\u3057\u3066\u3001\u3055\u3089\u306b\u30b9\u30ec\u30c3\u30c9\u3092\u8ffd\u3044\u8fbc\u3081\u308b\u304b\u3069\u3046\u304b\u3092\u7406\u89e3\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3068\u3044\u3046\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u4ee5\u4e0b\u306fsystemd\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u306e\u4e00\u90e8\u3092\u793a\u3057\u3066\u3044\u307e\u3059\u3002\u3082\u3057\u3042\u306a\u305f\u304c\u4ed6\u306e\u6280\u8853\uff08Docker\u3001K8s\u306a\u3069\uff09\u3092\u4f7f\u7528\u3057\u3066\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u5834\u5408\u306f\u3001WEB_CONCURRENCY\u3068MAX_THREADS\u5909\u6570\u3092\u3001\u305d\u306e\u6280\u8853\u74b0\u5883\u306e\u4ed5\u69d8\u306b\u5408\u308f\u305b\u3066\u8abf\u6574\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u6700\u521d\u306b\u3001\u30a6\u30a7\u30d6\u30b5\u30fc\u30d3\u30b9\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/systemd\/system\/mastodon-web.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u898b\u308b\u3082\u306e\u306f\u3001\u6b21\u306e\u3088\u3046\u306aWeb\u30b5\u30fc\u30d3\u30b9\u306esystemd\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002<\/p>\n<div>\n<p>\u6b21\u306e\u30d5\u30ec\u30fc\u30ba\u3092\u65e5\u672c\u8a9e\u3067\u81ea\u7136\u306a\u6587\u306b\u8a00\u3044\u63db\u3048\u307e\u3059\u3002\uff11\u3064\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u63d0\u4f9b\u3057\u307e\u3059\uff1a<\/p>\n<p>\u300c\/etc\/systemd\/system\/mastodon-web.service\u300d<\/p>\n<\/div>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-web\r\nAfter=network.target\r\n\r\n[Service]\r\n...\r\nEnvironment=\"LD_PRELOAD=libjemalloc.so\"\r\nExecStart=\/home\/mastodon\/.rbenv\/shims\/bundle exec puma -C config\/puma.rb\r\nExecReload=\/bin\/kill -SIGUSR1 $MAINPID\r\n...\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>ExecStart \u30d5\u30a3\u30fc\u30eb\u30c9\u306e\u76f4\u524d\u306b\u3001WEB_CONCURRENCY \u3068 MAX_THREADS \u5909\u6570\u3092\u4f7f\u7528\u3057\u30662\u3064\u306e\u8ffd\u52a0\u30d5\u30a3\u30fc\u30eb\u30c9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/etc\/systemd\/system\/mastodon-web.service\u3092\u65e5\u672c\u8a9e\u3067\u8868\u73fe\u3059\u308b:<\/div>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-web\r\nAfter=network.target\r\n\r\n[Service]\r\n...\r\nEnvironment=\"LD_PRELOAD=libjemalloc.so\"\r\nEnvironment=\"WEB_CONCURRENCY=<mark>your concurrency value<\/mark>\"\r\nEnvironment=\"MAX_THREADS=<mark>your threads value<\/mark>\"\r\nExecStart=\/home\/mastodon\/.rbenv\/shims\/bundle exec puma -C config\/puma.rb\r\nExecReload=\/bin\/kill -SIGUSR1 $MAINPID\r\n...\r\n[Install]\r\nWantedBy=multi-user.target\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3089\u306e\u65b0\u3057\u3044\u30d5\u30a3\u30fc\u30eb\u30c9\u306f\u3001WEB_CONCURRENCY\u3068MAX_THREADS\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u3001\u72ec\u81ea\u306e\u5024\u3067\u4e0a\u66f8\u304d\u3057\u307e\u3059\u3002<\/p>\n<p>\u30a8\u30c7\u30a3\u30bf\u3092\u4fdd\u5b58\u3057\u3066\u7d42\u4e86\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u305f\u5f8c\u306b\u3001\u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl daemon-reload<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart mastodon-web.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a2017\u5e74\u4ee5\u964d\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u306f\u307b\u307c\u500d\u5897\u3057\u307e\u3057\u305f\u306e\u3067\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u306e\u4f7f\u7528\u72b6\u6cc1\u3092\u76e3\u8996\u3057\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30ea\u30bd\u30fc\u30b9\u306e\u5272\u308a\u5f53\u3066\u3092\u5897\u6e1b\u3059\u308b\u3053\u3068\u3092\u5f37\u304f\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002<\/div>\n<\/div>\n<p>\u73fe\u6642\u70b9\u3067\u306f\u3001Web\u30b5\u30fc\u30d3\u30b9\u306e\u8a2d\u5b9a\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u3092\u5897\u3084\u3057\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001Mastodon\u306e\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306f\u3088\u308a\u591a\u304f\u306e\u30a2\u30af\u30c6\u30a3\u30d6\u30e6\u30fc\u30b6\u30fc\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u5927\u91cf\u306e\u30e6\u30fc\u30b6\u30fc\u6d41\u5165\u6642\u306b\u3001Mastodon\u30b5\u30fc\u30d0\u30fc\u304c\u30b9\u30ed\u30c3\u30c8\u30eb\u3055\u308c\u306a\u3044\u3088\u3046\u306b\u3059\u308b\u305f\u3081\u306b\u3001\u5e38\u306b\u4f59\u5206\u306a\u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u4f59\u88d5\u3092\u6301\u3064\u3053\u3068\u3092\u5fc3\u306b\u7559\u3081\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0API\u306e\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u3092\u5411\u4e0a\u3055\u305b\u308b\u3002<\/h2>\n<p>StreamingAPI\u306f\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306e\u66f4\u65b0\u306e\u305f\u3081\u306eAPI\u3092\u63d0\u4f9b\u3059\u308bNodeJS\u30b5\u30fc\u30d0\u30fc\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u76f4\u63a5\u30a4\u30d9\u30f3\u30c8\u306e\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u53d7\u3051\u53d6\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002StreamingAPI\u306f\u3001\u540c\u6642\u306b\u63d0\u4f9b\u3067\u304d\u308b\u30e6\u30fc\u30b6\u30fc\u306e\u6570\u306b\u5236\u9650\u304c\u3042\u308a\u307e\u3059\u3002\u5236\u9650\u306f\u3001STREAMING_CLUSTER_NUM\u74b0\u5883\u5909\u6570\u306b\u7d50\u3073\u4ed8\u3051\u3089\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d3\u30b9\u30ed\u30b0\u3092\u898b\u308b\u3053\u3068\u3067\u3001StreamingAPI\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u304c\u7279\u5b9a\u3067\u304d\u307e\u3059\u3002\u3082\u3057\u30ed\u30b0\u306bnode[1201554]: ERR! error: sorry, too many clients already\u3068\u3044\u3046\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u5834\u5408\u3001StreamingAPI\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u30e6\u30fc\u30b6\u30fc\u6570\u304c\u51e6\u7406\u3067\u304d\u308b\u9650\u754c\u3092\u8d85\u3048\u3066\u304a\u308a\u3001\u65b0\u305f\u306a\u30e6\u30fc\u30b6\u30fc\u306f\u81ea\u52d5\u7684\u306b\u5207\u65ad\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0API\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u306f\u975e\u5e38\u306b\u7c21\u5358\u3067\u3059\u3002<br \/>\nSTREAMING_CLUSTER_NUM\u306e\u74b0\u5883\u5909\u6570\u3092\u5897\u3084\u3059\u3068\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0API\u306f\u3088\u308a\u591a\u304f\u306e\u30e6\u30fc\u30b6\u30fc\u306b\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3067\u304d\u307e\u3059\u3002<br \/>\n\u3082\u3057\u30ed\u30b0\u306b\u300c\u30a8\u30e9\u30fc\uff1a\u3059\u3067\u306b\u591a\u304f\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304c\u5b58\u5728\u3057\u3066\u3044\u307e\u3059\u300d\u3068\u3044\u3046\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u305f\u304f\u3055\u3093\u8868\u793a\u3055\u308c\u308b\u5834\u5408\u306f\u3001STREAMING_CLUSTER_NUM\u30921.5\u500d\u304b\u30892\u500d\u7a0b\u5ea6\u5897\u3084\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u305f\u3068\u3048\u3070\u3001\u73fe\u5728\u306eSTREAMING_CLUSTER_NUM\u306e\u8a2d\u5b9a\u304c2\u3067\u3042\u308b\u5834\u5408\u306f\u3001\u3053\u306e\u5909\u6570\u30924\u306b\u66f4\u65b0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>StreamingAPI\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30de\u30b7\u30f3\u3067\u3001StreamingAPI\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/systemd\/system\/mastodon-streaming.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u300cSTREAMING_CLUSTER_NUM\u300d\u5909\u6570\u306e\u5024\u3092\u7de8\u96c6\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\u4ee5\u4e0b\u306e\u6587\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\uff1a<br \/>\n\u300c\/etc\/systemd\/system\/mastodon-streaming.service\u300d<\/div>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-streaming\r\nAfter=network.target\r\n\r\n[Service]\r\n...\r\nEnvironment=\"STREAMING_CLUSTER_NUM=<mark>your new value<\/mark>\"\r\nExecStart=\/usr\/bin\/node .\/streaming\r\n...\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3001\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u305f\u3042\u3068\u306b\u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3001\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl daemon-reload<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart mastodon-streaming.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3055\u3089\u306b\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306fStreamingAPI\u306b\u306fDB_POOL\u5909\u6570\u304c\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u307e\u305b\u3093\u3002\u3053\u306e\u5909\u6570\u304c\u660e\u793a\u7684\u306b\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u3001StreamingAPI\u306f10\u3064\u306e\u63a5\u7d9a\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002DB_POOL\u5909\u6570\u3092\u660e\u793a\u7684\u306b\u5897\u3084\u3059\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u304c\u3001STREAMING_CLUSTER_NUM\u5909\u6570\u3092\u5897\u3084\u3055\u306a\u3044\u5834\u5408\u306f\u3001StreamingAPI\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3067\u65b0\u3057\u3044\u74b0\u5883\u5909\u6570\u3092\u7c21\u5358\u306b\u4f5c\u6210\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>StreamingAPI\u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u30de\u30b7\u30f3\u3067\u3001StreamingAPI\u30b5\u30fc\u30d3\u30b9\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/systemd\/system\/mastodon-streaming.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u65b0\u3057\u3044\u74b0\u5883\u5909\u6570DB_POOL\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div>\/etc\/systemd\/system\/mastodon-streaming.service\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u901a\u308a\u3067\u3059:<br \/>\n\u30de\u30b9\u30c8\u30c9\u30f3\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0.service<\/div>\n<pre class=\"post-pre\"><code>[Unit]\r\nDescription=mastodon-streaming\r\nAfter=network.target\r\n\r\n[Service]\r\n...\r\nEnvironment=\"DB_POOL=<mark>your value<\/mark>\"\r\nEnvironment=\"STREAMING_CLUSTER_NUM=<mark>your value<\/mark>\"\r\nExecStart=\/usr\/bin\/node .\/streaming\r\n...\r\n<\/code><\/pre>\n<p>\u5909\u66f4\u3092\u4fdd\u5b58\u3057\u305f\u5f8c\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3001\u30e6\u30cb\u30c3\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u30b5\u30fc\u30d3\u30b9\u3092\u518d\u8d77\u52d5\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl daemon-reload<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl restart mastodon-streaming.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306b\u3088\u308a\u3001DB_POOL\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u5024\u304c\u4e0a\u66f8\u304d\u3055\u308c\u3001StreamingAPI\u306e\u30a4\u30f3\u30b9\u30bf\u30f3\u30b9\u306b\u5fc5\u8981\u306a\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u63a5\u7d9a\u306e\u6570\u304c\u3088\u308a\u660e\u78ba\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u660e\u793a\u7684\u306bDB_POOL\u306e\u5024\u3092\u6307\u5b9a\u3057\u306a\u3044\u5834\u5408\u3001max_connections\u5909\u6570\u306e\u8a08\u7b97\u306b\u306fDB_POOL\u306e\u5024\u3068\u3057\u306610\u3092\u4f7f\u7528\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>\u73fe\u5728\u3001StreamingAPI\u306e\u8a2d\u5b9a\u3092\u66f4\u65b0\u3057\u3001\u30b9\u30eb\u30fc\u30d7\u30c3\u30c8\u3092\u5411\u4e0a\u3055\u305b\u307e\u3057\u305f\u3002\u3053\u308c\u306b\u3088\u308a\u3001StreamingAPI\u306f\u3088\u308a\u591a\u304f\u306e\u540c\u6642\u30e6\u30fc\u30b6\u30fc\u306b\u5bfe\u5fdc\u3057\u3001\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3053\u3068\u306a\u304f\u30b5\u30fc\u30d3\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u30aa\u30d7\u30b7\u30e7\u30f3\u3067\u3001\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u306e\u8a2d\u5b9a\u30eb\u30fc\u30c1\u30f3\u3092\u6700\u9069\u5316\u3059\u308b\u305f\u3081\u306bDB_POOL\u74b0\u5883\u5909\u6570\u3092\u660e\u793a\u7684\u306b\u6307\u5b9a\u3059\u308b\u304b\u3001\u5909\u66f4\u305b\u305a\u306bStreamingAPI\u306eDB_POOL\u5024\u309210\u3068\u3057\u3066\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001PostgreSQL\u3001Sidekiq\u3001Web\u30b5\u30fc\u30d3\u30b9\u3001\u304a\u3088\u3073StreamingAPI\u306e\u30dc\u30c8\u30eb\u30cd\u30c3\u30af\u3092\u7279\u5b9a\u304a\u3088\u3073\u89e3\u6c7a\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u3053\u308c\u3067\u65b0\u3057\u3044\u30b5\u30fc\u30d0\u30fc\u3092\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3059\u308b\u304b\u3001\u65e2\u5b58\u306e\u30b5\u30fc\u30d0\u30fc\u3092\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30a2\u30d7\u30ed\u30fc\u30c1\u306f\u5e38\u306b\u6539\u5584\u3068\u6d17\u7df4\u304c\u53ef\u80fd\u3067\u3059\u3002\u4f8b\u3048\u3070\u3001\u8907\u96d1\u306aSidekiq\u306e\u8a2d\u5b9a\u306f\u3001\u3055\u3089\u306b\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u5316\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u516c\u5f0f\u306e\u30de\u30b9\u30c8\u30c9\u30f3\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u30ac\u30a4\u30c9\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u3068\u6700\u9069\u5316\u306e\u3055\u307e\u3056\u307e\u306a\u8996\u70b9\u304c\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u4e0a\u306e\u30e6\u30fc\u30b6\u30fc\u30a8\u30af\u30b9\u30da\u30ea\u30a8\u30f3\u30b9\u3092\u5411\u4e0a\u3055\u305b\u308b\u305f\u3081\u306e\u3082\u3046\u4e00\u3064\u306e\u7d20\u6674\u3089\u3057\u3044\u65b9\u6cd5\u306f\u3001ElasticSearch\u3092\u4f7f\u7528\u3057\u305f\u5168\u6587\u691c\u7d22\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30e6\u30fc\u30b6\u30fc\u306f\u81ea\u5206\u306e\u30b9\u30c6\u30fc\u30bf\u30b9\u3001\u30e1\u30f3\u30b7\u30e7\u30f3\u3001\u304a\u6c17\u306b\u5165\u308a\u3001\u30d6\u30c3\u30af\u30de\u30fc\u30af\u304b\u3089\u7d50\u679c\u3092\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>LibreTranslate\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3067\u3001Mastodon\u306f\u30c8\u30a5\u30fc\u30c8\u3084\u4ed6\u306e\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u30e6\u30fc\u30b6\u30fc\u306e\u8a00\u8a9e\u306b\u7ffb\u8a33\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8457\u8005\u306f\u3001\u5bc4\u4ed8\u30d7\u30ed\u30b0\u30e9\u30e0\u300cWrite for Donations\u300d\u306e\u4e00\u74b0\u3068\u3057\u3066\u3001The Apache Software Foundation\u3068Free and Open Source Fund\u3092\u5bc4\u4ed8\u306e\u53d7\u53d6\u5148\u3068\u3057\u3066\u9078\u3073\u307e\u3057\u305f [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[26,61],"class_list":["post-993","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-26","tag-61"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\" \/>\n<meta property=\"og:description\" content=\"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-14T09:12:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T19:07:04+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656440d8daa94e2bdf7ac080\/4-0.png\" \/>\n<meta name=\"author\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u82bd\u4f9d, \u96e8\u591c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"58\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/\",\"name\":\"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-10-14T09:12:10+00:00\",\"dateModified\":\"2025-07-31T19:07:04+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\"},\"description\":\"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27\",\"name\":\"\u82bd\u4f9d, \u96e8\u591c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g\",\"caption\":\"\u82bd\u4f9d, \u96e8\u591c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5 - Blog - Silicon Cloud","description":"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/ja\/blog\/\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\/","og_locale":"ja_JP","og_type":"article","og_title":"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5","og_description":"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-14T09:12:10+00:00","article_modified_time":"2025-07-31T19:07:04+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/656440d8daa94e2bdf7ac080\/4-0.png"}],"author":"\u82bd\u4f9d, \u96e8\u591c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u82bd\u4f9d, \u96e8\u591c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"58\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/","name":"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-10-14T09:12:10+00:00","dateModified":"2025-07-31T19:07:04+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27"},"description":"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"\u30de\u30b9\u30c8\u30c9\u30f3\u30b5\u30fc\u30d0\u30fc\u306e\u30b9\u30b1\u30fc\u30ea\u30f3\u30b0\u65b9\u6cd5"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/aeb60a7861f2f002b54c66bd65bc6c27","name":"\u82bd\u4f9d, \u96e8\u591c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6305fe5cabc2b854c1208975a47fbf3f8cef3f7cd775b94dceedbe59b74a8010?s=96&d=mm&r=g","caption":"\u82bd\u4f9d, \u96e8\u591c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/meiamaya\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/%e3%83%9e%e3%82%b9%e3%83%88%e3%83%89%e3%83%b3%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%e3%81%ae%e3%82%b9%e3%82%b1%e3%83%bc%e3%83%aa%e3%83%b3%e3%82%b0%e6%96%b9%e6%b3%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=993"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/993\/revisions"}],"predecessor-version":[{"id":47688,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/993\/revisions\/47688"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}