icon

そうそう、このインスタンスはS3を設定してないアプリでビルドして少しだけ動作確認してから、Pipelinesで、S3を設定してあるプロダクション用のアプリにpromoteしてます。ビルド中、assetのprecompile結果の保存先ははS3の設定の有無で変化する模様。果たしてプロダクション用のアプリからはちゃんと供給されてるのでしょうかw

icon

明日見てみる

2017-05-01 03:35:24 zundaの投稿 zundan@mastodon.zunda.ninja
icon

カタン買ったん

icon

@smj@mastodon.sdf.org おはようございます。We also have a rainy morning in Hilo, HI.

2017-05-01 08:12:05 zundaの投稿 zundan@mastodon.zunda.ninja
icon

$ HEROKU_APP=zundan-mastodon heroku pg:info DATABASE
=== DATABASE_URL, PG_HOBBY_BASIC_URL
Plan: Hobby-basic
Status: Available
Connections: 7/20
PG Version: 9.6.1
Created: 2017-04-20 18:31 UTC
Data Size: 36.4 MB
Tables: 26
Rows: 38189/10000000 (In compliance)

icon

@hyuki やっほー!

icon

mstdn.jpでは「remote follow」も「フォロー」と訳されてるような気がする。難しい。

icon

@hyuki コードを見て確認したわけじゃないですが、たぶん自インスタンスが知っている分だけを表示してるんじゃないかと想像してます。下記は mastodon.zunda.ninja で眺めてみる hyuki さん情報。 https://mastodon.zunda.ninja/media/in8yzOQvMApq_22cxJw

Attach image
2017-05-01 14:21:29 zundaの投稿 zundan@mastodon.zunda.ninja
icon

S3無しでプリコンパイルまで進めたMastodonをS3有りの環境で使ってます。プリコンパイルしたアセットはアプリそのものから、S3有りになってからアップロードされたファイルはS3から読むようになっている模様。よかったよかった。 https://mastodon.zunda.ninja/media/ixmNSLwztaWJOhdD8rY

Attach image
icon

