タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

pumaに関するinoueyuworksのブックマーク (3)

  • Pumaの起動におけるpumaコマンドとpumactlコマンドの違い - Qiita

    背景 これまで開発していたRailsアプリケーションはアプリケーションサーバにUnicornを採用して番稼働させていた。最近になってようやくRails5に移行しようかとなったので、ずっと気になっていたPumaを試験的に採用してみることにした。 開発したアプリーションをPumaで起動する際には、どうやら「pumaコマンド」で起動する方法と「pumactlコマンド」で起動する方法があるらしい、ということがわかったがいまいちその違いがわからなかったので調べてみた。 Pumaとは Pumaではリクエストの並列処理を実現させるためにスレッドを利用している。リクエストを処理するためのスレッドをスレッドプールに事前に用意しておいて、リクエストがきたときにスレッドに処理を任せることでスレッドベースな処理を実現させているらしい。 GitHub - puma/puma: A ruby web server

    Pumaの起動におけるpumaコマンドとpumactlコマンドの違い - Qiita
    inoueyuworks
    inoueyuworks 2021/10/11
    pumactl は、 config/puma.rb の設定のみを利用して puma を操作するためのコマンド。 puma コマンドは、コマンドライン引数によって、 config/puma.rb の設定を上書きでき、しかしそれは運用上バグりやすいので、 pumactl ができた
  • Deploying Rails Applications with the Puma Web Server | Heroku Dev Center

    Web applications that process concurrent requests make more efficient use of dyno resources than those that only process one request at a time. Puma is a webserver that competes with Unicorn and allows you to handle concurrent requests. Puma uses threads, in addition to worker processes, to make more use of available CPU. You can only utilize threads in Puma if your entire code-base is thread safe

    Deploying Rails Applications with the Puma Web Server | Heroku Dev Center
    inoueyuworks
    inoueyuworks 2020/07/01
    puma を利用する際の並列処理もろもろについて、 heroku official の記事
  • puma/docs/architecture.md at master · puma/puma

    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

    puma/docs/architecture.md at master · puma/puma
    inoueyuworks
    inoueyuworks 2020/06/07
    puma has 1+N processes; runner + workers; workers listen to common socket; worker has 1+N threads; Receive Thread + Thread Pool; While ThreadPool ready, Receive Thread accepts Connections; Bytes Read connections are queued to Thread Pool for execution; Thread@Pool become ready after process.
  • 1