にゃーん
Bonsaiだと日本語を検索できるのでステージングにBonsaiをくっつけてどう設定されてるか教えてもらえばいいのかな
Tokenizerをkuromojiにしてみたら実験用インスタンスのSearchbox Elasticsarchで日本語と英語の検索ができたよ!!
https://github.com/zunda/mastodon/commit/84c61bdbce8fa8dcbcd9fa93891dad0841a1b0ce
さてプロダクション分のインデックスはつくってもらえるでしょーか
だめだあ
Elasticsearch::Transport::Transport::ServerError: [429] {"error_id":"f0836083-4465-4a48-aa18-138786910b79","errors":[{"code":99701,"message":"You have reached your maximum storage size, upgrade your plan for more storage"}]}
Load average 0.7 - 0.8、メモリ185 MBくらい使いつつアップロード中。容量足りるといいなあ https://mastodon.zunda.ninja/media/sAmfAtoolwbwsL89kXE
できた?
2018-02-18T23:10:06.848770+00:00 app[run.2913]: Imported StatusesIndex::Status in 23m 13s, stats: index 804651
2018-02-18T23:10:07.000687+00:00 app[run.2913]: Imported Chewy::Stash::Specification::Specification in 1s, stats: index 1
2018-02-18T23:10:07.000728+00:00 app[run.2913]: Total: 23m 13s
\マスターに/ \追随しますたー/
Merged tootsuite/mastodon at bb26cdda242afff59f7718b3211732fc068980f1
2018/2/19→ビッグエンディアン
19/2/2018→リトルエンディアン
2/19/2018→アメリカンミックスドエンディアン
This account is not set to public on notestock.
Elasticsearch有効にしてからのリトライキューの成長を確認しようと思ったらDatadogにメトリクス行ってませんでしたし。デプロイした時に何か壊れたのかな
ビルドキャッシュを消去していままであったdatadog-agentパッケージの古いバージョンをふっとばしちゃう失態
Starting Datadog Agent on dyno run.9079
flag provided but not defined: -c
Usage of /app/.apt/opt/datadog-agent/bin/agent/agent:
-alsologtostderr
:
これやねえ…
https://github.com/DataDog/heroku-buildpack-datadog/issues/28
export HEROKU_APP=zundan-mastodon-experiment
heroku config:set DD_AGENT_VERSION=6.0.0~beta.9-1_amd64
heroku builds:cache:purge
Pipelineからデプロイ
-----> ERROR: Version "6.0.0~beta.9-1_amd64" was not found.
あー。なおらんかった。
というわけでしばらく欠測はありましたが、Elasticsearchを有効にしてもリトライキューはそんなに育ってはいませんでした https://mastodon.zunda.ninja/media/2Crg8kIwG3avW9gn1Cc
This account is not set to public on notestock.
This account is not set to public on notestock.
ElasticsearchはSearchboxの$9/月プランにしばらくの間はおさまってくれそう。ありがたい。 https://mastodon.zunda.ninja/media/z1lWdOufT1qBnz5RTWs
$ heroku pg:info
=== HEROKU_POSTGRESQL_ORANGE_URL, DATABASE_URL
Plan: Hobby-basic
Status: Available
Connections: 8/20
PG Version: 10.0
Created: 2017-12-16 18:16 UTC
Data Size: 1007.4 MB
Tables: 42
Rows: 2133660/10000000 (In compliance)
こちらも$9/月で21%使用。
朝淹れたコーヒーがおいしいと昼飲みたくならなくていいなあ、と思ったけど違うわ。仕事はじめたら眠くてレッドブルも飲んだからだw
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
Mastodonの全文検索、たぶん自分のトゥートと自分がブーストしたトゥートがインデックス対象になってるんだけど、ホームタイムラインのトゥート全部対象にしたい気がするんだけど、そうしたら$9/月枠を超えちゃうなw
$ go build main.go
$ ldd ./main
-bash: ldd: command not found
あほでした
Peet'sの中煎りのやつ、金属メッシユでお湯を3回に分けて注ぎました
This account is not set to public on notestock.
Ubuntu 16.04.3 LTSさんに4.4.0-116が来ましたよ
$ sync;sync;sync;sudo reboot
あー、今日本にパケットまわしてもらってるんだった
というわけでマスターになれたみたいですたー
Merged tootsuite/mastodon at 5f3bee345d0fcebabd90a28ada1fab7cd6e70b0e
Rubyが使ってるメモリがスワップに入ってる可能性もあるなあ。Sidekiqのスレッド数を4から3に減らして様子をみよう。
ふむふむ。Sidekiqのスレッド数を4から3にしたらCPU負荷が下がったみたいです。Rubyのプロセスがswapにつっこんでたんだろうなあ。今回のデプロイで少しだけメモリの利用量が増えたんでしょう、きっと。 https://mastodon.zunda.ninja/media/yv6-7VN85qLsZ-25Qe4
This account is not set to public on notestock.
This account is not set to public on notestock.
まだメモリ使用量の増加に応じてCPU負荷が上がってるように見える(トラフィックは増えてない)。もう少し並列度を下げるか。 https://mastodon.zunda.ninja/media/EE968Vj6FF6lnhqo5WM
Pumaは1プロセス×2スレッドで下げようがないので、Sidekiqを3スレッドから2スレッドにします。トゥートの配信が遅れ気味になっちゃいます。すまーん。
$ heroku pg:info
=== HEROKU_POSTGRESQL_ORANGE_URL, DATABASE_URL
Plan: Hobby-basic
Status: Available
Connections: 7/20
PG Version: 10.2
Created: 2017-12-16 18:16 UTC
Data Size: 1.01 GB
Tables: 43
Rows: 2133750/10000000 (In compliance)
This account is not set to public on notestock.
This account is not set to public on notestock.
@yi0713 ありがとうございます! 実は今はElasticsearchのサービスを使ってて、プランの容量制限の1/5くらいまでたまってます。全トゥートを対象にすると財布の負荷が上がりそうなのでちょっと躊躇してますw
@yi0713 おっと、コード読んでませんでしたがそうかも! Elasticearchのstatusesインデックスは現在804,684ドキュメント、186 MB、Postgresのstatusesテーブルの行数は1,015,436でした。
あとで全トゥート検索やってみます!
This account is not set to public on notestock.
mikutterでツイートするまでがOSのインストールです、とかつて誰かが言っていました
@tSU_RooT いつからだったかLTSじゃない版は9ヶ月で切れるようになりましたねー。とりあえず17.10に上げとくのが安全かも。
This account is not set to public on notestock.
Slackからメンションがあったって教えてもらうんだけどどこのチャンネル?ってしばらく探してから、スレッドだったことに気づくことがあて、うーむ、不便だなこれ。
This account is not set to public on notestock.
「カンブリア宮殿」京都のお菓子、いいなあ懐しいなあ。八ツ橋は皮だけのやつと皮を焼いたやつが好きです。
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
買いましたかいました。直接買うとDRMフリーだよ https://gihyo.jp/dp/ebook/2018/978-4-7741-9658-9
This account is not set to public on notestock.
Spying on a Ruby process's memory allocations with eBPF - Julia Evans https://jvns.ca/blog/2018/01/31/spying-on-a-ruby-process-s-memory-allocations/
This account is not set to public on notestock.
This account is not set to public on notestock.
This account is not set to public on notestock.
マストドンでスタバって書いてスタバじゃないパターンが定番だけど、マストドン検索 by googleでスタバをイメージ検索すると、全くスタバ出てこないのウケル。Googleも混乱してるだろうなw
投稿時にスタバと書いていたら、画像認識に投げて本当にスタバの時に投稿して良いか確認してくるインスタンス #インスタンスアイデア出し