dotnet / dotnet/orleans

GetDetailedGrainStatistics is not shown StatelessWorker

Open
#8,262 0 comments 1 reaction 0 assignees View on GitHub
Needs: triage :mag:
Dominant language
C#
Stars
10.9k
Forks
2.1k
Avg merge
14h 42m
Merged PRs (30d)
354

Description

some code from tests.
In general, there is no StatelessWorker Grains in GetDetailedGrainStatistics, but GetSimpleGrainStatistics has them.

``` cs
await _cluster.Cluster.StartAdditionalSiloAsync();
for (int i = 0; i < 100_000; I++)
{
await _cluster.Cluster.Client.GetGrain("1").Do(); // [StatelessWorker(10)]
await _cluster.Cluster.Client.GetGrain("2").Count(); // Grain
}

var hosts = await _cluster.Cluster.Client.GetGrain(0).GetHosts();

Dictionary result = new Dictionary();
foreach (var host in hosts)
{
var activations = await _cluster.Cluster.Client.GetGrain(0).GetDetailedGrainStatistics(null, new []{host.Key});
result.Add(result.Count, activations.Where(w=>w.GrainType.Contains("PerSiloGrain") || w.GrainType.Contains("MetricGrain")).ToArray());
}

var x = PerSiloGrain.ActivationCount; //1
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the shown scenario with StartAdditionalSiloAsync, PerSiloGrain, MetricGrain, and GetDetailedGrainStatistics. Compare the results from GetDetailedGrainStatistics with GetSimpleGrainStatistics for each host. Done means StatelessWorker grain activations appear in the detailed statistics consistently with the simple statistics.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.