このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
Synthetic Monitoring を活用したグローバルサービスのネットワークレイテンシの測定と改善 - クックパッド開発者ブログ http://techlife.cookpad.com/entry/2017/09/21/080000
光ファイバーを通る信号の速度を見積もるときに屈折率を考慮しないのが一般的なのはどうしてなんだろう(と書きつつ石英の屈折率を知らないのだ)
週刊Railsウォッチ(20170922)特集: RubyKaigi 2017セッションを振り返る(1)、Rails 4.2.10.rc1リリースほか https://techracho.bpsinc.jp/hachi8833/2017_09_22/45922
このアカウントは、notestockで公開設定になっていません。
バルスきてないのに
ActiveRecord::ConnectionTimeoutError (could not obtain a connection from the pool within 5.000 seconds
出してました。ご迷惑をおかけしました。rack-timeoutが出すぎたかな?
$ 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)
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'
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 ?
このアカウントは、notestockで公開設定になっていません。
このアカウントは、notestockで公開設定になっていません。
20170918125918 IdsToBigints: migrated (115.4333s)
どきどきですよw
うー
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.
@hyuki 1.6から最近のマスターに行く時はデータベースのマイグレーションでロックが必要になるのでPumaやらSidekiqやら落としておく必要がありそうです。ご注意!https://github.com/tootsuite/mastodon/pull/5039
もう一個bigintへのマイグレーションが来てたよw https://github.com/tootsuite/mastodon/pull/5070
@hyuki PostgreSQLがDockerで走ってる場合にはrake db:migrateを実行するときにはそこだけ走らせておく必要がありますねー。(Dockerのおすすめ構成がどうなってるか把握してないので想像ですみません。)
American Expressのサイトが日本語になってびっくらこいたけど自分のIPアドレスが日本語になってました
@mitarashi_dango@mastodon.matcha-soft.com IDのintegerからbigintへの変換が来ますよー♪
https://github.com/tootsuite/mastodon/pull/5039
https://github.com/tootsuite/mastodon/pull/5070
やーん。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
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
もー
git checkout master; git fetch upstream; git rebase upstream/master; git checkout プルリク出したいブランチ; git rebase masterして、さーてお父さんテスト走らせるぞーって思ったらこのザマですよw
まあデータベース内のテーブルをドロップする以前は2回に1度は失敗していたのでコードの問題というよりはデータベースに中途半端なデータが残ってたんだと思う事にしましょう
あ、通った
Migrating to IdsToBigints2 (20170924022025)
== 20170924022025 IdsToBigints2: migrating ====================================
-- change_column(:statuses_tags, :tag_id, :bigint)
-> 8.9065s
== 20170924022025 IdsToBigints2: migrated (8.9066s) ===========================
\マスターに/ \ついずいしますたー/
Merged tootsuite/mastodon at 2f079573ed6aed9f27ece623c56a61c8e036574e
- 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;
あーだめだねえ。リモートインスタンスとの通信がうまくいかなかった時のバックトレースを消したいと思ったのですがうまくいきませんでした
https://github.com/zunda/mastodon/commit/2d21156805508820fb7dd6efb7c35d3207e3d773
https://github.com/zunda/mastodon/commit/3824452ba2d4f79462c3a1dd271046603fa24045
おっけー!下記以降のバックトレースを消すことができました
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'
https://github.com/zunda/mastodon/commit/0e93595ec1faca967fc2bbc056e0d12ce9a0bce3
Pull requestしました
https://github.com/tootsuite/mastodon/pull/5076
このアカウントは、notestockで公開設定になっていません。