Azure-WebジョブをASEからKubernetes(AKS)に移動するための移行オプション

ロブ・マッケイブ

私はAzureでの開発に非常に慣れておらず、Service BusがUIからメッセージを受信し、メッセージイベントがソリューションのさまざまなポイントでAzure(オンデマンド)Webジョブを開始する既存のAzureクラウドソリューションに取り組んでいます。

これに似ています: ここに画像の説明を入力してください

ソリューションのほとんどの部分をASEでホストしており、代わりにASEからKubernetes(AKS)に移行する予定です(現時点では、OSとしてWindowsを使用してAKSをセットアップし、試してみました)。

What options are there for moving Web Jobs off ASE and onto AKS? Does the OS have a bearing on the options? Can the WebJobs SDK be installed in the AKS cluster to run WebJobs (and are they executable from Service Bus for example)? I know you can setup scheduled Jobs, but what would be the equivalent for on-demand web jobs (long running processes).

Any advice much appreciated. We have a similar migration of Azure Functions, but I think if I can understand how to shift Web Jobs, the Functions will naturally follow the same path.

Rob McCabe

Having spent more time on this, here's some information which has helped me (you can see from the question above that there are gaps in my understanding, building my knowledge up slowly and publishing in case its useful for others).

Moving WebJobs off ASE - this is not as straight forward as my question implies. Essentially, the WebJobs themselves output an exe and the required libs, similar to the output of a command line app. The WebJobs (their code) run a "JobHost" in the Main method, which has a host waiting for triggers to run the jobs within. Looks very similar to me in how WCF services would have been hosted in a Windows Service a few years back.

