<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ryuichi1208</author_name>
  <author_url>https://blog.hatena.ne.jp/ryuichi1208/</author_url>
  <blog_title>地方エンジニアの学習日記</blog_title>
  <blog_url>https://ryuichi1208.hateblo.jp/</blog_url>
  <categories>
  </categories>
  <description>Gracefull shutdownってどういう実装なの？ グレースフルシャットダウンの定義を以下とするなら 停止指示後に、新しい接続を受付しない 残った処理中の接続が完了するのを待ってから、プロセスを安全に停止する TCPレイヤでやることとしたらlisten socketをcloseする。 -&gt; 新規接続を受付しない 子プロセスは親から受けたシグナルを元に処理完了で終了するように実装する -&gt; 安全停止 といった流れになる。Nginxをサンプルにみてみる(めちゃめちゃ端折ってます) static void ngx_worker_process_cycle(ngx_cycle_t *cycle…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fryuichi1208.hateblo.jp%2Fentry%2F2021%2F11%2F01%2F000000_2&quot; title=&quot;【Nginx】graceful shutdown - 地方エンジニアの学習日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2021-11-01 00:00:00</published>
  <title>【Nginx】graceful shutdown</title>
  <type>rich</type>
  <url>https://ryuichi1208.hateblo.jp/entry/2021/11/01/000000_2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
