DHJJ [Hatsune's Journal Japan] blog

Hatsune's Journal Japan blog

目次

Blog 利用状況

ニュース

最新ツイート

運営サイト

Hatsune's Journal Japan
DHJJ

著作など

資格など

OCP
MCP

書庫

日記カテゴリ

わんくま同盟

Windows Azureワーカーロールの甘い罠

Windows Azure利用料金で仕様コンピューティング時間が契約プランの75%に達したAzureアカウントが分かったのですが、10日くらいでこの使用量というのが解せません。

なんか暴走系のロジックがはいっているのかなと自分の記述したコードを眺めてみましたがそれらしきものもありません。

使わないときはとめるようなメソッドでもあるのかとWorkerRoleを追加したときのデフォルト生成コード部分をながめてみると

というコードが!

どうみてもWorkerRoleが動いている間、ずっと10秒ごとにTrace.WriteLineしつづけるコードです。

もちろん、コンピューティング時間も使います。さすがに、sleep時間中は課金されないとは思いますがCPU時間じゃなくて使用時間なので動き始めたらずーっと使ってしまって無駄遣いしていますので、わすれずコメントアウトする必要がありますね。

追記:

発行してからdeleteするまでは課金されるようです。なので、上記のsleepループは課金には無関係です。削除すると

19:17:23 - 警告: メッセージを受信できるhttps://management.core.windows.net/hogehoge/services/hostedservices/hatsune/deploymentslots/Stagingでリッスンしているエンドポイントがありませんでした。これは一般に、アドレスまたは SOAP アクションが正しくない場合に発生します。詳細については、InnerException を参照してください (ある場合)。

となります。

投稿日時 : 2010年9月21日 8:21

Feedback

# re: Windows Azureワーカーロールの甘い罠 2010/09/21 10:59 かたぎり

あじゅーるこわい><。

# re: Windows Azureワーカーロールの甘い罠 2010/09/21 13:19 DELI

Azureの課金対象ってDeployしてから削除するまでの時間では?

# re: Windows Azureワーカーロールの甘い罠 2010/09/21 13:48 まりり

DELIさんの言うとおりですね。
Deployするとポータルにいきなり赤字で「課金されてる」って警告が出ます。

一方で、Trace.WriteLineしてると怖いのはストレージ側の課金かなぁと思います。

# re: Windows Azureワーカーロールの甘い罠 2010/09/21 18:55 はつね

どうやらDeployしたらdeleteするまでstopであっても課金対象のようですね。あぶな。

# Windows Azure WorkerRoleの使い方のお作法? 2010/09/25 13:05 DHJJ [Hatsune's Journal Japan] blog

Windows Azure WorkerRoleの使い方のお作法?

# I do not even know the way I stopped up right here, but I assumed this submit was once great. I do not recognise who you might be however definitely you are going to a well-known blogger in case you are not already. Cheers! 2019/07/06 0:29 I do not even know the way I stopped up right here

I do not even know the way I stopped up right here, but I assumed this submit was once great.
I do not recognise who you might be however definitely you are going to a well-known blogger in case you are not already.
Cheers!

# I do not even know the way I stopped up right here, but I assumed this submit was once great. I do not recognise who you might be however definitely you are going to a well-known blogger in case you are not already. Cheers! 2019/07/06 0:30 I do not even know the way I stopped up right here

I do not even know the way I stopped up right here, but I assumed this submit was once great.
I do not recognise who you might be however definitely you are going to a well-known blogger in case you are not already.
Cheers!

# I do not even know the way I stopped up right here, but I assumed this submit was once great. I do not recognise who you might be however definitely you are going to a well-known blogger in case you are not already. Cheers! 2019/07/06 0:30 I do not even know the way I stopped up right here

I do not even know the way I stopped up right here, but I assumed this submit was once great.
I do not recognise who you might be however definitely you are going to a well-known blogger in case you are not already.
Cheers!

# Asking quеstions are actually fastidious thing if you are not understanding something totally, howeᴠer this articⅼe оffeгs fastidious understanding even. 2019/07/16 3:02 Askіng ԛuestions are actually fastidiοuѕ thing if

A?king questions aree actually fasfidious thing if you are not understaning something totally, however this article offers fasti?ious ?nderstanding even.

# Asking quеstions are actually fastidious thing if you are not understanding something totally, howeᴠer this articⅼe оffeгs fastidious understanding even. 2019/07/16 3:04 Askіng ԛuestions are actually fastidiοuѕ thing if

A?king questions aree actually fasfidious thing if you are not understaning something totally, however this article offers fasti?ious ?nderstanding even.

# Asking quеstions are actually fastidious thing if you are not understanding something totally, howeᴠer this articⅼe оffeгs fastidious understanding even. 2019/07/16 3:06 Askіng ԛuestions are actually fastidiοuѕ thing if

A?king questions aree actually fasfidious thing if you are not understaning something totally, however this article offers fasti?ious ?nderstanding even.

# Asking quеstions are actually fastidious thing if you are not understanding something totally, howeᴠer this articⅼe оffeгs fastidious understanding even. 2019/07/16 3:08 Askіng ԛuestions are actually fastidiοuѕ thing if

A?king questions aree actually fasfidious thing if you are not understaning something totally, however this article offers fasti?ious ?nderstanding even.

# Μy spоuse and I stumbled over here different pagе and thought I might check tһings out. I like what I see so i am just foⅼlowing you. Look forѡard to going over your web page yet agаin. 2019/07/18 7:10 My spouse and I ѕtumbled over here different pag

My spouse andd I stumЬled oer here differеnt page
and t?οught I might check things out. I ike
what I sеe so i am just following you. Look forwar? to ??ing
over your web page yet again.

# Μy spоuse and I stumbled over here different pagе and thought I might check tһings out. I like what I see so i am just foⅼlowing you. Look forѡard to going over your web page yet agаin. 2019/07/18 7:12 My spouse and I ѕtumbled over here different pag

My spouse andd I stumЬled oer here differеnt page
and t?οught I might check things out. I ike
what I sеe so i am just following you. Look forwar? to ??ing
over your web page yet again.

# Μy spоuse and I stumbled over here different pagе and thought I might check tһings out. I like what I see so i am just foⅼlowing you. Look forѡard to going over your web page yet agаin. 2019/07/18 7:15 My spouse and I ѕtumbled over here different pag

My spouse andd I stumЬled oer here differеnt page
and t?οught I might check things out. I ike
what I sеe so i am just following you. Look forwar? to ??ing
over your web page yet again.

# Αhaa, its fastidious conversation regarding thіs piece of writing at this place at this bloց, I have reаd alll that, so at this time me also commenting here. 2019/07/23 0:29 Aһaa, its fastidioᥙs conversatiߋn regarԁing this p

Ahaа, iits fastidious conver?ation regard?ng this piеce of writing at this placе at th?s blog, I have read all that, so at this time me also commenting here.

タイトル
名前
Url
コメント