With that in mind, first, the WebJob .exe can be run on the local host OS. As we are using .net Framework version of WebJobs, we can only deploy to Windows (maybe with Mono it is possible to run on Linux, but for now I'm saying Windows only to keep things simple). Had we built the WebJobs using .net Core then arguably they could have been to a Windows or Linux host OS.

Secondly, we want to "containerise" the compiled output of a WebJob - so a docker image needs to be built containing the WebJob and dependencies, so it can be deployed into a cluster (this is the point I'm currently at and trying to define the docker file). Read more about Docker Containers here.

Thirdly, the cluster itself. I'd mentioned AKS. There are other options, such as Service Fabric but it's a Microsoft proprietary SDK, so maybe best to steer clear for now. You can deploy your docker image containing your WebJob .exe (and libs) to your cluster as you need. The cluster can manage scaling of your containers as required. NOTE: you can run Minikube locally which helps get to grips

これは高レベルの説明ですが、上記の私の質問を明確にし、私が有用だと思ったいくつかの情報を提供します。うまくいけば、DevOpsを信頼している他の人を助けてください!:)

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

Azure Webアプリケーションを別の場所に移動することは可能ですか?

分類Dev

Azureリソースをあるリージョンから別のリージョンに移動する方法

分類Dev

Azure Application Insightsは、あるサブスクリプションから別のサブスクリプションに移動されたときにログデータを保持しますか?

分類Dev

AzureにリンクされたVSTS / DevOpsを別のアカウント/ Azureサブスクリプションに移動する方法

分類Dev

PowerShellを使用してAzureサブスクリプションを別のテナントに移動する

分類Dev

Azure仮想マシンを別のリージョンに移動することは可能ですか?

分類Dev

データアクセスのためにMicrosoft.Azure.DocumentDbからMicrosoft.Azure.Cosmosに移行します。すべてのオプションが利用できるわけではありません

分類Dev

Azure EventHubおよびAzureService Busトピックからメッセージを取得し、それらをAzure Storage Blobに配置するためのオプションは何ですか?

分類Dev

チーム内のチャットボットを1つのAzureサブスクリプションから別のサブスクリプションに移動する

分類Dev

Azure SDKを使用して(Azure Webジョブを使用して)Azureキューの可視性(時間)オプションを設定するにはどうすればよいですか?

分類Dev

AzureマネージドサービスID、AKS、AAD、およびキーボールトを使用している間。これらのリソースはすべて、同じサブスクリプション/リソースグループまたはVNETに含まれている必要がありますか?

分類Dev

Azure Sqlv12に移行してからのWebジョブエラー

分類Dev

アプリケーションをクラウド、Tomcat、Java、MySQLに移動-Azure / AWSオプションのLAMPまたはサービス?

分類Dev

これを実現するために、Azureデータフローのさまざまな数の列のカスタム動的マッピングまたはその他のオプションを実行する方法はありますか?

分類Dev

Azure Service BusキューをC#のトピックとサブスクリプションに移行する

分類Dev

オンラインのAzure関数をローカルのgitリポジトリに移動するための最良の方法は何ですか?

分類Dev

MSIを使用してローカル開発のためにSpringBootアプリケーションからAzure KeyVaultに接続する方法

分類Dev

Azure関数CosmosDbTrigger(最初から開始するオプション)

分類Dev

Powershellを使用した特定のAzureリソースのクロスサブスクリプション移動

分類Dev

App Settings Azure(webapp)からWebジョブにデータを受信する方法

分類Dev

AzureコンソールアプリからWebジョブとしてログに記録する

分類Dev

カスタムAzureポリシーをデバッグしたり、ポリシーエンジンの外部のフィールドを評価したりするためのオプションは何ですか?

分類Dev

Azureと認証:認証Cookieを生成する前に追加のチェックを実行するための最良のオプション

分類Dev

PowerShellISEのタブからリークする選択されたAzureサブスクリプション

分類Dev

Azureストレージアカウントを別のリージョンに移動する

分類Dev

異なるAzureサブスクリプションから同時に何かを取得する

分類Dev

現在のステージにジョブがある場合、Azureパイプラインで以前のジョブを動的に参照する方法

分類Dev

Azure Webジョブの検証スクリプトの実行中に、変数から最初の値のみを取得するPowershellスクリプト

分類Dev

Azureサービスバスの既存のキューまたはサブスクリプションに自動転送メッセージを設定するにはどうすればよいですか?

Related 関連記事

  1. 1

    Azure Webアプリケーションを別の場所に移動することは可能ですか?

  2. 2

    Azureリソースをあるリージョンから別のリージョンに移動する方法

  3. 3

    Azure Application Insightsは、あるサブスクリプションから別のサブスクリプションに移動されたときにログデータを保持しますか?

  4. 4

    AzureにリンクされたVSTS / DevOpsを別のアカウント/ Azureサブスクリプションに移動する方法

  5. 5

    PowerShellを使用してAzureサブスクリプションを別のテナントに移動する

  6. 6

    Azure仮想マシンを別のリージョンに移動することは可能ですか?

  7. 7

    データアクセスのためにMicrosoft.Azure.DocumentDbからMicrosoft.Azure.Cosmosに移行します。すべてのオプションが利用できるわけではありません

  8. 8

    Azure EventHubおよびAzureService Busトピックからメッセージを取得し、それらをAzure Storage Blobに配置するためのオプションは何ですか?

  9. 9

    チーム内のチャットボットを1つのAzureサブスクリプションから別のサブスクリプションに移動する

  10. 10

    Azure SDKを使用して(Azure Webジョブを使用して)Azureキューの可視性(時間)オプションを設定するにはどうすればよいですか?

  11. 11

    AzureマネージドサービスID、AKS、AAD、およびキーボールトを使用している間。これらのリソースはすべて、同じサブスクリプション/リソースグループまたはVNETに含まれている必要がありますか?

  12. 12

    Azure Sqlv12に移行してからのWebジョブエラー

  13. 13

    アプリケーションをクラウド、Tomcat、Java、MySQLに移動-Azure / AWSオプションのLAMPまたはサービス?

  14. 14

    これを実現するために、Azureデータフローのさまざまな数の列のカスタム動的マッピングまたはその他のオプションを実行する方法はありますか?

  15. 15

    Azure Service BusキューをC#のトピックとサブスクリプションに移行する

  16. 16

    オンラインのAzure関数をローカルのgitリポジトリに移動するための最良の方法は何ですか?

  17. 17

    MSIを使用してローカル開発のためにSpringBootアプリケーションからAzure KeyVaultに接続する方法

  18. 18

    Azure関数CosmosDbTrigger(最初から開始するオプション)

  19. 19

    Powershellを使用した特定のAzureリソースのクロスサブスクリプション移動

  20. 20

    App Settings Azure(webapp)からWebジョブにデータを受信する方法

  21. 21

    AzureコンソールアプリからWebジョブとしてログに記録する

  22. 22

    カスタムAzureポリシーをデバッグしたり、ポリシーエンジンの外部のフィールドを評価したりするためのオプションは何ですか?

  23. 23

    Azureと認証:認証Cookieを生成する前に追加のチェックを実行するための最良のオプション

  24. 24

    PowerShellISEのタブからリークする選択されたAzureサブスクリプション

  25. 25

    Azureストレージアカウントを別のリージョンに移動する

  26. 26

    異なるAzureサブスクリプションから同時に何かを取得する

  27. 27

    現在のステージにジョブがある場合、Azureパイプラインで以前のジョブを動的に参照する方法

  28. 28

    Azure Webジョブの検証スクリプトの実行中に、変数から最初の値のみを取得するPowershellスクリプト

  29. 29

    Azureサービスバスの既存のキューまたはサブスクリプションに自動転送メッセージを設定するにはどうすればよいですか?

ホットタグ

アーカイブ