senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. あつあつ :pudding_verified: (46kg/16.9) (atsuchan@atsuchan.page)'s status on Friday, 22-Oct-2021 16:30:36 JST あつあつ :pudding_verified: (46kg/16.9) あつあつ :pudding_verified: (46kg/16.9)

    今日Sidekiqだけが5時間ダウンしてたという障害が起きてしまったが外部からの死活監視の方法が思いつかないのよね、サーバー上でfailになったら通知くらい?

    In conversation Friday, 22-Oct-2021 16:30:36 JST from atsuchan.page permalink
    • のえる (noellabo@fedibird.com)'s status on Friday, 22-Oct-2021 16:30:27 JST のえる のえる
      in reply to

      @atsuchan 5分単位ぐらいのチェックでいいなら、rails consoleのワンライナーでsidekiqのAPI叩いてその結果をテキストファイルにでも書き出して、それをnginxから参照させるとかかな。手抜き。

      正攻法でやるならstatみるようにする。

      In conversation Friday, 22-Oct-2021 16:30:27 JST permalink
    • のえる (noellabo@fedibird.com)'s status on Friday, 22-Oct-2021 17:14:06 JST のえる のえる
      in reply to

      @atsuchan たとえば

      bin/rails r "require 'sidekiq/monitor'; Sidekiq::Monitor::Status.new.display('all')"

      allの代わりに

      versionoverviewprocessesqueues

      ってすると特定のセクションとれるよ。

      こっちの方が速い。でもredisのパスワード指定する方法がわからん。

      REDIS_URL=redis://127.0.0.1:6379/0 sidekiqmon all

      In conversation Friday, 22-Oct-2021 17:14:06 JST permalink
    • のえる (noellabo@fedibird.com)'s status on Friday, 22-Oct-2021 17:52:19 JST のえる のえる
      in reply to

      @atsuchan 引っ張り出す方法がわかれば、あとは似るなり焼くなりってね。

      出力から欲しいところを加工してlive/publicに書き出して、外形監視サービスから文字列一致でみるとか、なんか考えてみて!

      In conversation Friday, 22-Oct-2021 17:52:19 JST permalink
    • あつあつ :pudding_verified: (46kg/16.9) (atsuchan@atsuchan.page)'s status on Friday, 22-Oct-2021 17:52:20 JST あつあつ :pudding_verified: (46kg/16.9) あつあつ :pudding_verified: (46kg/16.9)
      in reply to
      • のえる

      @noellabo なるほどです、プロセスが落ちるとキューだけがどんどん溜まっていく感じなんですね、これを出力して公開すれば、ブラウザから値を見れる感じなんですね、、

      In conversation Friday, 22-Oct-2021 17:52:20 JST permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.