疲れてくるとドメインを買いたくなる (やめなされ ((どうせ今まで一個しか買ってないくせに

2017-05-01 21:10:58 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-02 06:53:33 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-02 06:54:24 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-02 06:56:39 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@hyuki 自動車で2時間かかる山の上のマシンのiptablesをいじっててですね、あっ、って。

icon

Slackのチャンネル名、未読の量で色が濃さか変わったらいいのに

icon

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

icon

> SELECT id, created_at, SUBSTRING(text FROM 'Rows:\s+(\d+)\/10000') as rows FROM statuses WHERE text LIKE '%heroku pg:info%' ORDER BY created_at;
id | created_at | rows
-------+----------------------------+-------
24 | 2017-04-15 05:28:12.223335 | 94
202 | 2017-04-15 21:42:48.25086 | 338
256 | 2017-04-16 07:06:29 | 338
700 | 2017-04-17 00:16:53.153108 | 1189
1248 | 2017-04-17 18:14:30.608587 | 2138
2025 | 2017-04-18 17:14:35.338454 | 3498
:

icon

Better?

> SELECT id, created_at, SUBSTRING(text FROM 'Rows:\s+(\d+)\/10000') as rows FROM statuses WHERE text LIKE '%Rows:%/10000%' ORDER BY created_at;
id | created_at | rows
-------+----------------------------+-------
24 | 2017-04-15 05:28:12.223335 | 94
202 | 2017-04-15 21:42:48.25086 | 338
256 | 2017-04-16 07:06:29 | 338
700 | 2017-04-17 00:16:53.153108 | 1189
1248 | 2017-04-17 18:14:30.608587 | 2138
2025 | 2017-04-18 17:14:35.338454 | 3498
:

職場チャットで久しぶりに見た
icon

orz

2017-05-02 15:09:40 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Papertrailさんは画面のどこかにタイムゾーンーをちらっと表示してくれておいたら助かりますのに

2017-05-02 15:53:14 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-02 16:10:38 zundaの投稿 zundan@mastodon.zunda.ninja
icon

So S is for Strict on Windows 10.

Most of my Toots are classified as English and none as Japanese :P
icon

SELECT language, COUNT(1) FROM statuses WHERE account_id=1 GROUP BY language ORDER BY 2 DESC;
language | count
----------+-------
en | 205
ru | 87
es | 20
fr | 20
fa | 7
pt | 6
it | 5
no | 3
pl | 3
nl | 2
de | 2
da | 1
(12 rows)

2017-05-02 17:23:37 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Shall I let this instance use Japanese?

icon

Deployed a slight small improvement on this instance: https://github.com/zunda/mastodon/commit/ab424229894c7989c218ac9f34cbf9f1a3de1dad

Web site image
Avoid overwriting split database and redis split vars · zunda/mastodon@ab42422
2017-05-02 18:07:04 zundaの投稿 zundan@mastodon.zunda.ninja
icon

今日もいちにちお疲れさん

Attach image
2017-05-02 21:18:14 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-03 00:16:18 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-03 00:25:18 zundaの投稿 zundan@mastodon.zunda.ninja
icon

たかはしさん著者だったんだ!

icon

大河ドラマで身元を詐称してる相手と通信しちゃってて、だからTLSにしておけと思ったんだけど、戦国時代じゃPKI無いだろうし、PGPの方が良かったね。

icon

世界中のSidekiqが

icon

世界中のRedisが

icon

怖い考えになってしまったw

2017-05-03 06:58:58 zundaの投稿 zundan@mastodon.zunda.ninja
icon

SELECT text FROM statuses WHERE text LIKE '%検索語句%'; で全文検索

2017-05-03 09:52:05 zundaの投稿 zundan@mastodon.zunda.ninja
icon

言語の判定難しそう

language | ru
text | <p>おはようございます!</p>

icon

I just noticed my handwriting is getting more and more dirty with less use of pens and pencils. Kind of sad.

icon

And this toot was detected as in English :)

icon

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

2017-05-03 17:02:17 zundaの投稿 zundan@mastodon.zunda.ninja
icon

バルスこわい

2017-05-03 17:05:26 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@ms2sato PubさんとHubさん両方ともトゥートが書かれてるインスタンスに居るような気がしますねー。ちゃんと勉強したいなあ

icon

テストですどん

icon

@ms2sato 1個トゥートすると下記のようなログがどばどばどばあっと書かれるので地道にPubしてるような気がします。(Sidekiqもweb dynoで動かしてます)

2017-05-04T04:03:45.426905+00:00 app[web.1]: 17 TID-ov9e86xl4 DistributionWorker JID-d97ca05bd02a01bd8a61c391 INFO: done: 0.307 sec
2017-05-04T04:03:45.430972+00:00 app[web.1]: 17 TID-ov9e86x8w PushUpdateWorker JID-f492e92e5dec54a1f867c8a7 INFO: done: 0.287 sec
2017-05-04T04:03:45.525950+00:00 app[web.1]: 17 TID-ov9e86xf0 Pubsubhubbub::DeliveryWorker JID-60e746a798d9eb5ea1760d92 INFO: start

icon

ぼっちインスタンスに暮しててもFederated Timelineにフォローしてないアカウントからの興味深いトゥートが流れてくるのいいな

icon

@t_trace なるほど!

2017-05-03 19:33:45 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-03 19:33:46 zundaの投稿 zundan@mastodon.zunda.ninja
icon

か、買おうかなあ…

icon

『たとえば「ftp://ftp.debian.org」でアクセスしても自動的に「http://ftp.debian.org」に変換されるという』FTPにもリダイレクトあるん? -- 2017年4月27日 Debian,FTPサーバをシャットダウンへ:Linux Daily Topics|gihyo.jp … 技術評論社 http://gihyo.jp/admin/clip/01/linux_dt/201704/27

Debian mirrors backed by Fastly CDN
Web site image
2017年4月27日 Debian、FTPサーバをシャットダウンへ | gihyo.jp
icon

@EzoeRyou 複数のサーバを走らせておいて、ロードバランサからのリクエストの割り振りを調節しながら、サーバ一台ずつ更新するとか方法はありそうです。データベースのマイグレーションで新旧どちらかのコードが動かなくなっちゃう場合は無理ですが。

ってわかりにくい説明ですみませんです。

icon

こんなIDですが何年か前から大豆アレルギーになって、大好きなマヨネーズ(だいたい大豆油が主成分)をたべられす悲しい思いをしてたのですが、先日やっとみつけました。

ちょっと酸っぱみが強いのですが、サワヤカナカンジでそれもまた良し。
https://mastodon.zunda.ninja/media/9yEZ78B7Gc2DBz5SDD4

Attach image
icon

faviconを団子にしましたよ

icon

@EzoeRyou 経験上ほとんどはカラムの追加なので先にmigrateすれば問題ないことが多そうではありますけど。

icon

仕事中あしもとにじゃれついてくるルンバさんかわいい :) うるさいけどなw

icon

git push --force

May the 4thなだけに

icon

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

icon

$ sudo sync; sudo sync; sudo sync; sudo reboot
(-人-)

icon

@hyuki 某ヘ社みたいだ!

icon

@Gargron How exciting!!1 (While users on Heroku should have been able to use Heroku Scheduler instead :)

icon

@hyuki 気づいた範囲では https://admins.mstdn.social/ とか https://mstdn.techdrive.top/ が近いかもしれませんがむちゃくちゃ活発というわけではなさそう…

icon

@hyuki 12factorでは環境変数に格納しておきましょう、ということになってますが、環境変数をどうやって保持しておくか、という部分は、環境(えーと、どのサービスを使うか)でいろいろと違っているように思えます https://12factor.net/ja/config

The Twelve-Factor App (日本語訳)
icon

@hyuki 僕は職場のプライベートレポジトリが置いてあったりするので余計な権限を渡しちゃわないかとドキドキしますw

icon

僕もオレオレクラウドサービス走らせてみたくなってくるよなあ。やっぱminikube?

icon

@ykzts きゃーw

icon

@ykzts 値段も高そう… (.ninjaは最初の年だけ安くてだまされましたw)

2017-05-04 19:29:18 zundaの投稿 zundan@mastodon.zunda.ninja
icon

masterこわれますたー ←

icon

@ykzts ランドラインは使いまわされたのに当たったことありますー

2017-05-05 07:20:54 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@ykzts ちゃんと追ってないんですが、識別と認証の両方とも電話経由で済んじゃったりするんだと怖そうですよね

2017-05-05 09:33:55 zundaの投稿 zundan@mastodon.zunda.ninja
icon

This instance has been running mostly stable. Peaks in response time correspond to peaks in throughput. Some of spikes in memory consumption correspond to peaks in dyno load, presumably for processing images.

https://mastodon.zunda.ninja/media/KlNpY6kj4edmxxzbJF8

Attach image
icon

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

2017-05-05 10:39:00 zundaの投稿 zundan@mastodon.zunda.ninja
icon

どれじゃろ

$ git fetch upstream
From https://github.com/tootsuite/mastodon
* [new branch] 1.3-stable -> upstream/1.3-stable
2b9bc9c..4e05751 master -> upstream/master
+ 728db4c...f3f7a38 skylight -> upstream/skylight (forced update)

Web site image
GitHub - mastodon/mastodon: Your self-hosted, globally interconnected microblogging community
icon

git commit -aZZってタイプしてどうしたんだろうと思ったら、どうも頭の中だけでvimが起動してコミットメッセージをタイプしたつもりになっていたようだ。ヤバい。

2017-05-05 12:25:51 zundaの投稿 zundan@mastodon.zunda.ninja
icon

Google+の立場が…

icon

Six more e-mails to go and I'll go and eat some ice cream, hopefully!

icon

Four - this one will take time...

icon

Three!

icon

One ... another heavy item :)

