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

多机部署后台管理登录Session混乱 #1505

Closed
jerry-shao opened this issue Oct 29, 2021 · 6 comments
Closed

多机部署后台管理登录Session混乱 #1505

jerry-shao opened this issue Oct 29, 2021 · 6 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature.

Comments

@jerry-shao
Copy link
Contributor

是什么版本出现了此问题?

1.4.11

使用的什么数据库?

MySQL 5.7

使用的哪种方式部署?

Fat Jar

在线站点地址

https://jerryshao.com

发生了什么?

网站目前部署在AWS的3台EC2上面,前面加了AWS Elastic LoadBalancer做负载均衡。

前端页面访问正常。

后端管理页面登录后,频繁提升需要重新登录。

通过服务器A登录之后的session,登录成功跳转到控制台页面可能被转到了服务器B或C。
不知道咱们对后端登录Session是怎么管理的?

相关日志输出

No response

附加信息

No response

@jerry-shao jerry-shao added the kind/bug Categorizes issue or PR as related to a bug. label Oct 29, 2021
@JohnNiang
Copy link
Member

Thank you reaching out here!

目前 Halo 是有状态服务,即使是使用了 MySQL 也不适合多机部署。

我们不认为这是一个 bug,不过可以作为一个 improvement 来完善。

@jerry-shao
Copy link
Contributor Author

同意,毕竟是还不支持的功能。

我有时间也看下代码,看能不能把这个问题解决。

@ruibaby ruibaby added kind/feature Categorizes issue or PR as related to a new feature. and removed kind/bug Categorizes issue or PR as related to a bug. labels Nov 2, 2021
@JohnNiang
Copy link
Member

Hi @jerry-shao ,这不仅仅是 Session 的问题。还有三个问题需要考虑:

  1. 多机部署不能使用 H2 数据库作为数据存储
  2. 多级部署模式下,目前还没有办法同步主题文件
  3. 多级部署模式下,目前还没有适配集中式缓存

@luoxmc
Copy link

luoxmc commented Mar 16, 2022

针对当前版本的halo,我这边已经改造实现了集群部署,具体方案可以看我的博客 https://www.luoxx.top/archives/halo-distributed-deploy

@Zhoutzzz
Copy link

针对当前版本的halo,我这边已经改造实现了集群部署,具体方案可以看我的博客 https://www.luoxx.top/archives/halo-distributed-deploy

兄弟我正好也有这个需求你就弄了,赞

@luoxmc
Copy link

luoxmc commented Mar 19, 2022

针对当前版本的halo,我这边已经改造实现了集群部署,具体方案可以看我的博客 https://www.luoxx.top/archives/halo-distributed-deploy

兄弟我正好也有这个需求你就弄了,赞

哈哈,确实是巧了,我也是这几天才搞的

@ruibaby ruibaby closed this as not planned Won't fix, can't repro, duplicate, stale Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature.
Projects
None yet
Development

No branches or pull requests

5 participants