Comments (2)
If I kill the node the silo is on it will automatically spawn a new silo on another node. What happens in the membership table is that the old silo will still be in status 3 and the new silo will try to connect but never go past status 2. Until I manually delete the old silo from the membership table and lets the new reboot.
I'm suspecting it's the communication between silos that doesn't work and that's why a second silo will never be "healthy" will the old one that got spun up alone will just assume its the new that is wrong.
What can I do to debug whats wrong with the communication between silos? I have exec into the containers and ping'ed their ips shown in the membership table. It seems fine.
from orleans.redis.
I think I've solved it. I changed to define AdvertisedIp instead of hostname when configure endpoint,
Seems to have done the trick.
This
ConfigureEndpoints(advertisedIP: IPAddress.Parse(EnvVar.LocalAddress), siloPort: EnvVar.siloPort, gatewayPor t: EnvVar.gatewayPort, listenOnAnyHostAddress: true)
Instead of this
.ConfigureEndpoints(hostname: EnvVar.Hostname, siloPort: EnvVar.siloPort, gatewayPort: EnvVar.gatewayPort, listenOnAnyHostAddress: true)
EDIT:
I recommend setting siloname aswell otherwise you will get wierd behaviour with dead silos still having status 3 in Redis membership table.
This works for me:
builder
.Configure<SiloOptions>(options =>
{
options.SiloName = EnvVar.Hostname;
})
.ConfigureEndpoints(advertisedIP: IPAddress.Parse(EnvVar.LocalAddress), siloPort: EnvVar.siloPort, gatewayPort: EnvVar.gatewayPort, listenOnAnyHostAddress: true)
.AddRedisGrainStorageAsDefault(optionsBuilder => optionsBuilder.Configure(options =>
{
options.ConnectionString = "storage:6379";
options.UseJson = true;
options.DatabaseNumber = 1;
}))
.AddRedisGrainDirectory(
"redis-directory-1",
options => options.ConfigurationOptions = new ConfigurationOptions
{
EndPoints = { { "storage:6379" } },
DefaultDatabase = 2
})
.UseRedisClustering(options =>
{
options.ConnectionString = "storage:6379";
options.Database = 0;
});
from orleans.redis.
Related Issues (17)
- JSON deserialization of grain states does not bind GrainReferences to runtime HOT 4
- Redis Streaming HOT 1
- Could not find a membership entry for this silo HOT 12
- Does not work with Co-Hosting HOT 2
- All keys deleted after Redis server rebooted unexpectedly HOT 10
- RedisGrainStorage.ReadStateAsync() should use Array.Length instead of Linq.Enumerable.Count()
- GrainReference not deleted from redis HOT 1
- FLUSHALL required between running different code HOT 1
- [Question] Can it be used on ISiloBuilder? HOT 1
- [Question] intention of redis key format (ServiceId/ClusterId)
- Regular null reference exceptions HOT 1
- Grain multiple states HOT 1
- Orleans 4.0 compatibility
- Unable to resolve service for type Orleans.Runtime.IPersistentState HOT 3
- 'ISiloBuilder' does not contain a definition for 'AddRedisGrainStorage' HOT 5
- Cannot link redis with password HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from orleans.redis.