icon

Zero! Ice cream!

icon

@mazzo 美徳だ!

icon

Now I have 16 e-mails in inbox. Feels better than earlier this week :)

icon

あー

メディアファイルもDNSの後に隠しておけば実体を移動できたんだねえ

icon

ま!

icon

@hyuki はい、その通りです。さらに、Review Appを作れるようにする、という最初の目的は、tootsuite/mastodonては重要ではない(Herokuで開発を進めているわけではない)ので、あの変更は各自のcloneに入れるべきという結論も得られました。

icon

@hyuki Heroku Buttonの利点と欠点、おっしゃる通りだと思います。さらに悪いことに、実は、Heroku Buttonで作ったアプリには同じくらい手軽にコードを更新する方法がないんですよね。

icon

@hyuki なんてこと!実はPipelinesを使っていればGitHubへのpushで自動的にstagingのアプリ作って起動するところまで行けて、ざっくり動作を確かめたらさっくりproductionにdeployするまでできるんです。Release phase commandも使うとassetのコンパイルも自動的にやってもらえます。またの機会があればお試しくださいまし。

- https://devcenter.heroku.com/articles/pipelines
- https://devcenter.heroku.com/articles/release-phase

https://mastodon.zunda.ninja/media/90Cverwyyr9tfd1gDC4

