Comments (4)
@DR-YangLong 您好,关于单点问题,是否考虑过使用Redis Sentinel的Automatic failover?
from shiro-redis.
我目前的环境使用redis的单机,想过主备切换,但是app端还是需要开发,开始想的解决方法是使用zookeeper实现自动切换,对外提供一个访问地址,现在换了工作,项目小,redis没有继续使用
from shiro-redis.
我测试在支持JDK原生序列化的情况下,fst的速度是最快的,fastjson慢到不可接受,fastjson不太适合对象的序列化,另外我参考了oschina的kryo的池式实现写了差不多的序列化器,但是性能还是没有fst好。
from shiro-redis.
Caused by: redis.clients.jedis.exceptions.JedisMovedDataException: MOVED 14966 127.0.0.1:9002
at redis.clients.jedis.Protocol.processError(Protocol.java:108)
at redis.clients.jedis.Protocol.process(Protocol.java:151)
at redis.clients.jedis.Protocol.read(Protocol.java:205)
at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297)
at redis.clients.jedis.Connection.getBinaryBulkReply(Connection.java:216)
at redis.clients.jedis.BinaryJedis.get(BinaryJedis.java:159)
at org.crazycake.shiro.RedisManager.get(RedisManager.java:54)
at org.crazycake.shiro.RedisSessionDAO.doReadSession(RedisSessionDAO.java:89)
at org.apache.shiro.session.mgt.eis.AbstractSessionDAO.readSession(AbstractSessionDAO.java:168)
at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSessionFromDataSource(DefaultSessionManager.java:236)
at org.apache.shiro.session.mgt.DefaultSessionManager.retrieveSession(DefaultSessionManager.java:222)
at org.apache.shiro.session.mgt.AbstractValidatingSessionManager.doGetSession(AbstractValidatingSessionManager.java:118)
at org.apache.shiro.session.mgt.AbstractNativeSessionManager.lookupSession(AbstractNativeSessionManager.java:105)
at org.apache.shiro.session.mgt.AbstractNativeSessionManager.getSession(AbstractNativeSessionManager.java:97)
at org.apache.shiro.mgt.SessionsSecurityManager.getSession(SessionsSecurityManager.java:125)
at org.apache.shiro.mgt.DefaultSecurityManager.resolveContextSession(DefaultSecurityManager.java:456)
at org.apache.shiro.mgt.DefaultSecurityManager.resolveSession(DefaultSecurityManager.java:442)
at org.apache.shiro.mgt.DefaultSecurityManager.createSubject(DefaultSecurityManager.java:338)
at org.apache.shiro.subject.Subject$Builder.buildSubject(Subject.java:846)
at org.apache.shiro.web.subject.WebSubject$Builder.buildWebSubject(WebSubject.java:148)
at org.apache.shiro.web.servlet.AbstractShiroFilter.createSubject(AbstractShiroFilter.java:292)
at org.apache.shiro.web.servlet.AbstractShiroFilter.doFilterInternal(AbstractShiroFilter.java:359)
... 39 more
from shiro-redis.
Related Issues (20)
- RedisSessionDAO出现AQS线程阻塞
- shiro redis 版本从3.0.0升级到3.3.1登录报 UnknownSessionException
- shiro-redis.cache-manager.expire
- 3.3.2版本怎么这和久都不发布啊 HOT 5
- 报错java.net.SocketTimeoutException: Read timed out HOT 1
- 在SecurityUtils.getSubject().logout()时报错
- com.puppycrawl.tools:checkstyle 代码问题漏洞(CVE-2019-10782)
- Apache Shiro < 1.8.0 have a problem that Authentication bypasses the vulnerability(CVE-2021-41303)
- shiro-redis 3.3.1 程序启动后 每隔一个小时 redis 实例 cpu 升高 HOT 2
- There is no session with id HOT 1
- redis4.x版本,直接报错,只能使用3.x版本 HOT 13
- [微服务之间的session共享],请问有什么方案推荐么?
- bug:There is no session with id
- shiro-core version need update to 1.7 or larger HOT 1
- 使用redis哨兵模式时 连接redis哨兵报错NOAUTH Authentication required HOT 1
- 偶发的NPE异常
- Spring Boot 3.1.4 使用的时候报错 java.lang.NoSuchMethodError: 'java.lang.Long redis.clients.jedis.Jedis.del(byte[])' HOT 5
- shiro-redis使用自定义的RedisSerializer出现的问题
- sessionInMemoryEnabled 打开后,内存占用较高 HOT 1
- Shiro-redis not working for clustered AWS elastic cache
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 shiro-redis.