2018-08-24から1日間の記事一覧

Sidekiq が原因で ActiveRecord::ConnectionTimeoutError: could not obtain a connection from the pool となりメモリを食い潰す場合

結論 参考 https://saitoxu.io/2018/03/30/sidekiq-introduction.html 現象の起こし方 この現象を起こすには、例えば sidekiq-scheduler を使って短い間隔に MySQL を叩きまくるスケジュールを組めば再現できるかと思います。

monit で任意のタイミングで監視チェックを走らせる

monit こちらです。 Easy, proactive monitoring of processes, programs, files, directories, filesystems and hosts | Monit

Puppeteer でページ全体のスクリーンショットを撮影する

Web

Puppeteer こちらです。読み方は「パピティア」のようです*1*2。 ページ全体のスクリーンショットを撮影する スクリーンショットは page.screenshot で撮影できます。このとき options として引数に fullPage: true を与えるとページ全体のスクリーンショッ…

Powered by はてなブログ