07:39:47
2017-09-23 07:24:50 あべ(末代)님의 게시물 abcang@mstdn.maud.io
icon

This account is not set to public on notestock.

09:24:53
icon

ホンモノの負荷があるところでコードをさわれれば楽しいのです。コミュ障なので。

09:29:17
icon

テストなおしたいんだけどまずはガベージコレクション(物理)が必要。

12:03:04
2017-09-23 12:02:31 Naf :naf:님의 게시물 Naf@otogamer.me
icon

This account is not set to public on notestock.

12:03:25
icon

毛糸洗いに自信が持てます

12:29:41
icon

Tokyo is 162 ms away today.

13:19:26
icon

Synthetic Monitoring を活用したグローバルサービスのネットワークレイテンシの測定と改善 - クックパッド開発者ブログ http://techlife.cookpad.com/entry/2017/09/21/080000

Web site image
Synthetic Monitoring を活用したグローバルサービスのネットワークレイテンシの測定と改善
13:21:05
icon

光ファイバーを通る信号の速度を見積もるときに屈折率を考慮しないのが一般的なのはどうしてなんだろう(と書きつつ石英の屈折率を知らないのだ)

13:23:30
icon

週刊Railsウォッチ(20170922)特集: RubyKaigi 2017セッションを振り返る(1)、Rails 4.2.10.rc1リリースほか https://techracho.bpsinc.jp/hachi8833/2017_09_22/45922

Web site image
週刊Railsウォッチ(20170922)特集: RubyKaigi 2017セッションを振り返る(1)、Rails 4.2.10.rc1リリースほか
14:35:18
2017-09-23 14:16:50 unarist님의 게시물 unarist@mstdn.maud.io
icon

This account is not set to public on notestock.

14:35:41
icon

いあいあいあいあぼっちインスタンスだし

15:01:15
icon

一瞬バックグラウンドに回すのかと思っちゃった

15:01:57
2017-09-23 15:01:57 zunda님의 게시물 zundan@mastodon.zunda.ninja
16:15:23
icon

バルスきてないのに

