はてなキーワード: bitとは
字数があふれたので分割。
・VMR寧々子ちゃん(twitter.com/neneko_and_Dr)
遊戯王好き繋がり。
ねねビットらじお!(トライエース作品語り)にて初コラボ。(www.youtube.com/watch?v=Xq4q2ZlqYKA)
遊戯王関係のコラボも行っている。(www.youtube.com/watch?v=6eJ5ZbuFuxc)
姉ちゃんのモノマネをしたことがある。(www.youtube.com/live/dCMjAp-uzSI?feature=share&t=1385)
・横井bit子⇒横井ビト子(twitter.com/yokoi_bitko)
ねねビットらじお!(トライエース作品語り)にてコラボ。(www.youtube.com/watch?v=Xq4q2ZlqYKA)
・イヌージョン(twitter.com/inu_sion_dog)
推されていてチャット欄によく表れた。
BANトーク(ジョジョ5部)にて初コラボ。(www.youtube.com/watch?v=F6CfOG7kwTE)
以降様々なコラボをしている。(www.youtube.com/watch?v=zfY1A92QfLA)
配信中のマシュマロで姉ちゃんが取り上げられた。(www.youtube.com/live/0eD3e1SEsS4?feature=share&t=1740)
同人マンガの主人公に起用されたことがある。(www.melonbooks.co.jp/detail/detail.php?product_id=512621)
姉ちゃんのファンアートを多く描いている。(twitter.com/inu_sion_dog/status/1394954981611032576)
クゥ画廊のメインビジュアルを担当した。(twitter.com/inu_sion_dog/status/1394954981611032576)
現在休止中。
飼い主については絶賛活動中。(twitter.com/mol6251)
・天開司(twitter.com/tenkaitukasa)
BANトーク(ジョジョ5部)にて共演。(www.youtube.com/watch?v=F6CfOG7kwTE)
以降、BANトーク関係で数度共演。(www.youtube.com/watch?v=HC5wrgqJhB4)
2018年振り返りで一瞬だけ名前が出た。(www.youtube.com/live/KLsJ38g8qfI?feature=share&t=546)
姉ちゃんを呼び捨てで呼ぶ人って相当レアだと思う(他にいないのでは)。
・佐藤ホームズ(twitter.com/satouholmes)
(www.youtube.com/watch?v=txL9XfNc6zw)
(www.youtube.com/watch?v=ReOjDWrtSO4)
・星城勝⇒星城ジョー(twitter.com/Say_Jo_Jo)
BANトーク(ジョジョ5部)にて共演。(www.youtube.com/watch?v=F6CfOG7kwTE)
活動休止中。
・ふくやマスター(twitter.com/lesupo_ru321id)
・かぴこ(twitter.com/kapiko_vtuber)
・レンガ塔男爵(twitter.com/baronbricktower)
BANトーク(ロックマンエグゼ)にて共演。(www.youtube.com/watch?v=dyp292EIFdY)
BANトーク(ロックマンエグゼ)にて共演。(www.youtube.com/watch?v=dyp292EIFdY)
引退済。
BANトーク(ジョジョ6部)にて共演。(www.youtube.com/watch?v=HC5wrgqJhB4)
引退済み。
・ディープブリザード(twitter.com/mao_DBmiyuki)
コラボ以外でも関りがあった。
ファンアートやファンモデル(twitter.com/mao_DBmiyuki/status/1080618531731922945)を描かれたこともあった。
コラボとしてはクゥラジ(アイカツ!語り)のみであった。(www.youtube.com/watch?v=Dz9OqsrgIO0)
・白鳥天羽(twitter.com/Shiratori_Amaha)
クゥラジ(アイカツ!語り)でコラボ。(www.youtube.com/watch?v=Dz9OqsrgIO0)
・高峰伊織(twitter.com/takamineiori)
クゥラジ(アイカツ!語り)でコラボ。(www.youtube.com/watch?v=Dz9OqsrgIO0)
クゥラジ(アイカツ!語り)でコラボ。(www.youtube.com/watch?v=Dz9OqsrgIO0)
引退済。
・白花咲(twitter.com/shirahana_saku)
クゥラジ(シャーマンキング語り)にて初コラボ。(www.youtube.com/watch?v=zUHpLJXTeIY)
以降クレヨンしんちゃんの同時視聴、ミリオネア、雪山人狼と複数回のコラボを行っている。
(www.youtube.com/watch?v=3aNZvn9i2gw)
(www.youtube.com/watch?v=erpjO28G18g)
(www.youtube.com/watch?v=cmMJGX96Mnw)
最近は休止中の模様。
・探跡家もっけい(twitter.com/mokkei_VE)
クゥラジ(シャーマンキング語り)でコラボ。(www.youtube.com/watch?v=zUHpLJXTeIY)
チャット欄でよく見かけた。
・さはな(twitter.com/sahana_virtual)
クゥラジ(VTuberの動画・配信の作り方)にて初コラボ。(www.youtube.com/watch?v=y8g1xltBpCY)
姉ちゃんの使っているPerception Neuronについて驚愕していた。
そのあと、スマブラ動画に出演。(www.youtube.com/watch?v=6KdDK6QOhc8)
・世界クルミ(twitter.com/Kurumi_Ojisan)
クゥラジ(VTuberの動画・配信の作り方)でコラボ。(www.youtube.com/watch?v=y8g1xltBpCY)
姉ちゃんがよく見ていると配信で話していた。(www.youtube.com/watch?v=1PX2QyrfprE)
・マリー・アンドロイド(twitter.com/Jinbey_Aoyama)
・有栖川ドット(twitter.com/dot_alicechan)
・ンヌグム(twitter.com/_nugumu)
クゥラジ(VTuberの動画・配信の作り方)でのアンケート企画に回答。(www.youtube.com/watch?v=y8g1xltBpCY)
・コハク(twitter.com/kohaku_55555)
休止中(引退?公式HPも無くなってる…)(kohaku.localinfo.jp)
・バーチャルねこ(twitter.com/neko_vtuber)
クゥラジ(音楽語り)にてコラボ。(www.youtube.com/watch?v=nXV3JD2Hzcw)
裏でゲームを一緒にやっていたことが明かされている。(twitter.com/koo_fran_zopar/status/1067087849885859845)
・ワニのヤカ(twitter.com/C_Yaca)
・N-TO(twitter.com/ASSISTANT_ROB)
クゥラジ(音楽語り)にてコラボ。(www.youtube.com/watch?v=nXV3JD2Hzcw)
・ユキミお姉ちゃん(twitter.com/az_yukimi)
グリットマン同盟コラボにて共演。(www.youtube.com/watch?v=bPaPbMdFlQ4)
・あさひなゆうひ(twitter.com/asahina_yuuhiVY)
・炎城寺カケル(twitter.com/ennjouji_kakeru)
・寧々寝あげは
遊戯王デュエルリンクスコラボ(あさひなゆうひ主催)にて共演。
・竜宮コク(twitter.com/ryugu_koku)
・紫妃小夜音(Twitter削除)
引退済。
・さえきやひろ(twitter.com/saekiyahiro)
「クレヨンしんちゃん 嵐を呼ぶ!夕陽のカスカベボーイズ」同時視聴にて初コラボ。(www.youtube.com/watch?v=dKBo1P5SEUQ)
(www.youtube.com/watch?v=erpjO28G18g)
(www.youtube.com/watch?v=cmMJGX96Mnw)
・上糸レイン(twitter.com/ueito_rein)
「クレヨンしんちゃん ガチンコ!逆襲のロボとーちゃん」同時視聴にてコラボ。(www.youtube.com/watch?v=_6mnS4GRaDA)
休止中(引退?)。
・ソフィアコード(twitter.com/Sophia_Code)
ミリオネアにて初コラボ。(www.youtube.com/watch?v=erpjO28G18g)
(www.youtube.com/watch?v=erpjO28G18g)
(www.youtube.com/watch?v=cmMJGX96Mnw)
そのすぐ後くらいに引退。
金平あめという似た声をしたVTuberがこの後活動開始している。(twitter.com/ame_kanehira)
・ライラ・エディタ(twitter.com/Lyra_Editor)
雪山人狼(ミリオネア組)にてコラボ。(www.youtube.com/watch?v=cmMJGX96Mnw)
引退済。
・らんまる(蘭 丸乃)(twitter.com/RanmaruChannel)
雪山人狼(ミリオネア組)にてコラボ。(www.youtube.com/watch?v=cmMJGX96Mnw)
・彩音れおん(twitter.com/Leon_Ayane)
・小日向りゅーじ(小日向りゅーこ)(twitter.com/ryuji_kohinata)
・星乃歌カズ(twitter.com/Hoshinouta_Kaz)
雪山人狼(れらたん主催)でコラボ。(www.youtube.com/watch?v=cmMJGX96Mnw)
・薄暮一縷(twitter.com/Hakubo_Ichiru)
雪山人狼(れらたん主催)でコラボ。(www.youtube.com/watch?v=cmMJGX96Mnw)
休止中(引退?)。
・むらさきあんこ(twitter.com/NekomesiGozen)
「でびるメイドCafeへようこそ♪」にてコラボ。(www.youtube.com/watch?v=Njp4vH8mLoM)
チャット欄でよく見かけた。
・そらのももか(twitter.com/sorano_momoka)
「バーチャルさんはみている第一話同時視聴にてコラボ。(www.youtube.com/watch?v=DTcSWjJD0ng)
(クゥ画廊にも寄稿)(twitter.com/sorano_momoka/status/1096778798945599488)
青沼大地といとこ。(twitter.com/aonuma_daichi)
・ガニメデ(twitter.com/ganimedevyt)
「バーチャルさんはみている第一話同時視聴にてコラボ。(www.youtube.com/watch?v=DTcSWjJD0ng)
チャット欄でよく見かけた。
・アズオート(twitter.com/azoth_badgame)
(twitter.com/azoth_badgame/status/1127441884920418304)
(twitter.com/azoth_badgame/status/1185512607655981056)
アーカイブはどちらも非公開済み。
・バーチャルバナナ(twitter.com/VirtualBa7)
グルーヴ地獄Vにて共演。(twitter.com/azoth_badgame/status/1127441884920418304)
・アンネリリーゼ(twitter.com/rottelia666)
・真園あきら(twitter.com/ryonaxlove)
ジーコサッカー(偽)にて共演。(twitter.com/azoth_badgame/status/1185512607655981056)
・ナタシア(twitter.com/devilnatashia)
非コラボ。
(クゥ画廊にも寄稿)(twitter.com/devilnatashia/status/1105015217866530816)
I spent 3 weeks in Thailand last November then went to Japan straight after and it was a massive relief. Thailand is nice but the country just feels like it's catered completely to tourists so I never felt that nice culture shock buzz, plus people just bark at you left right and centre trying to take your money 24/7. Japan is a bit harder to travel around if you don't speak Japanese and it feels a bit harder to make friends but it's just a lot calmer, respectful and there's interesting places and history to experience as opposed to just getting smashed at bars and lounging on a beach everyday
昨年11月にタイに3週間滞在し、その後すぐに日本に行きましたが、とても安心しました。タイはいい国ですが、完全に観光客向けの国という感じで、カルチャーショックを受けるようなことはありませんでしたし、24時間いつでもお金を取ろうとしてくる人がいます。日本は、日本語が話せないと旅行しにくいし、友達を作るのもちょっと大変だけど、毎日バーで飲んでビーチでのんびりするよりも、ずっと穏やかで礼儀正しく、面白い場所や歴史に触れることができる。
日本はこれからますます観光業に依存していくだろうけど、あまり観光客にすり寄りすぎるとむしろ日本の魅力が失われてしまうだろうな
日本の独自性を維持しつつも観光客フレンドリーな国にしていくことが求められている
You know that recently published Cochrane review that some have claimed as evidence that face masks don’t work? Well, have some of these claims been a bit, shall we say, too cocky and not Cochrane-y enough? Well, in a statement issued on March 10 by the Cochrane Library, Karla Soares-Weiser, MD, PhD, MSc, Editor-in-Chief of the Cochrane Library, emphasized, “Many commentators have claimed that a recently-updated Cochrane Review shows that ‘masks don't work,’ which is an inaccurate and misleading interpretation.” Yikes.
最近発表されたコクラン・レビューで、フェイスマスクが効かないという証拠だと主張する人がいるのをご存知でしょうか。その主張の中には、ちょっと、言うなれば、生意気すぎるし、コクランらしさが足りないものもあったのではないでしょうか?コクラン・ライブラリーの編集長であるKarla Soares-Weiser(MD、PhD、MSc)は、3月10日に発表した声明の中で、「多くのコメンテーターが、最近更新されたコクランレビューが『マスクは効果がない』ことを示していると主張していますが、これは不正確で誤解を招く解釈です」と強調しました。うわぁ。
なんで0OR100で語りたがるんだろうな?
マジの頭1BITじゃん。
ミッキーのイラストをAIが出力してディズニーがキレたらアウトだけど、そういうのでもないなら別に問題はないだろ。
市民プールで特定の相手を追いかけながらプールの水を飲み続けるやつは変態だけど、大勢が入ったあとのプールの水を飲むやつはただのバカで終わる。
結局は濃度の違いなんじゃねえかと思うわけよ。
そこで濃度100を想定した結論ばかり出すのも、濃度0.000001を想定した結論ばかりを出すのも、等しく頭悪いとしか思えねえんだよなあ。
A:はい、私はアセンブリ言語のコードを記述することができます。アセンブリ言語は、コンピュータのプロセッサが理解できる低水準の機械語命令に直接対応するプログラム言語であり、CPUの命令セットアーキテクチャに依存するため、異なるCPUアーキテクチャに対して異なるコードが必要です。
以下は、x86アーキテクチャ向けの単純なアセンブリ言語の例です。これは、メモリの特定の場所にある2つの数値を加算して、結果をレジスタに格納するプログラムです。
Copy code
section .data
num1 dd 10 ; Define num1 as a double word (32-bit integer) and set its initial value to 10
num2 dd 20 ; Define num2 as a double word and set its initial value to 20
section .text
global _start ; Declare the entry point for the program
_start:
mov eax, [num1] ; Move the value of num1 into the eax register
add eax, [num2] ; Add the value of num2 to the eax register
mov [result], eax ; Move the value in eax to the memory location "result"
section .data
result dd 0 ; Define result as a double word and set its initial value to 0
このプログラムは、num1の値をeaxレジスタに移動し、num2の値をeaxレジスタに加算し、最後にeaxレジスタの値をresultメモリアドレスに保存します。
文系学問は文系でもできる範囲で発達しているに過ぎないと思う。
物事には理系にしかできない論理構造というのがあって、それが必要なものについてはいまだ解明されていないと思う。
文系の論理はなんというか線条的なんだ。ああなったら、こうなるという論理。雨降って地固まるというような思考様式さえ理解できるなら片がつく。双方向的な論理もあるかもしれないが所詮は一次元のなかでのUターンに過ぎない。
俺はディ二の定理もガウス積分も「理解できない」ことで完全に理系の素養がないと悟った何者かである。
https://mathlandscape.com/dini-theorem/
たとえば上リンクのディ二の定理の説明に使ってるグラフによる関数列の定義が理解できない。
fn(x)についてfn(2/n)=1とは一体どういうことだと言うのか。
xについて解けばn=2のときx=1らしそうだがそれってどういうことなのか。つまり関数列のxを固定して数列としてみたfn(1)についてn=2のときの項は少なくとも1だということになるがそれ以外のnについても項が全く不明ではないのか?
ガウス積分も同様だ。どうしても変数変換のところで理解が追いつかない。rとθが同時に動くような状況を理解しなくてはいけない。高校の置換積分とは理解に必要な脳のスペックCPUでいうならbit数が根本的に違う。
ようするにこれらは変数の数の問題だ。文系の論理は変数でいえば一個の変化を辿っていくようなものでしかない。
しかし理系のそれは二個以上が容赦なく変化するような論理の流れを追えなければ理解が追いつかないということになる。
しかし私のような人間は一つの変数についてたどろうとするとそれ以外の変数に対する考慮がおろそかになってしまうような理解しかできないのだ。
この状況は絡まった糸で例えられるかもしれない。糸の端が外側に出ているという前提であれば、複数の糸がそのように絡まった糸玉に対してある端から辿ってその糸の別の端を探すということはできるはずだ。
理系がやばいのはこの辿るという作業を二つ以上の糸に対して同時に行えてしまうようなところにあるのだと思う。とてもじゃないがワーキングメモリーが足りねえよ。
つまり二つ以上の変数を一挙に思考の範囲内に収めてみんなまとめて辿れてしまうんだ理系ってのは。
応用数学を解いたり、初等的な計算が早かったり、フラッシュ暗算が得意だったりというところだ。なかには理系以上の計算力を持ってる人もいる。
しかし理系もみんなそれなりの計算力はあるのである。大事なのは、計算力があるなら理系であるとは限らないこと。百ます計算や公文式で得意げになってる子供に理系としての将来を期待するのは早計なのだ。
だって俺でもガウス積分を使わなければならない問題でも一定の演習を積めば答えの法則をそれとなく察してパズルのように解けるようにはなってしまうと思うから。高校数学の延長上の応用数学はみんなパズルである。ナンプレと大差ない。パズルとして解こうとする限り計算問題はみな線条的な論理理解力があれば事足りるのである。
しかし原理的な理解がなければ既存の定理を発展させることはできない。
実は文系という人間にありがちと思われるのは、正しく新しい定理を証明までできた気になって得意げになってるか、既存の定理について延々と具体的な数値を代入してみたりして納得を試みようとするが一般的にそうだと言えることについてはついに何度人に教えてもらってもいまいち理解には辿り着けないかのどっちかだろう。
前者は無知の知すら弁えてない傲慢な人間、後者は合理的な知性主義によって既存の知性となんとかすり合わせを行おうとしているがそれができない、という違いだ。
ちなみにツイッターに棲息していがちな、法律の話で独自解釈をしているのにそれに気づかない人間は前者である。
やや急進的な言い方かもしれないが、位相集合を基盤とした数論幾何をはじめとする現代数学と一部の物理以外はだから文系なのである。理論や主張を腹落ちするのに複数の糸を同時に辿れるような能力はいらない。
というかそういう人間しか研究に携わってきてないから、そこから出力される理論もその程度なのだろう。理系の頭をもってしか理解できない領域が人文社会科学にもあるならば、それについてはいまだベールに包まれたままなのかもしれない。しかしなぜか真の理系人間の誰一人として文系学問には進まないか、文系学問において理系脳をフル回転させようとしないのだと思われる。
dorawiiより
hi, i live very close to MSU. I had plans to be at the Union Building that evening to work on some stuff at one of the tables or glass study room things in the basement. it's only be coincidence that I was not there, because I had to go home to fix a computer that had stopped working correctly. I got lucky.
i went there this morning, to the Sparty statue. I was there for a bit.
I hear there's some stuff at the Hannah building, resources, people to talk to, etc. You might consider going there.
StableDiffusion系はbf18,fp16,8-bit adamなどで8GB程度でも動くようになったが、追加学習をしようとすると足りない。
日々HuggingFaceに投稿される言語系AIや音声、言語と画像・動画を組み合わせといったのになると、24GBでは足りない。
80GBで足りないのも出てきている。、
GPUは8枚まで並列に出来るので、80GBx8枚=320GBといったのになっている。
結局チューニングしないとそれほど役に立たず、お高めのパソコンで個々人でチューニング出来るとありがたいのだ。
CXL(Compute Express Link)というメモリ拡張用のバス規格が数年前にでき、製品も出始めている。
今までだとCPUからGPU側のメモリにコピーだったのが、アクセラレータから参照も出来るようになるらしいのだが、今の所サーバー向けらしい。
まぁ手段はなんでもいいんだが、VRAMの容量が増えればいい。
アカデミー賞でウィル・スミスが妻(ジェイダ・ピンケット)の病気の件を馬鹿にされ、プレゼンターのクリス・ロックをビンタした件。
暴力が駄目なのは解る。暴力でやり返さなかったクリスが立派なのもわかる。
でも結果ウィルが処分を受け、クリスがお咎めなしで終わったの納得いかない。
ウィル・スミスがビンタした件、日米で温度差があるのは何故なのか? アメリカ人記者に聞いてみた | ロケットニュース24
rocketnews24.com/2022/03/30/1616848/
日本に伝わりづらい「ウィル・スミスがビンタした件」について / アメリカ在住日本人の話が目からウロコだった | ロケットニュース24
rocketnews24.com/2022/03/31/1617141/
でも、過去には世界的な晴れ舞台、グラミー賞の授賞式でスティービー・ワンダーの身体の件を馬鹿にしたアンディ・ウィリアムス、数年に亘って司会を務めてきたが次の年に降ろされた。
グラミー賞秘話~こんなことあったの知ってます? | 侍ヤンキースのブログ
ameblo.jp/samurai-yankees/entry-10205069373.html
1977年の第19回のグラミー賞のホスト~アンディ・ウィリアムス
その年のグラミー賞の目玉の一つは受賞式の当日、ナイジェリアにいて当時としては珍しい衛星中継で演奏を披露する予定のスティービー・ワンダー
しかし、本番中にアクシデントが起った。当時の衛星中継の技術がイマイチだったので「Sir Duke(愛するデューク)」を歌い始めたスティービーの映像や音声が乱れ、途切れ途切れに
で、その時、司会をしていたアンディ・ウィリアムス。~彼がふざけた感じでこんなことを言ってしまったのだ。盲目のスティービーに対し
「Stevie, can you see us now?(スティービー。今、僕らが見えるかい?)」
勿論、その言葉は顰蹙を買い、翌年からグラミー賞のホストはジョン・デンバーに代わった。アンディ・ウィリアムスはその後、謝罪のコメントを発表している。
Grammy TV Show Is Smooth but a Bit Silly - The New York Times
www.nytimes.com/1977/02/21/archives/grammy-tv-show-is-smooth-but-a-bit-silly.html
“The 19th Annual Grammy Awards” have been concocted for the recording industry. The production was flawed with technical difficulties, most notably in an elaborate and expensive live‐via‐satellite transmission of Stevie Wonder from Nigeria.
The picture came through well enough, but the sound was thoroughly garbled. Instead of quickly abandoning the project, the producers kept going back to Mr. Wonder in an apparent bid to recoup part of their satellite investment. A flustered Andy,,Williams. the slick host for the affair, found himself asking the blind singercomposer, “If you can't hear me can you see me?” Mr. Williams recovered with a rapid apology.
note.com/nipponcontext/n/nda946921b305
スタンドアップコメディアンは、アメリカ社会唯一の例外として「何を言ってもいい」という特権が認められている。たとえそれが差別的な言辞であっても
コメディアンならTPO問わずどんな場面でも他人の身体を馬鹿にしてOKなの?
コメディアン自身の舞台でなら許される、ってならまだまあ理解できなくもないが。
世界的にも注目される晴れ舞台、米国スーパーボウルのハーフタイムショーに於いて出演するラッパーはダーティな言葉を差し替えてる、TPOを考慮して。
Dr. Dre, Snoop Dogg, Eminem, Mary J. Blige, Kendrick Lamar & 50 Cent FULL Pepsi SB LVI Halftime Show
youtu.be/gdsUKphmB3Y?t=424
https://b.hatena.ne.jp/entry/s/www3.nhk.or.jp/news/html/20220708/k10013707601000.html
id:hkanemat 安倍は 1 bit も支持しないが、かと言って暴力で排除するのはだめだ。
id:kanjin30203 思想政策はまったく相容れないが、これは明確にテロで認められないだろ…。ていうか銃って何!?この国そんなに治安悪かったっけ?
DeepLで翻訳してみた
The main issue...the bid price has been reaching ¥80/kWh every day since the beginning of the year.
I can finally get into what I really want to tell you.
The reason why new power companies have stopped accepting bids or have withdrawn from the business is because the days when this JEPX spot market price reaches 80 yen/kWh have been going on and on since the beginning of 2010.
The electricity market is a market. If there is a surplus of electricity, the bid price goes down, and if there is a shortage of electricity, the bid price goes up. The spot market is a blind single-price auction, which means that once a contract price is determined, all market prices are traded at that price. Even if Masuda-san bids 10 yen, if many people bid 20 yen, it will be 20 yen, and if many people bid 5 yen, it will be 5 yen.
And as I said before, if they fail to purchase, the power retailer has to pay the imbalance fee.
Then what happens? Many people think, "I'm going to buy it at the imbalance fee of 80 yen/kWh anyway, so I'll bid 80 yen for it. Here is the URL of Enexchange's website, which shows the spot market price in an easy-to-understand manner.
https://insight.enechange.jp/markets
For March 31, it's in the 20 yen range. That's bright red. It is cheaper than the 80 yen I mentioned earlier.
Imagine this. TEPCO's Standard S plan is 20~30 yen/kWh. You see, what we sell for 20-30 yen, we have to buy for more than 20 yen, or even 80 yen.
How much is the gross profit on something that sells for 25 yen? 8 yen, 5 yen, 3 yen? Let's assume that 90 out of every 100 jobs generate a gross profit of 5 yen, which is a profit of 450 yen. If 10 out of 100 sell at that price, the profit is 550 yen.
450 - 550 = -100.
This is the impact of a spot market price of 80 yen. Imagine if you had a customer base of tens of thousands of dollars, and you have to blow millions of dollars every day for a month. I think you can understand a little bit of the logic behind the suspension of acceptance and shutdown of business.
Of course, calculating the cost of procuring electricity is not this simple. I mean, I can't write about the inside story of procurement in my business because it would violate confidentiality. I wrote what I could find out just from the spot market, where the amounts are visualized by the general public. I didn't tell the whole story, if you think about it. Sorry. It's a title fraud.
Supplement... why is this happening?
To be honest, even as someone in the new power company, I am troubled by this situation. How did this happen? ......
In essence, I think "don't liberalize the infrastructure in the first place" is right. However, to put some position talk into it, I think that the various things that happened in the aftermath of Fukushima and the licking at the Kashiwazaki nuclear power plant were the result of being lenient because it was infrastructure, and I think there is some nuance to that.
However, I don't think that the designers of the system anticipated this level of instability in the power supply when the system was liberalized in April 2004. I was impressed when the supply-demand crunch warning came out. I was like, "This is it! That rumored !!!! Supply and demand crunch alert: !!!!!!!" I was so excited. There's no way there's going to be rolling blackouts! It's about to happen!
However, in the extreme, retailers are wholesalers, and while they are wholesalers, the products they sell are not all that different. How can you make a difference in a commodity like electricity? It is usually impossible. It's hard to add value to a product because it's all about price. Of course it's not impossible. There are plans, decarbonization, optional services, and so on. But there is no difference in the electricity itself. I think it's possible to point out that the reason why various new electric power companies flocked to the market was because hyenas gathered in the industry that was assured of a sweet deal in infrastructure ......, and that's true for a percentage of the population. I think all electric power companies are looking for ways to add value to electricity.
I hope this case will make the market healthier.
Incidentally, there is a new electric power company that is getting a tailwind from this current situation. Where is it? The answer is after the commercial!
https://www.nhk.jp/p/bs1sp/ts/YMKV7LM62W/episode/te/XLJ547N44X/
こちらを見て、正直いって、25%ぐらいはいいこといっていたが75%が酷すぎたと思う。
【前提となる自分の背景】
===(Nスペ目次)=====
===(Nスペ目次)=====
もう、10年何をしてきたのかという諦めの気分。いま目次を書いてみると、たしかに1時間で
まとめるとこうなるのもやむ無しという気がしてきたが。結局 so whatが無いんよ。
自分が思うso whatは個人単位の戦争をすればいいので「日本で勝負するのは辞めよう」
未だに海外に行かない日本人研究者層が歯石のように積もり積もって自分の首を締めていると思う。
特にドン引きしたのが、ネパールの人材の青田買い。何をしているかというと、「早めに内定を出して日本語教育をしている」
ということ。インド人エンジニアには見向きもされないから、更に安い国としてネパールを選択し、その安物エンジニアを供給
しようとしているようだが、はっきりってその見向きをされていないインド人にどれだけお金を払うかの方が大事。
安いエンジニアは誰も要らない。
わざわざ日本語を勉強してこようみたいなモチベーションのネパール人が使えるわけがない。SIerの下請けにしかこない。
私はカンボジア人のエンジニアと仕事をしていたが、当然英語だし、たしかにコストは安いし、その割に国のトップみたいな
人材だが、その人がわざわざ日本語しかできない人と働くとは思えない。
そういう楽をした内向きの戦い方が全ての元凶だろう。
自分さえどうとでもなればよいという考え方の方が実は日本を救うと思う。いま一時帰国して、この番組を見て
理系人材の扱いが自分の卒業した12年前時点と1bitも変化していないことにショック。
日本の若者がむしろ自分の内向き志向をコロナ等で深めている気がしていることを憂慮する。
松尾豊さんが言っていた「兵站がない」っていう言葉、日本人はとても好きなんだけど、兵站って無限にないんすよ。
僕は国力を上げるにはもう中国化するしか無いと思う。権力への批判機構みたいなのが多少弱まろうが、兵站がない以上
ただし、理系においてはITのような【今トレンドである】ようなものやAIのようなチャラチャラした学問ではなく
、生命科学、物性、宇宙、ITのすべての学問に戦力的集中を行う。
その代わり文系人材、F欄大学などは廃止する。申し訳ないが、これをやらない限り、日本全体が沈下する。
しかし、そしておそらくみんなそれでいいと思っている。なので、そりゃ無理よ。
阪大生命科学の人がオートファジーみたいな研究は芽が出ないから選択と集中を行われては困るというような
言い方をしていた、それは本当にそのとおり。しかし、選択と集中を行わないために選択と集中を行う必要がある。
シャープが選択と集中を進めた結果潰れたのではなくて、選択と集中をしても潰れる流れをせき止めれなかった。
文系の教授のウクライナ情勢での解析の体たらくを見ていてもドン引きする。置きにいったコメント。自分は専門外だからと
小泉特任講師のように画像解析など普通にするべき理系的アプローチも解析もできず、歴史というわかりにくい概念でけむにまくだけで、
この千載一遇の研究結果を元にissueを提言するべきところで何もできていない。
はっきりいって文系という学問がそういう性質があるのはやむをえないがそういう置きに行くことをしていると、当然
なりふり構わない、中国などに勝てるわけがない。日本人全体が苦手なので、玉虫色にしたがって、その結果兵站が
尽きる。当たり前のことである。
浅~~~~~~い!!!!
https://twitter.com/defencewithac/status/1501006258899460103
One thing that's being lost in all the talk of Russian logistical difficulties is the presence of and resistance of the Ukrainian army, both regular and reserve.
The narrative seems to have grown of late that the only reason the Russian forces aren't pushing forward faster and further is because of a lack of fuel for vehicles and food for its troops. This is exemplified by the discussion around "the column" north of Kyiv.
But that does a disservice in some respects to the thousands of Ukrainian troops fighting a bitter battle in front of the Russians. Yes, the supply problems are not helping Russia, but it's simply not the case that if they just had fuel they would be able to advance unhindered
There are many brigades holding the line around and inside Kyiv, providing a blocking force that is putting up a determined resistance to the Russian advances. This is not just scattered handfuls of SF and near partisan forces, this is several brigades of regular troops
Similarly, to the east of Kyiv there is something on the order of at least 8, and as many as 12-13 brigades, regular and reserve, holding a line that runs roughly to Kharkiv, down to the Donbas front, to Mariupol and back towards Zaporizhzhia.
That, arguably more so than logistic issues, is what has been holding the Russian tide back this long. Strung out their elements may be, but they're still providing a determined resistance across the majority of the front. The problem is for how long?
As much as they've been taking a toll on the Russians, they've been suffering casualties of their own, expending stocks of ammunition and losing critical equipment like tanks, artillery, and other armoured vehicles.
Even the Ukrainian defence ministry seems worried about the build up of Russian forces occuring in front of these positions and the fraility of their defensive line. Despite the stream of images of burning or captured Russian kit they've been advancing steadily this whole time
And while everyone focuses on Kyiv and the idea that the Russians are planning to storm the city block by block (which seems highly unlikely when they can just shell it to pieces from the outside), a lot of people have been missing the real danger in the east and south.
One area of interest is the Russian build up to the west of Kharkiv, which seems likely to result in a push towards Poltava and behind it, Kremenchuk, home to one of the few bridges across the Dnieper from there all the way south to Zaporizhzhia.
To the east of that, there is serious concern about a possible Russian thrust in the region around Izyum-Slovyansk-Severodonetsk, with the real risk of some Ukrainian forces being pocketed in the later
Equally as concerning, Russian forces have moved up to the area around Vasylivka-Orikhiv and are poised to move on Zaporizhzhia, which possesses the southern most bridge across the Dnieper available to the Ukrainians.
Not that this bridge doesn't need to be captured, nor even the city. The Russians merely have to get close enough to deny its use through artillery and direct fire as a supply route to their forces in the east.
This leaves the many brigades operating east of Kharkiv (possibly as many as 8) in a dire situation, where the only line of communication to the west of the Dnieper for all the brigades would be in the Dnipro/Kamianske region.
If they wait too late to try and make a break for the bridges, this will involve a running battle with the Russians across some pretty good tank country, with multiple Ukrainian brigades having to bunch together and cram themselves across four or five bridges in the region
To make matters worse, Mariupol is not expected to be able to hold for more than another four or five days, after which the forces surrounding it will be free to join the offensive north. In short, things are getting a bit dicey in the east.
They're not much better in the south, with Russian forces closing around Mykolaiv. The defenders are putting up a brave resistance, but inexorably being pushed back. Russian forces have already pushed on to the north and reached the area around Voznesens'k.
Here again they're facing fierce resistance as the Ukrainians fight to protect the next bridge across the Pivdennyi Buh river, but again the Russian advance keeps grinding on.
The latter course actually seems more likely as a force attacking Odesa more directly would be left miles from friendly forces and dependent on over the beach supply lines, whereas an attack just behind Mykolaiv would help support the assault there and be closer to friendlies
But then the Russians have not been averse to surprising us with some of their odd operational choices, so who knows, maybe they will go for the jewel that is Odesa and its port in one go?
And again, herein lies part of the problem with the Kyiv narrative, and the idea that victory will be defined by the capture or not of the capital. If Odesa falls and the Russians secure the entire southern coast line, that is a major problem for Ukraine and its economy
Obviously, I mean outside of the war itself, thinking ahead to the potential peace. If Russia maintains control of all these areas in a negotiation then they basically have Ukraine by the balls, so to speak. This in many ways is far more important than Kyiv
Thus I think we need to temper our expectations. The Ukrainians have done brilliantly, better than almost anyone expected, but we're gradually creeping towards the decisive moment and none of that has much to do with what's happening around the capital.
Slow Russian progress there is encouraging and that's helping to keep aid corridors open to the east, but I fear people are putting far too much emphasis on it just because it's the biggest city and the centre of government. Russia doesn't need to seize Kyiv to "win"
The fights in the south and east are far more important in the grand scheme of things, and unfortunately those seem to be the ones the Russians are winning, albeit it slowly. If the east in particular collapses, that frees up an enormous number of Russian men and equipment
Men and guns that can be shifted west and south, to Kyiv and/or Odesa as required. It's a grim outlook I'm afraid, but I wish the Ukrainian defenders the very best of luck. It's possible they can still carry the day, but it looks like it might take some kind of miracle 😞 /end
https://web.archive.org/web/20220226224717/https://ria.ru/20220226/rossiya-1775162336.html
The Advance of Russia and the New World
A new world is being born before our eyes.
Russia's military operation in Ukraine has opened a new era - and in three dimensions at once.
And, of course, in the fourth, internal Russian dimension.
Here begins a new period both in ideology and in the very model of our socio-economic system - but we should talk about this separately a little later.
Russia is restoring its unity - the tragedy of 1991, this terrible catastrophe of our history, its unnatural dislocation, has been overcome.
Yes, at great cost, yes, through the tragic events of the actual civil war, because now there are still brothers shooting at each other, separated by belonging to the Russian and Ukrainian armies - but Ukraine as the anti-Russia will no longer exist.
Russia is restoring its historical wholeness by gathering the Russian world, the Russian people together - in its totality of Great Russians, Belarusians and Little Russians.
If we refused to do this, if we allowed the temporary division to take hold for centuries, we would not only betray the memory of our ancestors, but we would be damned by our descendants - for allowing the collapse of the Russian land.
Vladimir Putin took upon himself - without a bit of exaggeration - a historical responsibility, deciding not to leave the resolution of the Ukrainian question to future generations.
After all, the need to resolve it would always remain a major problem for Russia - for two key reasons.
And the issue of national security, that is, the creation of Ukraine as an anti-Russia and an outpost for Western pressure on us, is only the second in importance among them.
The first would always remain a complex of divided people, a complex of national humiliation - when the Russian house first lost part of its foundation (Kiev), and then was forced to accept the existence of two states no longer one, but two peoples.
That is, either to abandon its history, agreeing with the crazy versions that "only Ukraine is the real Russia," or to gnash their teeth helplessly, remembering the times when "we lost Ukraine.
Bringing Ukraine back, that is, turning it back to Russia, would be more and more difficult with each passing decade - the recoding, derussification of Russians, and the setting against Russian Little Russians-Ukrainians would gain momentum.
And if full geopolitical and military control of the West over Ukraine were consolidated, its return to Russia would become impossible at all - it would have to fight the Atlantic bloc for it.
Now this problem is gone - Ukraine has returned to Russia.
This does not mean that its statehood will be liquidated, but it will be restructured, re-established and returned to its natural state as part of the Russian world.
In what borders, in what form will the union with Russia be fixed (through the CSTO and the Eurasian Union or the Union State of Russia and Belarus)? This will be decided after the end of the history of Ukraine as anti-Russia.
In any case, the period of the split of the Russian people is coming to an end.
And here begins the second dimension of the coming new era - it concerns Russia's relations with the West.
Not even Russia, but the Russian world, that is, the three states, Russia, Belarus and Ukraine, acting geopolitically as one.
These relations have entered a new stage - the West sees Russia's return to its historical borders in Europe.
And it loudly resents it, although deep in its heart it must admit that it could not be otherwise.
Did anyone in the old European capitals, Paris and Berlin, seriously believe that Moscow would give up Kiev? That Russians would forever be a divided people? And at the same time that Europe is uniting, when German and French elites are trying to seize control of European integration from the Anglo-Saxons and assemble a united Europe? Forgetting that the unification of Europe was only possible thanks to the unification of Germany, which happened by Russian good (albeit not very clever) will.
To take a swing at the Russian land after that is the top of ingratitude, but of geopolitical stupidity.
The West as a whole, and even more so Europe separately, did not have the strength to keep in its sphere of influence, let alone to take Ukraine.
Not to understand this, one had to be just geopolitical fools.
More precisely, there was only one option: to bet on the further collapse of Russia, that is, the Russian Federation.
But the fact that it did not work should have been clear twenty years ago.
And fifteen years ago, after Putin's Munich speech, even the deaf could hear that Russia was coming back.
Now the West is trying to punish Russia for coming back, for not justifying its plans to profit at its expense, for not allowing the expansion of the Western space to the east.
In seeking to punish us, the West thinks that relations with it are of vital importance to us.
But that's not true anymore - the world has changed, and not just the Europeans, but the Anglo-Saxons who run the West, understand this very well.
No Western pressure on Russia will get us anywhere.
Both sides will suffer losses, but Russia is ready for them morally and geopolitically.
But for the West itself, an increase in the degree of confrontation has enormous costs - and the main ones are not economic at all.
Europe, as part of the West, wanted autonomy - the German project of European integration does not make strategic sense while maintaining Anglo-Saxon ideological, military and geopolitical control over the Old World.
And it cannot succeed, because the Anglo-Saxons need a controlled Europe.
But Europe also needs autonomy for another reason - in case the United States moves to self-isolation (as a result of growing internal conflicts and contradictions) or concentrates on the Pacific region, where the geopolitical center of gravity is shifting.
But the confrontation with Russia, into which the Anglo-Saxons are dragging Europe, deprives Europeans of even a chance for autonomy - not to mention the fact that in the same way they are trying to impose on Europe a break with China.
While the Atlanticists are now happy that the "Russian threat" will unite the Western bloc, those in Berlin and Paris cannot but understand that, having lost hope of autonomy, the European project will simply collapse in the medium term.
That is why independent-minded Europeans are now completely uninterested in building a new iron curtain on their eastern borders - realizing that it will turn into a corral for Europe.
Whose century (half a millennium to be exact) of global leadership is in any case over - but various options for its future are still possible.
Because the construction of a new world order - and this is the third dimension of current events - is accelerating, and its contours are becoming clearer through the sprawling cover of Anglo-Saxon globalization.
The multipolar world has finally become a reality - the operation in Ukraine is unable to rally anyone but the West against Russia.
Because the rest of the world can see and understand perfectly well - this is a conflict between Russia and the West, this is a response to the geopolitical expansion of the Atlanticists, this is Russia's return of its historical space and its place in the world.
China and India, Latin America and Africa, the Islamic world and Southeast Asia - no one believes that the West rules the world order, much less sets the rules of the game.
Russia has not just challenged the West - it has shown that the era of Western global dominance can be considered fully and finally over.
The new world will be built by all civilizations and centers of power, of course, together with the West (united or not) - but not on its terms and not by its rules.
1byte=8bitってのはASCII ( *American* Standard Code for Information Interchange)、つまりアングロサクソンの世界制覇の野望であって、我々 ISCII (International Standard Code for Information Interchange) は1byte=10bitのコンピュータを作る! となったとしよう。ISCII仕様のコンピュータはヨーロッパ諸言語の文字、キリル文字などを表現できて (なにせ1byteあたり1000種類の文字が表現できる!) ヨーロッパ、ロシアを中心にバカ売れ、そしてIBMを倒し、ISCIIが世界制覇をする。
実際問題ハードを作る一番基礎の段階では、1byteが何bitであってもよいのだ。統一されてさえいれば。統一されていないと、DRAMやら外部バスやらとの処理の時に毎回変換が入って大変 (なお余談だが、通信の世界では普通に通信路上でエラー検出・修正のために冗長なbitを使う。64b/66b とかでおぐぐりください)。
さて、DRAMは... アドレス線も10本単位で作ればよい(もちろん読み出し・書き込みも10bit単位(あるいは50bitとか?)が最小の幅だ)。アドレス線の数が2べきである必要は... あるのかな。
レジスタとかCPUのワード長もshort=20bit, long=40bitとかになりそう。さすがに30bitは使わないかなぁ。
うーん何か困るかな、何も困らないような気もする。ちゃんとソフトが動くコンピュータ作ったことないただの素人なのだけど、何か見落しがあるだろうか?
--
この本は5章まであるが、4章と5章はハンズオンであるため、文字としてまとめるのは1から3章に留める。
1章
【コンテナとは】
他のプロセスとは隔離された状態でOS上にソフトウェアを実行する技術
コンテナにはアプリの稼働に必要となるランタイムやライブラリを1つのパッケージとして全て含めることができる。そうすることでアプリの依存関係をすべてコンテナ内で完結できる。
全ての依存関係がコンテナ内で完結するため、オンプレでもクラウドでも起動する。
ステージング環境でテスト済みのコンテナイメージをプロダクション環境向けに再利用することで、ライブラリ差異による環境ごとのテストに必要な工数を削減できる。
サーバー仮想化では、仮想マシンレベルでリソースを分離し、ゲストOS上でアプリが起動する。つまり、アプリだけでなく、ゲストOSを動かすためのコンピューティングリソースが必要。
一方コンテナは、プロセスレベルで分離されてアプリが稼働する。OSから見ると単に1つのプロセスが稼働している扱いになる。
【Dockerとは】
アプリをコンテナイメージとしてビルドしたり、イメージの取得や保存、コンテナの起動をシンプルに行える。
イメージ(アプリケーションと依存関係がパッケージングされる。アプリ、ライブラリ、OS)
レジストリに保存
【Dockerfileとは】
このファイルにコマンドを記述することで、アプリに必要なライブラリをインストールしたり、コンテナ上に環境変数を指定したりする。
1章まとめ、感想
コンテナの登場により、本番・開発環境ごとに1からサーバーを立ててコマンドや設定ファイルを正確に行い、環境差異によるエラーをつぶしていき...というこれまでの数々の労力を減らすことができるようになった。
2章
ECSとEKSがある。
オーケストレーションサービスであり、コンテナの実行環境ではない。
ECSの月間稼働率は99.99%であることがSLA として保証。
デプロイするコンテナイメージ、タスクとコンテナに割り当てるリソースやIAMロール、Cloud Watch Logsの出力先などを指定する。
指定した数だけタスクを維持するスケジューラーで、オーケストレータのコア機能にあたる要素。サービス作成時は起動するタスクの数や関連づけるロードバランサーやタスクを実行するネットワークを指定。
2種類ありECSとFargateがある。 Fargateに絞って書く
Fargateとは
コンテナ向けであるためEC2のように単体では使用できず、ECSかEKSで利用する
サーバーのスケーリング、パッチ適用、保護、管理にまつわる運用上のオーバーヘッドが発生しない。これにより、アプリ開発に専念できるようになる
・コンテナごとにENIがアタッチされるため、コンテナごとにIPが振られるため起動に若干時間がかかる
ECR
・App Runner
利用者がコードをアップロードするだけでコードを実行できるサービス。AWS側で基盤となるコンピューティングリソースを構築してくれるフルマネージドサービス。
App Runner
2021年5月にGA(一般公開)となったサービス。プロダクションレベルでスケール可能なwebアプリを素早く展開するためのマネージドサービス。Githubと連携してソースコードをApp Runnerでビルドとデプロイができるだけでなく、ECRのビルド済みコンテナイメージも即座にデプロイできる。
ECSとFargateの場合、ネットワークやロードバランシング、CI/CDの設定などインフラレイヤに関わる必要があり、ある程度のインフラ知識は必要になる。App Runnerはそれらインフラ周りをすべてひっくるめてブラックボックス化し、マネージドにしていることが特徴である。
ECS Fargateを利用した場合のコスト、拡張性、信頼性、エンジニアリング観点
【コスト】
EC2より料金は割高。ただし、年々料金は下がってきている。
【拡張性】
デプロイの速度 遅め
理由1 コンテナごとにENIが割り当てられるため。ENIの生成に時間がかかる
理由2. イメージキャッシュができないため。コンテナ起動時にコンテナイメージを取得する必要がある。
タスクに割り当てられるエフェメラルストレージは200GB。容量は拡張不可。ただし永続ストレージの容量が必要な場合はEFSボリュームを使う手もある。
割り当て可能リソースは4vCPUと30GB。機械学習に用いるノードのような大容量メモリを要求するホストとしては不向き
【信頼性】
Fargateへのsshログインは不可。Fargate上で起動するコンテナにsshdを立ててsshログインする方法もあるが、セキュアなコンテナ環境にsshの口を開けるのはリスキーである。他にSSMのセッションマネージャーを用いてログインする方法もあるが、データプレーンがEC2の時に比べると手間がかかる。
しかし、2021年3月にAmazon ECS Execが発表され、コンテナに対して対話型のシェルや1つのコマンドが実行可能となった。
Fargateの登場からしばらく経過し、有識者や経験者は増え、確保しやすい。
多数のユーザーに使ってもらう
CI/CDパイプラインを形成し、アプリリリースに対するアジリティを高める
各レイヤで適切なセキュリティ対策(不正アクセス対策、認証データの適切な管理、ログ保存、踏み台経由の内部アクセス)を施したい
2章まとめ、感想
AWSが提供するコンテナサービスにはいくつかあり、なかでもFargateというフルマネージドなデータプレーンがよく使われている。ホスト管理が不要でインフラ関連の工数を削減できる一方、EC2より料金が高く、起動に若干時間がかかるのが難点である。
3章
この章では運用設計、ロギング設計、セキュリティ設計、信頼性設計、パフォーマンス設計、コスト最適化設計について述べている。
Fargate利用時のシステム状態を把握するためのモニタリングやオブザーバビリティに関する設計、不具合修正やデプロイリスク軽減のためのCI/CD設計が必要である。
モニタリングとは
システム内で定めた状態を確認し続けることであり、その目的はシステムの可用性を維持するために問題発生に気づくこと
オブザーバビリティとは
オブザーバビリティの獲得によって、原因特定や対策の検討が迅速に行えるようになる
・cloud watch logs
・Firelens
AWS以外のサービスやAWS外のSaaSと連携することも可能
Firehoseを経由してS3やRed shift やOpenSearch Serviceにログを転送できる
fluent bitを利用する場合、AWSが公式に提供しているコンテナイメージを使用できる
- ソフトウェアやライブラリの脆弱性は日々更新されており、作ってから時間が経ったイメージは脆弱性を含んでいる危険がある。
- 方法
脆弱性の有無はECRによる脆弱性スキャン、OSSのtrivyによる脆弱性スキャン
継続的かつ自動的にコンテナイメージをスキャンする必要があるため、CI/CDに組み込む必要がある。しかし頻繁にリリースが行われないアプリの場合、CICDパイプラインが実行されず、同時にスキャンもなされないということになるため、定期的に行うスキャンも必要になる。
cloud watch Eventsから定期的にLambdaを実行してECRスキャンを行わせる(スキャン自体は1日1回のみ可能)
Fargateの場合、サービス内部のスケジューラが自動でマルチAZ構成を取るため、こちらで何かする必要はない。
・障害時切り離しと復旧
ECSはcloud watchと組み合わせることでタスク障害やアプリのエラーを検知できるうえに、用意されてるメトリクスをcloud watchアラームと結びつけて通知を自動化できる
ALBと結びつけることで、障害が発生したタスクを自動で切り離す
AWS内部のハードウェア障害や、セキュリティ脆弱性があるプラットフォームだと判断された場合、ECSは新しいタスクに置き換えようとするその状態のこと。
Fargateの場合、アプリはSIGTERM発行に対して適切に対処できる設定にしておかなくてはならない。そうしておかないとSIGKILLで強制終了されてしまう。データ不整合などが生じて危険。
ALBのリスナールールを変更し、コンテンツよりもSorryページの優先度を上げることで対処可能
自動でクォータは引き上がらない
cloud watch メトリクスなどで監視する必要がある。
パフォーマンス設計で求められることは、ビジネスで求められるシステムの需要を満たしつつも、技術領域の進歩や環境の変化に対応可能なアーキテクチャを目指すこと
利用者数やワークロードの特性を見極めつつ、性能目標から必要なリソース量を仮決めする
FargateはAutoscalingの利用が可能で、ステップスケーリングポリシーとターゲット追跡スケーリングポリシーがある。どちらのポリシー戦略をとるかを事前に決める
既存のワークロードを模倣したベンチマークや負荷テストを実施してパフォーマンス要件を満たすかどうかを確認する
・スケールアウト
サーバーの台数を増やすことでシステム全体のコンピューティングリソースを増やそうとする概念。可用性と耐障害性が上がる。既存のタスクを停止する必要は原則ない。
スケールアウト時の注意
・Fargate上のECSタスク数の上限はデフォルトでリージョンあたり1000までであること。
ECSタスクごとにENIが割り当てられ、タスク数が増えるごとにサブネット内の割当可能なIPアドレスが消費されていく
Application Autoscaling
Cloud Watchアラームで定めたメトリクスの閾値に従ってスケールアウトやスケールインを行う
CPU使用率が60~80%ならECSタスク数を10%増加し、80%以上なら30%増加する、という任意のステップに従ってタスク数を増減させる
--
この本は5章まであるが、4章と5章はハンズオンであるため、文字としてまとめるのは1から3章に留める。
1章
【コンテナとは】
他のプロセスとは隔離された状態でOS上にソフトウェアを実行する技術
コンテナにはアプリの稼働に必要となるランタイムやライブラリを1つのパッケージとして全て含めることができる。そうすることでアプリの依存関係をすべてコンテナ内で完結できる。
全ての依存関係がコンテナ内で完結するため、オンプレでもクラウドでも起動する。
ステージング環境でテスト済みのコンテナイメージをプロダクション環境向けに再利用することで、ライブラリ差異による環境ごとのテストに必要な工数を削減できる。
サーバー仮想化では、仮想マシンレベルでリソースを分離し、ゲストOS上でアプリが起動する。つまり、アプリだけでなく、ゲストOSを動かすためのコンピューティングリソースが必要。
一方コンテナは、プロセスレベルで分離されてアプリが稼働する。OSから見ると単に1つのプロセスが稼働している扱いになる。
【Dockerとは】
アプリをコンテナイメージとしてビルドしたり、イメージの取得や保存、コンテナの起動をシンプルに行える。
イメージ(アプリケーションと依存関係がパッケージングされる。アプリ、ライブラリ、OS)
レジストリに保存
【Dockerfileとは】
このファイルにコマンドを記述することで、アプリに必要なライブラリをインストールしたり、コンテナ上に環境変数を指定したりする。
1章まとめ、感想
コンテナの登場により、本番・開発環境ごとに1からサーバーを立ててコマンドや設定ファイルを正確に行い、環境差異によるエラーをつぶしていき...というこれまでの数々の労力を減らすことができるようになった。
2章
ECSとEKSがある。
オーケストレーションサービスであり、コンテナの実行環境ではない。
ECSの月間稼働率は99.99%であることがSLA として保証。
デプロイするコンテナイメージ、タスクとコンテナに割り当てるリソースやIAMロール、Cloud Watch Logsの出力先などを指定する。
指定した数だけタスクを維持するスケジューラーで、オーケストレータのコア機能にあたる要素。サービス作成時は起動するタスクの数や関連づけるロードバランサーやタスクを実行するネットワークを指定。
2種類ありECSとFargateがある。 Fargateに絞って書く
Fargateとは
コンテナ向けであるためEC2のように単体では使用できず、ECSかEKSで利用する
サーバーのスケーリング、パッチ適用、保護、管理にまつわる運用上のオーバーヘッドが発生しない。これにより、アプリ開発に専念できるようになる
・コンテナごとにENIがアタッチされるため、コンテナごとにIPが振られるため起動に若干時間がかかる
ECR
・App Runner
利用者がコードをアップロードするだけでコードを実行できるサービス。AWS側で基盤となるコンピューティングリソースを構築してくれるフルマネージドサービス。
App Runner
2021年5月にGA(一般公開)となったサービス。プロダクションレベルでスケール可能なwebアプリを素早く展開するためのマネージドサービス。Githubと連携してソースコードをApp Runnerでビルドとデプロイができるだけでなく、ECRのビルド済みコンテナイメージも即座にデプロイできる。
ECSとFargateの場合、ネットワークやロードバランシング、CI/CDの設定などインフラレイヤに関わる必要があり、ある程度のインフラ知識は必要になる。App Runnerはそれらインフラ周りをすべてひっくるめてブラックボックス化し、マネージドにしていることが特徴である。
ECS Fargateを利用した場合のコスト、拡張性、信頼性、エンジニアリング観点
【コスト】
EC2より料金は割高。ただし、年々料金は下がってきている。
【拡張性】
デプロイの速度 遅め
理由1 コンテナごとにENIが割り当てられるため。ENIの生成に時間がかかる
理由2. イメージキャッシュができないため。コンテナ起動時にコンテナイメージを取得する必要がある。
タスクに割り当てられるエフェメラルストレージは200GB。容量は拡張不可。ただし永続ストレージの容量が必要な場合はEFSボリュームを使う手もある。
割り当て可能リソースは4vCPUと30GB。機械学習に用いるノードのような大容量メモリを要求するホストとしては不向き
【信頼性】
Fargateへのsshログインは不可。Fargate上で起動するコンテナにsshdを立ててsshログインする方法もあるが、セキュアなコンテナ環境にsshの口を開けるのはリスキーである。他にSSMのセッションマネージャーを用いてログインする方法もあるが、データプレーンがEC2の時に比べると手間がかかる。
しかし、2021年3月にAmazon ECS Execが発表され、コンテナに対して対話型のシェルや1つのコマンドが実行可能となった。
Fargateの登場からしばらく経過し、有識者や経験者は増え、確保しやすい。
多数のユーザーに使ってもらう
CI/CDパイプラインを形成し、アプリリリースに対するアジリティを高める
各レイヤで適切なセキュリティ対策(不正アクセス対策、認証データの適切な管理、ログ保存、踏み台経由の内部アクセス)を施したい
2章まとめ、感想
AWSが提供するコンテナサービスにはいくつかあり、なかでもFargateというフルマネージドなデータプレーンがよく使われている。ホスト管理が不要でインフラ関連の工数を削減できる一方、EC2より料金が高く、起動に若干時間がかかるのが難点である。
3章
この章では運用設計、ロギング設計、セキュリティ設計、信頼性設計、パフォーマンス設計、コスト最適化設計について述べている。
Fargate利用時のシステム状態を把握するためのモニタリングやオブザーバビリティに関する設計、不具合修正やデプロイリスク軽減のためのCI/CD設計が必要である。
モニタリングとは
システム内で定めた状態を確認し続けることであり、その目的はシステムの可用性を維持するために問題発生に気づくこと
オブザーバビリティとは
オブザーバビリティの獲得によって、原因特定や対策の検討が迅速に行えるようになる
・cloud watch logs
・Firelens
AWS以外のサービスやAWS外のSaaSと連携することも可能
Firehoseを経由してS3やRed shift やOpenSearch Serviceにログを転送できる
fluent bitを利用する場合、AWSが公式に提供しているコンテナイメージを使用できる
- ソフトウェアやライブラリの脆弱性は日々更新されており、作ってから時間が経ったイメージは脆弱性を含んでいる危険がある。
- 方法
脆弱性の有無はECRによる脆弱性スキャン、OSSのtrivyによる脆弱性スキャン
継続的かつ自動的にコンテナイメージをスキャンする必要があるため、CI/CDに組み込む必要がある。しかし頻繁にリリースが行われないアプリの場合、CICDパイプラインが実行されず、同時にスキャンもなされないということになるため、定期的に行うスキャンも必要になる。
cloud watch Eventsから定期的にLambdaを実行してECRスキャンを行わせる(スキャン自体は1日1回のみ可能)
Fargateの場合、サービス内部のスケジューラが自動でマルチAZ構成を取るため、こちらで何かする必要はない。
・障害時切り離しと復旧
ECSはcloud watchと組み合わせることでタスク障害やアプリのエラーを検知できるうえに、用意されてるメトリクスをcloud watchアラームと結びつけて通知を自動化できる
ALBと結びつけることで、障害が発生したタスクを自動で切り離す
AWS内部のハードウェア障害や、セキュリティ脆弱性があるプラットフォームだと判断された場合、ECSは新しいタスクに置き換えようとするその状態のこと。
Fargateの場合、アプリはSIGTERM発行に対して適切に対処できる設定にしておかなくてはならない。そうしておかないとSIGKILLで強制終了されてしまう。データ不整合などが生じて危険。
ALBのリスナールールを変更し、コンテンツよりもSorryページの優先度を上げることで対処可能
自動でクォータは引き上がらない
cloud watch メトリクスなどで監視する必要がある。
パフォーマンス設計で求められることは、ビジネスで求められるシステムの需要を満たしつつも、技術領域の進歩や環境の変化に対応可能なアーキテクチャを目指すこと
利用者数やワークロードの特性を見極めつつ、性能目標から必要なリソース量を仮決めする
FargateはAutoscalingの利用が可能で、ステップスケーリングポリシーとターゲット追跡スケーリングポリシーがある。どちらのポリシー戦略をとるかを事前に決める
既存のワークロードを模倣したベンチマークや負荷テストを実施してパフォーマンス要件を満たすかどうかを確認する
・スケールアウト
サーバーの台数を増やすことでシステム全体のコンピューティングリソースを増やそうとする概念。可用性と耐障害性が上がる。既存のタスクを停止する必要は原則ない。
スケールアウト時の注意
・Fargate上のECSタスク数の上限はデフォルトでリージョンあたり1000までであること。
ECSタスクごとにENIが割り当てられ、タスク数が増えるごとにサブネット内の割当可能なIPアドレスが消費されていく
Application Autoscaling
Cloud Watchアラームで定めたメトリクスの閾値に従ってスケールアウトやスケールインを行う
CPU使用率が60~80%ならECSタスク数を10%増加し、80%以上なら30%増加する、という任意のステップに従ってタスク数を増減させる
「キャサ丸は激怒した。必ず、かの邪知暴虐の“許されざるもの”を除かねばならぬと決意した。キャサ丸にはグリム・フォウリーの居場所がわからぬ。キャサ丸は九州の魔女である。杖を振り、庭小人と遊んで暮らしてきた。けれどもダジャレに対しては、人一倍に敏感であった。」
いつのもようにTwitterを眺めていたら、ハリー・ポッターのゲームが始まるという情報が流れてきた。ゲームなんて10年ぐらいやってなかったけど、リリース日の7/2にインストールした。魔法の世界で私が杖をふって魔法を唱えるのだ。それって夢のようじゃない?
ゲームを始めて気が付いたのはオリジナルストーリーが展開していることだ。
あんなに切望した物語の続きがここにあるということは私を興奮させた。
私はずっとハリー・ポッターシリーズが好きだった。本が出たのは大人になってからで、映像化は社会人になったばかりだった。映像化は想像以上に良い出来栄えで私は幸せになれた。逆に映画から原作に入った人はより深い魔法の世界に浸ることができたと思う。これもきっと幸せなことだった。夢中になった。だけど大人が大声で「大好き!」と言うことはなんだか憚られた。
そして本編完結から12年、(ファンタビはあるけど)本編最後の映画が公開されて9年。世界で一番有名な魔法使いになったかもしれないハリー・ポッター。
2019年の夏、周りでこのハリー・ポッターのゲーム「魔法同盟」をしている人はいなかった。
ソロ活動でコツコツとレベルを上げた。Twitterで見つけた「魔法同盟」をしている魔法使いや魔女の皆さんを密かにフォローした。攻略サイトを見て職業を決め、闇祓いになった。私の中ではハリーの職業というより、闇祓いはシャックルボルトである。(実はつい最近まで「シャックボルト」だと思っていたのだが、Discordのお仲間につっこまれつつ教えてもらった。)
気が付くと砦があり、フレンド機能があった。ソロ活動の私にはハードルが高かった。
一日一回通勤の途中に砦で戦い(もちろん一人で)、デイリー任務をこなした。なにかのイベントでフレンドを作る任務があった。とりあえずTwitterでフレンドを募集した。英語も添えて。サービス終了を前にシンガポールとブラジルとスペインのフレンドたちとは未だにギフトのやりとりをしている。海外のギフトを見るのは楽しかった。それ以外特に交流はないけど幸せになれた。
そんななか、全国の皆さんがリアルで対面共闘をしていることを知った。正直うらやましかった。こちらはソロ活動である。九州の中では栄えている街の砦を見ても緑に光ってなかった。たまに光っていても共闘なんてできるはずもなかった。
有志の人なのか中の人なのかわからない方が書いた攻略のnoteを見るようになっていたので不便は感じなかった。だけど、このゲームはお金にならないのかな、と思う。
マスクが街から無くなり、アクリル板越しの対面は声も聞こえにくく、ソーシャルディスタンスという単語は不必要なコミュニケーションを減らすのに都合がよかったけれど、憧れていた対面共闘からも距離ができた。
福岡のオープンチャットに新しく加わった方々によりDiscordを使いナイトバスで行ける砦で共闘をしていると聞いた。ゲームの仲間に飢えていた私は飛びついた。Discordに登録して何もわかってないのに福岡支部のボイスチャンネルのリクエストをした。何度か使ったけど、定着しなかった。でも使い方を覚えたのは収穫だった。
職場はその頃忙しかった。いつも通り働き、いつも通りイベントを終了させた。読書量が一気に落ちた。読書の時間だった通勤時間にイベントを頑張りすぎたからだ。でも幸せだった。痕跡を集め、それぞれのストーリーを楽しんだからだ。
Discordの隠れ穴にコメントを書き込んだ。ハリー・ポッターの話を、ハリー・ポッターを好きな人としたかったからだ。
『ハリー・ポッターと賢者の石』の4DX上映があったのもこの頃。クイディッチの試合を4DXで観ることができた感動は忘れられない。砦のBGMが、ハリーが初めてのクイディッチの試合に向かう時の音楽だと気が付いたのはこの時のことだ。小さな発見でも幸せになれた。
Discordの全国共闘に誘ってもらった。参加者の皆さんの声が聞き分けられず大変で、戦略もわからずとにかく混乱した覚えがある。後になっても時々話題になるけれど、新しい戦略を試すチームに参加していたのだ。混乱は仕方ない、初心者だもの。でもエリート実績がこの共闘で達成できたらしい。楽しかった。
少しずつ色んな人とおしゃべりができるようになる。隠れ穴での同時上映に参加したのもこの頃だった。テキストでやりとりしながら映画を観るのは本当に楽しかった。ここにはハリー・ポッターが好きな人がたくさんいる。ここほど素敵なところはない。
Discordの全国共闘に時々参加するようになっていく。4月以降は夜の共闘に参加してのおしゃべりが楽しくてついつい夜更かしするように。
少しずつ砦の戦術にも慣れていった。戦いながら会話することもできるようになった。慣れたら博多弁が出た。恥ずかしかったけど、みんなもっとおしゃべりしてくれるようになった。夏は夜な夜なアイスクリームのオススメを話した。アイスクリームと違って、袋入りカキ氷は水なので太らないと信じていた。ものすごく楽しくて、ありえないほどはしゃいでいた。ほぼ毎日セブンイレブンにお世話になった。主にアイスクリームとカキ氷を買うためだ。
「ハリー・ポッターと魔法の歴史」展の日本開催のニュースが流れ、神戸会場に行ってついでにUSJにも行ってみたいと思ったけれど、やっぱり私は一人だった。
行きたいなってTwitterに書き込んだ。そしたらなんと共闘でご一緒していた方々からお誘いがあった。ゲームで知り合った人と会っていいのか、迷いはあった。けれど、好奇心には道徳がないのである。なによりとても嬉しかった。そして実際お会いしたらめちゃくちゃ楽しかった。この時、神戸のポートタワーの砦で共闘した写真を撮ってTwitterに投稿した。お気に入りの一枚だ。コロナ禍で決行に迷いもあったけどその旅は、楽しかった!で言い表せないぐらい濃密で幸せな時間だった。歩きすぎて筋肉痛も腰痛も今までに経験したことがないレベルだった。ついでに熱中症にもなりかけた。
毎晩のようにおしゃべりしているのに、一度お会いしたらもっともっとおしゃべりしたくなった。他にも会ってみたい人が増えた。
突然のサービス終了のお知らせ。まだまだ楽しい計画が待っているのに。
私はさよならをどう言えばいいか分からない。言葉が出てこない。
だけど私はたくさんの幸せを「魔法同盟」からもらった。本や映画やゲームの中の魔法は現実の世界でも「幸せ」という形で存在する。
次はみんなで丸の内を素敵なクリスマスの魔法で包むのだ。それは私のたくらむ“よからぬこと”の一つ。
まだサービス終了までひと月と少しある。