Add Gitlab::Redis::RateLimiting Redis instance
This instance is not used yet, but will soon be used for rate limiting via Rack::Attack and Gitlab::ApplicationRateLimiter. Having this configuration option in place will allow us to build on that, and also create merge requests to support this option in Omnibus and our Helm charts.
显示
- .gitignore 1 个添加, 0 个删除.gitignore
- app/controllers/admin/dashboard_controller.rb 7 个添加, 1 个删除app/controllers/admin/dashboard_controller.rb
- app/controllers/health_controller.rb 1 个添加, 0 个删除app/controllers/health_controller.rb
- config/README.md 42 个添加, 1 个删除config/README.md
- config/application.rb 2 个添加, 0 个删除config/application.rb
- config/initializers/7_redis.rb 1 个添加, 0 个删除config/initializers/7_redis.rb
- config/redis.rate_limiting.yml.example 38 个添加, 0 个删除config/redis.rate_limiting.yml.example
- doc/administration/redis/replication_and_failover.md 6 个添加, 0 个删除doc/administration/redis/replication_and_failover.md
- doc/development/redis.md 2 个添加, 0 个删除doc/development/redis.md
- lib/gitlab/health_checks/redis/rate_limiting_check.rb 35 个添加, 0 个删除lib/gitlab/health_checks/redis/rate_limiting_check.rb
- lib/gitlab/health_checks/redis/redis_check.rb 2 个添加, 1 个删除lib/gitlab/health_checks/redis/redis_check.rb
- lib/gitlab/instrumentation/redis.rb 2 个添加, 1 个删除lib/gitlab/instrumentation/redis.rb
- lib/gitlab/redis/rate_limiting.rb 12 个添加, 0 个删除lib/gitlab/redis/rate_limiting.rb
- scripts/prepare_build.sh 3 个添加, 0 个删除scripts/prepare_build.sh
- spec/lib/gitlab/health_checks/probes/collection_spec.rb 2 个添加, 0 个删除spec/lib/gitlab/health_checks/probes/collection_spec.rb
- spec/lib/gitlab/health_checks/redis/rate_limiting_check_spec.rb 8 个添加, 0 个删除...ib/gitlab/health_checks/redis/rate_limiting_check_spec.rb
- spec/lib/gitlab/instrumentation/redis_spec.rb 2 个添加, 1 个删除spec/lib/gitlab/instrumentation/redis_spec.rb
- spec/lib/gitlab/redis/rate_limiting_spec.rb 55 个添加, 0 个删除spec/lib/gitlab/redis/rate_limiting_spec.rb
- spec/support/redis.rb 8 个添加, 0 个删除spec/support/redis.rb
- spec/support/redis/redis_helpers.rb 5 个添加, 0 个删除spec/support/redis/redis_helpers.rb
加载中
想要评论请 注册 或 登录