ActiveRecord::ConnectionTimeoutError (could not obtain a connection from the pool within 5.000 seconds

出してました。ご迷惑をおかけしました。rack-timeoutが出すぎたかな?

16:16:25
icon

$ heroku pg:info
=== DATABASE_URL, PG_HOBBY_BASIC_URL
Plan: Hobby-basic
Status: Available
Connections: 6/20
PG Version: 9.6.1
Created: 2017-04-20 18:31 UTC
Data Size: 257.6 MB
Tables: 35
Rows: 593534/10000000 (In compliance)

16:24:27
icon

method=GET path=/api/v1/accounts/979/statusesに対してRack::Timeout::RequestTimeoutException (Request waited 3ms, then ran for longer than 59997ms)を出す組が3つ。僕が見ようとしたやつやーw

app/controllers/application_controller.rb:89:in `cache_collection'
app/controllers/api/v1/accounts/statuses_controller.rb:26:in `cached_account_statuses'
app/controllers/api/v1/accounts/statuses_controller.rb:22:in `load_statuses'
app/controllers/api/v1/accounts/statuses_controller.rb:11:in `index'

16:26:25
icon

ScoutでSQLが見えた♪

SELECT "statuses"."id", "statuses"."updated_at" FROM "statuses" LEFT OUTER JOIN mentions ON statuses.id = mentions.status_id AND mentions.account_id = ? WHERE "statuses"."account_id" = ? AND ("statuses"."visibility" IN (?) OR "mentions"."id" IS NOT NULL) ORDER BY "statuses"."id" DESC, "statuses"."visibility" DESC LIMIT ?

16:28:13
icon

WAIT_TIMEOUTを60から90秒にしておいてみよう。

16:42:53
icon

←このアイコンはマウスを乗せると動くかも

18:10:16
2017-09-23 16:58:09 うめぞう🔒님의 게시물 umezou@mstdn.maud.io
icon

This account is not set to public on notestock.

18:10:19
2017-09-23 16:59:00 ほた님의 게시물 hota@mstdn.maud.io
icon

This account is not set to public on notestock.

18:20:45
2017-09-22 19:38:01 zunda님의 게시물 zundan@mastodon.zunda.ninja
icon

20170918125918 IdsToBigints: migrated (115.4333s)

どきどきですよw

18:21:16
2017-09-22 19:29:31 zunda님의 게시물 zundan@mastodon.zunda.ninja
icon

うー
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

PG::TRDeadlockDetected: ERROR: deadlock detected
DETAIL: Process 1152 waits for AccessExclusiveLock on relation 4035169 of database 4035021; blocked by process 1385.
Process 1385 waits for AccessShareLock on relation 4035268 of database 4035021; blocked by process 1152.

18:44:32
18:46:53
icon

@hyuki 1.6から最近のマスターに行く時はデータベースのマイグレーションでロックが必要になるのでPumaやらSidekiqやら落としておく必要がありそうです。ご注意!https://github.com/tootsuite/mastodon/pull/5039

Web site image
Change ID columns to bigints by aschmitz · Pull Request #5039 · mastodon/mastodon
18:47:38
icon

もう一個bigintへのマイグレーションが来てたよw https://github.com/tootsuite/mastodon/pull/5070

Web site image
Forgotten in #5039, change statuses_tags tag_id to bigint by Gargron · Pull Request #5070 · mastodon/mastodon
18:52:33
icon

@hyuki なるほど。じゃあ次のリリースのときに注意ですね(リリースノートに書かれるはず(きっと))

18:55:57
icon

@hyuki PostgreSQLがDockerで走ってる場合にはrake db:migrateを実行するときにはそこだけ走らせておく必要がありますねー。(Dockerのおすすめ構成がどうなってるか把握してないので想像ですみません。)

19:04:27
icon

American Expressのサイトが日本語になってびっくらこいたけど自分のIPアドレスが日本語になってました

19:04:41
icon

日本語じゃなくて日本のw

19:06:30
icon

最近何度かマジックパケット一発でdockerマシンが起きてくれてる。ありがたいのう

19:17:54
icon

@mitarashi_dango@mastodon.matcha-soft.com IDのintegerからbigintへの変換が来ますよー♪

https://github.com/tootsuite/mastodon/pull/5039
https://github.com/tootsuite/mastodon/pull/5070

Web site image
Change ID columns to bigints by aschmitz · Pull Request #5039 · mastodon/mastodon
Web site image
Forgotten in #5039, change statuses_tags tag_id to bigint by Gargron · Pull Request #5070 · mastodon/mastodon
19:24:59
icon

やーん。yarnが古いって言われたー

warning Your current version of Yarn is out of date. The latest version is "1.0.2" while you're on "1.0.1".
info To upgrade, run the following command:
$ sudo apt-get update && sudo apt-get install yarn
$ npm rebuild node-sass

19:25:37
icon

Err:4 https://dl.yarnpkg.com/debian stable InRelease
The following signatures couldn't be verified because the public key is not available: NO_PUBKEY E074D16EB6FF4DE3

もー

19:34:18
icon

git checkout master; git fetch upstream; git rebase upstream/master; git checkout プルリク出したいブランチ; git rebase masterして、さーてお父さんテスト走らせるぞーって思ったらこのザマですよw

19:34:43
icon

そしてパッチ入りのままテストは全部成功w

19:34:51
icon

なんども走らせるしかないか

19:51:05
icon

5回連続で成功したテストがいつか失敗する確率を求めよ

19:51:30
icon

走行順が何種類あるのかに依存する気がするな

19:52:27
icon

まあデータベース内のテーブルをドロップする以前は2回に1度は失敗していたのでコードの問題というよりはデータベースに中途半端なデータが残ってたんだと思う事にしましょう

20:07:35
icon

がんばえとらびすたん!
https://github.com/tootsuite/mastodon/pull/5073

Web site image
Compact status_ids in StatusRelationshipsPresenter by zunda · Pull Request #5073 · mastodon/mastodon
20:14:33
icon

通った〜 🍰

20:17:58
icon

さーて。プルリク出せたので次はもういちどbigintへのマイグレーションをアプリ走らせたままやってみるね

20:20:00
icon

ビルドに時間かかるなあと思ったらyarnが更新されてるからかあ

20:24:38
icon

さーてマイグレーションいくよー♪

20:26:37
icon

あ、通った

Migrating to IdsToBigints2 (20170924022025)
== 20170924022025 IdsToBigints2: migrating ====================================
-- change_column(:statuses_tags, :tag_id, :bigint)
-> 8.9065s
== 20170924022025 IdsToBigints2: migrated (8.9066s) ===========================

20:27:28
icon

\マスターに/ \ついずいしますたー/

Merged tootsuite/mastodon at 2f079573ed6aed9f27ece623c56a61c8e036574e

21:06:55
2017-09-23 20:58:06 tateisu​ :force::r_9a:님의 게시물 tateisu@mastodon.juggler.jp
管理者から見た今回の教訓
icon

- pgheroでスロークエリを見れるように設定しておく
- 定期的に下記のクエリを実行してmute,blockが極端に多いユーザがいないか確認する
- マストドン本体でクエリの最適化が行われるように祈る/支援する

select count(target_account_id) as t,account_id from mutes group by account_id order by t desc limit 10;

select count(target_account_id) as t,account_id from blocks group by account_id order by t desc limit 10;

21:36:31
icon

お騒がせします。

\テスト/ \ですと/

21:52:00
icon

お騒がせします。

\ぎっとぎとの/ \ぎっとはぶ/

22:04:41
icon

あーだめだねえ。リモートインスタンスとの通信がうまくいかなかった時のバックトレースを消したいと思ったのですがうまくいきませんでした

https://github.com/zunda/mastodon/commit/2d21156805508820fb7dd6efb7c35d3207e3d773
https://github.com/zunda/mastodon/commit/3824452ba2d4f79462c3a1dd271046603fa24045

Web site image
Supress backtrace from ActivityPub::DeliveryWorker · zunda/mastodon@2d21156
Web site image
Try to supress backtrace from ActivityPub::DeliveryWorker · zunda/mastodon@3824452
22:24:18
icon

お騒がせしております。

\ふとんが/ \ふっとんだ!!!!/

22:28:43
icon

おっけー!下記以降のバックトレースを消すことができました

2017-09-24T08:25:44.747905+00:00 app[web.1]: 45 TID-oi7w4 WARN: Mastodon::UnexpectedResponseError: Delivery failed for https://リモートインスタンス/inbox: https://リモートインスタンス/inbox returned code 500
2017-09-24T08:25:44.747961+00:00 app[web.1]: 45 TID-oi7w4 WARN: /app/app/workers/activitypub/delivery_worker.rb:17:in `perform'

github.com/zunda/mastodon/comm

Web site image
Suppress backtrace when failed to communicate with a remote instance · zunda/mastodon@0e93595
22:44:09
icon
Web site image
Suppress backtrace when failed to communicate with a remote instance by zunda · Pull Request #5076 · mastodon/mastodon
22:50:15
2017-09-23 22:35:02 道明寺님의 게시물 ckyk4e@claristdon.net
icon

This account is not set to public on notestock.

22:50:26
icon

ふぉんとに!?

23:03:47
2017-09-23 23:03:47 zunda님의 게시물 zundan@mastodon.zunda.ninja
23:04:01
icon

@_@

23:06:01
2017-09-23 23:06:01 zunda님의 게시물 zundan@mastodon.zunda.ninja