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

无状态服务相关的讨论 | Discussions about stateless services #938

Open
findlayfeng opened this issue Jul 5, 2024 · 3 comments
Open
Milestone

Comments

@findlayfeng
Copy link
Contributor

ssp 大部分都可以是无状态的,但是 ratelimit 功能使用了临时文件缓存了服务状态,这导致在无状态部署的时候不得不开启验证码,这非常影响用户使用,我们是不是可以 使用 redis 或者其他的可配置的方式代替临时文件?


Most ssp can be stateless, but the ratelimit function uses temporary files to cache the service status, which results in the need to enable verification codes during stateless deployment, which greatly affects user usage. Can we use redis or other configurable methods instead of temporary files?

"dbdir" => isset($ratelimit_dbdir) ? $ratelimit_dbdir : sys_get_temp_dir(),

@coudot coudot added this to the Backlog milestone Jul 6, 2024
@coudot
Copy link
Member

coudot commented Jul 6, 2024

This can be a new feature

@dgeo
Copy link
Contributor

dgeo commented Jul 20, 2024

We could just add doc about using a kind of sticky sessions (selecting backend by src ip for example), it's not perfect but avoids adding dependencies and is already working if you need HA

@davidcoutadeur
Copy link

davidcoutadeur commented Jul 22, 2024

I agree.

I have added a note in documentation about stateless service and sticky session: https://github.com/ltb-project/self-service-password/blob/master/docs/config_rate_limit.rst

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

4 participants