-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
(feat) redis implementation for pub-sub, log streaming and canceller #3108
Conversation
LGTM, I'd maybe also add to the description what this change solves and why? |
43ff22d
to
b91d6c4
Compare
32bd578
to
4369d29
Compare
@@ -166,6 +167,11 @@ type ( | |||
EnableAnonymousAccess bool `envconfig:"DRONE_PROMETHEUS_ANONYMOUS_ACCESS" default:"false"` | |||
} | |||
|
|||
// Redis provides the redis configuration. | |||
Redis struct { | |||
ConnectionString string `envconfig:"DRONE_REDIS_CONNECTION"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recommend we also include redis username and database number as optional parameters. If someone is using hosted redis they may need to set these parameters https://github.com/go-redis/redis#quickstart
…nd fixed the pagination issue when filter if applied (#3108) * Made changes to the default value for sort * UI changes for search filter * UI changes for search filter * Search functionality changes
Introduces Redis as an optional dependency for Drone. If Redis connection string is defined, Drone will use Redis for pub-sub mechanism, log streaming and build canceller.
This PR is a part of HA push for Drone: To add support for several Drone servers to run in parallel.