Web site image
Pipelines | Heroku Dev Center
Web site image
Release Phase | Heroku Dev Center
Attach image
icon

とりあえず mediadon.zunda.ninja 作ってみたらS3バケットにHTTPSでアクセスできなかった。そらそうだw

あとは明日考えよう

icon

HTTPでもNoSuchBucket。デスヨネー。

icon

@tdtds いつだっけ、と思って調べてみたら1年弱前からpublic betaだったようです https://devcenter.heroku.com/changelog-items/908 でもまだGAじゃないんですよねー。なんでじゃろ…

Web site image
Release phase (public beta): run any command before a new release is deployed | Heroku Dev Center
icon

もしかしてFastlyお試しの機運…アプリ本体の設定でなんとかならないことは後回しにしませう

2017-05-05 23:34:43 zundaの投稿 zundan@mastodon.zunda.ninja
icon

うーん、S3にカスタムドメインのサーバ証明書のっけるの、ELBとか要りそうよね

icon

@tdtds なーんと…

icon

@ykzts むむむ

2017-05-06 02:25:55 zundaの投稿 zundan@mastodon.zunda.ninja
icon

$ git fetch upstream
$ git checkout zunda-ninja-on-heroku
$ git merge v1.3.3
Removing app/workers/application_worker.rb
Auto-merging Procfile
CONFLICT (content): Merge conflict in Procfile
Automatic merge failed; fix conflicts and then commit the result.

sidekiqの-qオプションが指定されなくなりましたね。

icon

Cool. Source code for this instance will almost always likely be found at https://github.com/zunda/mastodon/tree/zunda-ninja-on-heroku

Web site image
GitHub - zunda/mastodon at zunda-ninja-on-heroku
icon

Full of backtraces from workers having difficulty in delivering my toots to remote:

2017-05-06T19:33:55.875308+00:00 app[web.1]: 17 TID-ox7ofj7is WARN: HTTP::TimeoutError: execution expired
2017-05-06T19:33:55.875365+00:00 app[web.1]: 17 TID-ox7ofj7is WARN: /app/vendor/bundle/ruby/2.4.0/gems/http-2.2.2/lib/http/timeout/per_operation.rb:25:in `initialize'
2017-05-06T19:33:55.875366+00:00 app[web.1]: /app/vendor/bundle/ruby/2.4.0/gems/http-2.2.2/lib/http/timeout/per_operation.rb:25:in `open'
:

icon

And removed the daily scheduler task

icon

@t_trace Who's there?

2017-05-06 12:34:51 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-06 13:19:26 zundaの投稿 zundan@mastodon.zunda.ninja
2017-05-06 13:19:28 zundaの投稿 zundan@mastodon.zunda.ninja
icon

@t_trace lol That's no longer needed from 1.3.3 :)

icon

スーパーの駐車場でTesla Sとすれ違った。かっこいいよなあ。

icon

@ms2sato 骨を年代測定したら13萬年前のものだったそうで(なんのはなしw)

icon

素因数分解ボットをスケールできるようにしてKubernetesで稼働させてみたいとか変なこと考えてるんだけど、まずRedisの型の使い方からして良い考えを思い付けないという

2017-05-06 22:31:05 zundaの投稿 zundan@mastodon.zunda.ninja
icon

At least onceでいいことにすればなんとかなるのかな?