-
Notifications
You must be signed in to change notification settings - Fork 63
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
redisChaos: add cache limit #163
Conversation
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
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.
LGTM
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
pkg/server/chaosd/redis.go
Outdated
@@ -73,9 +108,23 @@ func (redisAttack) Recover(exp core.Experiment, env Environment) error { | |||
} | |||
attack := config.(*core.RedisCommand) | |||
|
|||
cli := redis.NewClient(&redis.Options{ |
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.
If the action
is core.RedisSentinelStopAction
, this logic is useless. So we should add it to option core.RedisCacheLimitAction:
logic.
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.
Updated!
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
@FingerLeader CI broken! Please fix it! |
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.
LGTM
/merge |
This pull request has been accepted and is ready to merge. Commit hash: 6dffb7c
|
Signed-off-by: FingerLeader wanxfinger@gmail.com