Asp.NetSession Provider can’t realize
Master-Slaveswitching function, but the stable release of
Redis Sentinelis shippedd since
Redis 2.8. Certainly, the sentinel function is support
If you want to know the extra information about
Redis Sentinel, –> click here
Go back to session provider, I found an solution in github, the open source see here
- If you just use redis make the session provider, this solution is completely instead of the Asp.Net session provider.
- But if you want
master-slaveswitching or mutltiple instance used in redis master-slave swtiching, I fork the project and checkout a new branch, the code –> see here
PS. The sample
<sessionState mode="Custom" customProvider="MySessionStateStore">
PS. The other sample
Above this, I think a question about
redis master ipwhen redis master instance is crash, how is it switched?
The answer in the
Redis Sentinelconfiguration, because I input the redis sentinel
web config, base on the quorum argument.
So, if I don’t change the source code, I can’t get the
master ipwhen master instance crashed, but it’s other way to get the IP,
Keepalived, It will generate the
virtual IP, and you can bind your redis instances ip, Ahha It’s only support on linux, so this solution is not suitable for me.
And the detail configuration and How to realize it, please see this article
License: CC BY-NC-ND 4.0