Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poor performance of version 7.1 compared to 3.4.4 #8458

Open
ReubenBond opened this issue Jun 1, 2023 Discussed in #8457 · 23 comments
Open

Poor performance of version 7.1 compared to 3.4.4 #8458

ReubenBond opened this issue Jun 1, 2023 Discussed in #8457 · 23 comments

Comments

@ReubenBond
Copy link
Member

ReubenBond commented Jun 1, 2023

Discussed in #8457

Posted by meisamhasani

Originally posted by meisamhasani June 1, 2023
Hello
I migrated from version 3.4 to version 7.1 and serialization and configuration went well.
But in production, the performance of the system is not as good as 3.4, and management grain has latency, and after 6 hours, the silos are restarted.
The number of grains is more than 100 thousand


Thank you for your answer
I am sending a sample of the error, but maybe it is caused by something else

System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge`1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
'System.InvalidOperationException:' is not recognized as an internal or external command,
operable program or batch file.


I'm looking for it to be clear if I made a mistake in the 7.1 config because I don't want to stay on the 3.4 version forever.


i used:
UseAdoNetClustering & AddMemoryGrainStorage
I did not use :
UseAdoNetReminderService or AddAdoNetGrainStorage


image
image
image

@ghost ghost added the Needs: triage 🔍 label Jun 1, 2023
@ReubenBond
Copy link
Member Author

@meisamhasani, how many silos do you have and how many copies of the dashboard are open? The dashboard can have some performance issues, but those shouldn't differ from 3.x to 7.x

@ReubenBond
Copy link
Member Author

The InvalidOperationException you posted indicates that you are accessing grain state from outside of a grain's execution context. You should make sure that you never use ConfigureAwait(false) within grain code, or Task.Run or Task.Factory.StartNew without providing the grain's TaskScheduler

@meisamhasani
Copy link

image

@meisamhasani
Copy link

The InvalidOperationException you posted indicates that you are accessing grain state from outside of a grain's execution context. You should make sure that you never use ConfigureAwait(false) within grain code, or Task.Run or Task.Factory.StartNew without providing the grain's TaskScheduler

No, I didn't use it at all, and as I said, the logic of the program is exactly the same for both versions, except for the issue of serialization.

@meisamhasani
Copy link

@meisamhasani, how many silos do you have and how many copies of the dashboard are open? The dashboard can have some performance issues, but those shouldn't differ from 3.x to 7.x

only one dashboard opened.
For example, after 6 hours, one of the silos was restarted

@ReubenBond
Copy link
Member Author

Do you have logs for the silo which restarted?

@ReubenBond
Copy link
Member Author

No, I didn't use it at all, and as I said, the logic of the program is exactly the same for both versions, except for the issue of serialization.

Regardless of whether it is the same, I believe there is something going awry here with regards to scheduling - that will almost certainly be caused by application code. It is worth checking your code again

@meisamhasani
Copy link

System.TimeoutException: Response did not arrive on time in 00:00:30 for message: Request [S10.42.3.64:30003:44578723 symbol/6F6F86E97EC7E6]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrainGrainInterfaces.ITseGrain.GetHistoryVersening() #1571307. Last known status is IsExecuting: False, IsWaiting: True, Diagnostics: [[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340 #GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid NonReentrancyQueueSize=296 NumRunning=1 IdlenessTimeSpan=00:00:25.7440000 CollectionAgeLimit=00:15:00], TaskScheduler status: WorkItemGroup:Name=[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340#GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid],WorkGroupStatus=Running. Currently QueuedWorkItems=1; Total Enqueued=163336; Total processed=163334; Executing Task Id=1280 Status=Running for 00:00:25.1680000.TaskRunner=ActivationTaskScheduler-404:Queued=1; Detailed context=<[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340 #GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid NonReentrancyQueueSize=296 NumRunning=1 IdlenessTimeSpan=00:00:25.7440000 CollectionAgeLimit=00:15:00 CurrentlyExecuting=Request [S10.42.0.102:30003:44578724 sys.client/208a741136e24164a88829bd09aad203]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrain[(GrainInterfaces.ITseGrain)Grains.TseGrain].GetOptionReport() #90158]>, Message Request [S10.42.0.102:30003:44578724 sys.client/208a741136e24164a88829bd09aad203]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrain[(GrainInterfaces.ITseGrain)Grains.TseGrain].GetOptionReport() #90158 was enqueued 00:00:25.1680000 ago and has now been executing for 00:00:25.1680000., Message Request [S10.42.3.64:30003:44578723 symbol/6F6F86E97EC7E6]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrainGrainInterfaces.ITseGrain.GetHistoryVersening() #1571307 has been enqueued on the target grain for 00:00:23.2120000 and is currently position 134 in queue for processing.].
at Orleans.Serialization.Invocation.ResponseCompletionSource1.GetResult(Int16 token) in /_/src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs:line 239 at System.Threading.Tasks.ValueTask1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at Grains.SymbolGrain.UpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1723
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in //src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task UpdatePythonHistory(System.Object)
System.TimeoutException: Response did not arrive on time in 00:00:30 for message: Request [S10.42.3.64:30003:44578723 symbol/2685C167B536EF]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrainGrainInterfaces.ITseGrain.GetHistoryVersening() #1571309. Last known status is IsExecuting: False, IsWaiting: True, Diagnostics: [[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340 #GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid NonReentrancyQueueSize=296 NumRunning=1 IdlenessTimeSpan=00:00:25.7440000 CollectionAgeLimit=00:15:00], TaskScheduler status: WorkItemGroup:Name=[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340#GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid],WorkGroupStatus=Running. Currently QueuedWorkItems=1; Total Enqueued=163336; Total processed=163334; Executing Task Id=1280 Status=Running for 00:00:25.1680000.TaskRunner=ActivationTaskScheduler-404:Queued=1; Detailed context=<[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340 #GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid NonReentrancyQueueSize=296 NumRunning=1 IdlenessTimeSpan=00:00:25.7440000 CollectionAgeLimit=00:15:00 CurrentlyExecuting=Request [S10.42.0.102:30003:44578724 sys.client/208a741136e24164a88829bd09aad203]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrain[(GrainInterfaces.ITseGrain)Grains.TseGrain].GetOptionReport() #90158]>, Message Request [S10.42.0.102:30003:44578724 sys.client/208a741136e24164a88829bd09aad203]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrain[(GrainInterfaces.ITseGrain)Grains.TseGrain].GetOptionReport() #90158 was enqueued 00:00:25.1680000 ago and has now been executing for 00:00:25.1680000., Message Request [S10.42.3.64:30003:44578723 symbol/2685C167B536EF]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrainGrainInterfaces.ITseGrain.GetHistoryVersening() #1571309 has been enqueued on the target grain for 00:00:23.2120000 and is currently position 132 in queue for processing.].
at Orleans.Serialization.Invocation.ResponseCompletionSource1.GetResult(Int16 token) in /_/src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs:line 239 at System.Threading.Tasks.ValueTask1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at Grains.SymbolGrain.UpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1723
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task UpdatePythonHistory(System.Object)
System.TimeoutException: Response did not arrive on time in 00:00:30 for message: Request [S10.42.3.64:30003:44578723 symbol/B688F19E625BBF]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrainGrainInterfaces.ITseGrain.GetHistoryVersening() #1573518. Last known status is IsExecuting: False, IsWaiting: True, Diagnostics: [[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340 #GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid NonReentrancyQueueSize=899 NumRunning=1 IdlenessTimeSpan=00:00:37.7200000 CollectionAgeLimit=00:15:00], TaskScheduler status: WorkItemGroup:Name=[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340#GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid],WorkGroupStatus=Running. Currently QueuedWorkItems=1; Total Enqueued=163336; Total processed=163334; Executing Task Id=1280 Status=Running for 00:00:37.1440000.TaskRunner=ActivationTaskScheduler-404:Queued=1; Detailed context=<[Activation: S10.42.0.102:30003:44578724/tse/TSE@dfcf2658ed144d12b7dc28797753b340 #GrainType=Grains.TseGrain,BiFilter.Grains Placement=RandomPlacement State=Valid NonReentrancyQueueSize=899 NumRunning=1 IdlenessTimeSpan=00:00:37.7200000 CollectionAgeLimit=00:15:00 CurrentlyExecuting=Request [S10.42.0.102:30003:44578724 sys.client/208a741136e24164a88829bd09aad203]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrain[(GrainInterfaces.ITseGrain)Grains.TseGrain].GetOptionReport() #90158]>, Message Request [S10.42.0.102:30003:44578724 sys.client/208a741136e24164a88829bd09aad203]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrain[(GrainInterfaces.ITseGrain)Grains.TseGrain].GetOptionReport() #90158 was enqueued 00:00:37.1440000 ago and has now been executing for 00:00:37.1440000., Message Request [S10.42.3.64:30003:44578723 symbol/B688F19E625BBF]->[S10.42.0.102:30003:44578724 tse/TSE] GrainInterfaces.ITseGrainGrainInterfaces.ITseGrain.GetHistoryVersening() #1573518 has been enqueued on the target grain for 00:00:29.6120000 and is currently position 216 in queue for processing.].
at Orleans.Serialization.Invocation.ResponseCompletionSource1.GetResult(Int16 token) in /_/src/Orleans.Serialization/Invocation/ResponseCompletionSource.cs:line 239 at System.Threading.Tasks.ValueTask1.ValueTaskSourceAsTask.<>c.<.cctor>b__4_0(Object state)
--- End of stack trace from previous location ---
at Grains.SymbolGrain.UpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1723
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in //src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:->
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/7675F2B7B72A83@0e501b7e87c34d139d91e7abec78a44c#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492 at Grains.SymbolGrain.SetFilterInRedis(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 273 at Grains.SymbolGrain.OnlineAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 559 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:-> System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/AF3FA2D321E54@ecb9957dc7a0447abcdedfbbc637f0cc#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in /
/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492
at Grains.SymbolGrain.SetFilterInRedis(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 273
at Grains.SymbolGrain.OnlineAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 559
at Grains.SymbolGrain.OfflineAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 818
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in //src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Grain[100513]
Error activating grain [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#GrainType=Grains.SymbolGrain,BiFilter.Grains Placement=RandomPlacement State=Activating]
System.Threading.Tasks.TaskCanceledException: Timed out waiting for OnActivateAsync to complete
---> System.Threading.Tasks.TaskCanceledException: A task was canceled.
at Orleans.Internal.OrleansTaskExtentions.MakeCancellable(Task task, CancellationToken cancellationToken) in /
/src/Orleans.Core/Async/TaskExtensions.cs:line 190
at Orleans.Internal.OrleansTaskExtentions.WithCancellation(Task taskToComplete, CancellationToken cancellationToken, String message) in //src/Orleans.Core/Async/TaskExtensions.cs:line 151
--- End of inner exception stack trace ---
at Orleans.Internal.OrleansTaskExtentions.WithCancellation(Task taskToComplete, CancellationToken cancellationToken, String message) in /
/src/Orleans.Core/Async/TaskExtensions.cs:line 151
at Orleans.Runtime.ActivationData.g__CallActivateAsync|132_0(Dictionary2 requestContextData, CancellationToken cancellationToken) in /_/src/Orleans.Runtime/Catalog/ActivationData.cs:line 1254 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task HealthCheck(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492
at Grains.SymbolGrain.HealthCheck(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 5425
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:-> System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/coin/LOKABTC@16b4087c3c2a48089fe2765729054343#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.CoinGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 831
at Grains.CoinGrain.SetFilterInRedis(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 123
at Grains.CoinGrain.OnlineAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 875
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:->
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/coin/LEVERUSDT@2961e11651764ffe97a981ffcc10cfef#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.CoinGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 831 at Grains.CoinGrain.SetFilterInRedis(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 123 at Grains.CoinGrain.OnlineAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 875 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:-> System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/coin/LUNCUSDT@03d1589b44b24be28420dab87d461e6e#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.CoinGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 831
at Grains.CoinGrain.SetFilterInRedis(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 123
at Grains.CoinGrain.OnlineAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/CoinGrain.cs:line 875
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task LoadSymbolInfo(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492 at Grains.SymbolGrain.LoadSymbolInfo(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 5589 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task LoadSymbolTodayInfo(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492 at Grains.SymbolGrain.LoadSymbolTodayInfo(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 5627 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task UpdatePythonHistory(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492 at Grains.SymbolGrain.UpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1723 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task WeeklyUpdatePythonHistory(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492
at Grains.SymbolGrain.WeeklyUpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1552
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task UpdatePythonHistory(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492 at Grains.SymbolGrain.UpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1723 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task RealTimeTseCandlesAsync(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.IsValidSymbol() in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 6376
at Grains.SymbolGrain.RealTimeTseCandlesAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 5937
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task MonthlyUpdatePythonHistory(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492 at Grains.SymbolGrain.MonthlyUpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1478 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task OnlineAsync(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.IsFreeFilters() in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 6548
at Grains.SymbolGrain.OnlineAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 559
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task WeeklyUpdatePythonHistory(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492 at Grains.SymbolGrain.WeeklyUpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1552 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task UpdatePythonHistory(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492
at Grains.SymbolGrain.UpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1723
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task PrepareChart(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.IsOragh() in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 6532 at Grains.SymbolGrain.IsCosed() in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 372 at Grains.SymbolGrain.PrepareChart(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 2189 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task UpdatePythonHistory(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492
at Grains.SymbolGrain.UpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1723
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task VisitingAsync(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.VisitingAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 548
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task OnlineAsync(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in //src/Orleans.Runtime/Core/GrainRuntime.cs:line 101
at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /
/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100
at Orleans.Core.StateStorageBridge1.get_State() in /_/src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30 at Grains.SymbolGrain.IsFreeFilters() in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 6548 at Grains.SymbolGrain.OnlineAsync(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 559 at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /_/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139 fail: Orleans.Runtime.GrainTimer[101413] Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task WeeklyUpdatePythonHistory(System.Object) System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid] at Orleans.Runtime.GrainRuntime.<CheckRuntimeContext>g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 101 at Orleans.Runtime.GrainRuntime.CheckRuntimeContext(IGrainContext context) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 100 at Orleans.Core.StateStorageBridge1.get_State() in //src/Orleans.Runtime/Storage/StateStorageBridge.cs:line 30
at Grains.SymbolGrain.SetLog(String log) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 492
at Grains.SymbolGrain.WeeklyUpdatePythonHistory(Object s) in /home/gitlab-runner/builds/PiJyKN55/0/root/bifilter/src/V7/BiFilter.Grains/Grains.cs:line 1552
at Orleans.Runtime.GrainTimer.ForwardToAsyncCallback(Object state) in /
/src/Orleans.Runtime/Timers/GrainTimer.cs:line 139
fail: Orleans.Runtime.GrainTimer[101413]
Caught and ignored exception thrown from timer callback for timer GrainTimer. TimerCallbackHandler:Grains.SymbolGrain->System.Threading.Tasks.Task UpdatePythonHistory(System.Object)
System.InvalidOperationException: Attempt to access an invalid activation: [Activation: S10.42.3.64:30003:44578723/symbol/F9A71214BEF5F9@205c76e528a04dce9de7515597aa2b0b#Placement=RandomPlacement State=Invalid]
at Orleans.Runtime.GrainRuntime.g__ThrowInvalidActivation|20_1(ActivationData activationData) in /_/src/Orleans.Runtime/Core/GrainRuntime.cs:line 10

@ReubenBond
Copy link
Member Author

In this image, you say ~"this is for the most current version, and in the worst case, but for 7.1, the latency is over 800ms"
https://user-images.githubusercontent.com/2770416/242598138-30955ff2-9b49-44db-b30e-44baeaac9d27.png

Does that mean that your latency is substantially reduced with v7.1.2? If so, that is likely due to this PR: #8394. The dashboard tends to be pretty heavy.

From looking at the logs you have posted, I think there is a significant chance that there are some threading/async issues with your application code. You must fix those before you can hope to achieve good performance.

@meisamhasani
Copy link

No, I didn't use it at all, and as I said, the logic of the program is exactly the same for both versions, except for the issue of serialization.

Regardless of whether it is the same, I believe there is something going awry here with regards to scheduling - that will almost certainly be caused by application code. It is worth checking your code again

Could it be because I keep the last state of each grain in the file and the size of some of these files is 11 megabytes, and before calling OnActivateAsync that file must be read and desrealized?

@ReubenBond
Copy link
Member Author

Could it be because I keep the last state of each grain in the file and the size of some of these files is 11 megabytes, and before calling OnActivateAsync that file must be read and desrealized?

Possibly. Is the file being read synchronously? Is that file for a single grain, or is it shared across many?

@meisamhasani
Copy link

Does that mean that your latency is substantially reduced with v7.1.2? If so, that is likely due to this PR: #8394. The dashboard tends to be pretty heavy.

From looking at the logs you have posted, I think there is a significant chance that there are some threading/async issues with your application code. You must fix those before you can hope to achieve good performance.

The image is related to version 3.4.4
I rolled back
I would be grateful if you could give more detailed guidance on the code changes

@ReubenBond
Copy link
Member Author

What are you using for storage? I see Redis in your call stacks, is that what you are using?

@meisamhasani
Copy link

Possibly. Is the file being read synchronously? Is that file for a single grain, or is it shared across many?

The file is exactly for one grain. and async
await File.Read....

@ReubenBond
Copy link
Member Author

Are there many of these files or just one, is every grain reading one of these files?

@meisamhasani
Copy link

What are you using for storage? I see Redis in your call stacks, is that what you are using?

No, I did not use Redis for storage.
Because orleans cluster works well for me like redis

@meisamhasani
Copy link

Are there many of these files or just one, is every grain reading one of these files?

There are as many files as there are, and the latest status is saved in the file every half hour (for example)

@ReubenBond
Copy link
Member Author

ReubenBond commented Jun 1, 2023

The latencies on your application grains are good (the highest avg is 0.11ms). Is the only issue with ManagementGrain?

For the silo which crashes, are you able to find out why it crashes? Was it being declared dead by the other silos?

@meisamhasani
Copy link

Is the only issue with ManagementGrain? yes.
For the silo which crashes, are you able to find out why it crashes? Was it being declared dead by the other silos?
I may need to run version 7.1 again to understand the answer to this question more precisely

@meisamhasani
Copy link

It is very strange that this architecture and code, which definitely has flaws, works well on version 3.4.4 without any problems, but I encountered this problem during the upgrade.

@meisamhasani
Copy link

image

@ReubenBond
Copy link
Member Author

It is very strange that this architecture and code, which definitely has flaws, works well on version 3.4.4 without any problems, but I encountered this problem during the upgrade.

It's strange to me, too, and I'd like to understand why it is happening.

When you were using v7.1, was it v7.1.0 or v7.1.2? Does LoadCachedData load from a per-grain file or is it a shared file (containing info for many grains)?

@meisamhasani
Copy link

meisamhasani commented Jun 1, 2023

It is very strange that this architecture and code, which definitely has flaws, works well on version 3.4.4 without any problems, but I encountered this problem during the upgrade.

It's strange to me, too, and I'd like to understand why it is happening.

When you were using v7.1, was it v7.1.0 or v7.1.2? Does LoadCachedData load from a per-grain file or is it a shared file (containing info for many grains)?

7.1.2 . lastest version.
each file for one grain .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants