Skip to content

Provides Microsoft Orleans host environment statistics for AWS Elastic Container Service (ECS)

License

Notifications You must be signed in to change notification settings

seniorquico/Orleans.TelemetryConsumers.ECS

Repository files navigation

Orleans Host Environment Statistics for AWS Elastic Container Service (ECS)

GitHub build status codecov test status NuGet package version MIT license Gitter

Provides Microsoft Orleans host environment statistics (an IHostEnvironmentStatistics implementation) for AWS Elastic Container Service (ECS). This enables load shedding when silos are overloaded and silo metrics (CPU and memory) in the Orleans Dashboard.

This implementation relies on the ECS Task Metadata Endpoint V3. This endpoint is available to all tasks running on the following AWS platforms:

  • EC2 launch type with container agent version 1.21.0 or later
  • Fargate launch type on platform version 1.3.0 or later

This endpoint may also be made available to containers running locally (for development and testing purposes) using the Amazon ECS Local Container Endpoints.

Installation

This is published as a Nuget package and depends on Orleans 3.0 (or greater).

PackageReference

<PackageReference Include="Orleans.TelemetryConsumers.ECS" Version="1.0.0" />

Package Manager

Install-Package Orleans.TelemetryConsumers.ECS -Version 1.0.0

NuGet CLI

dotnet add package Orleans.TelemetryConsumers.ECS --version 1.0.0

Paket CLI

paket add Orleans.TelemetryConsumers.ECS --version 1.0.0

Usage

First, ensure your ECS tasks are running on a supported platform (see the introduction for EC2 and Fargate platform requirements). If running on an unsupported platform, the host environment statistics will be unavailable.

Second, register the ECS IHostEnvironmentStatistics implementation and its dependencies:

new SiloHostBuilder()
  .UseEcsTaskHostEnvironmentStatistics()
  .Build();

About

Provides Microsoft Orleans host environment statistics for AWS Elastic Container Service (ECS)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages