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

redisChaos: support sentinel stop/restart #152

Merged
merged 13 commits into from
May 5, 2022

Conversation

FingerLeader
Copy link
Member

No description provided.

Signed-off-by: FingerLeader <wanxfinger@gmail.com>
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
@ti-chi-bot
Copy link
Member

ti-chi-bot commented Apr 7, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • WangXiangUSTC
  • cwen0

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

Signed-off-by: FingerLeader <wanxfinger@gmail.com>
@FingerLeader FingerLeader marked this pull request as ready for review April 8, 2022 05:38
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
@cwen0
Copy link
Member

cwen0 commented Apr 15, 2022

@FingerLeader Can you fix the CI first?

FingerLeader and others added 4 commits April 18, 2022 22:42
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
pkg/server/chaosd/redis.go Show resolved Hide resolved
if attack.Conf == "" {
return errors.WithStack(errors.Errorf("redis config is not present"))
}
recoverCmd := exec.Command("redis-server", attack.Conf, "--sentinel")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to make sure the redis-server is in PATH. I think we can provide a recover-cmd just like the process attack.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a flag to set the path of redis-server

pkg/server/chaosd/redis.go Show resolved Hide resolved
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
@WangXiangUSTC WangXiangUSTC added this to the v1.3 milestone May 5, 2022
@FingerLeader
Copy link
Member Author

PTAL /cc @cwen0 @WangXiangUSTC

Copy link
Collaborator

@WangXiangUSTC WangXiangUSTC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

cmd/attack/redis.go Outdated Show resolved Hide resolved
@WangXiangUSTC
Copy link
Collaborator

It's better to add some description for this pr, and link the issue #133

Signed-off-by: FingerLeader <wanxfinger@gmail.com>
@FingerLeader
Copy link
Member Author

It's better to add some description for this pr, and link the issue #133

Done it

Copy link
Member

@cwen0 cwen0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cwen0
Copy link
Member

cwen0 commented May 5, 2022

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: 98cd90d

@ti-chi-bot ti-chi-bot merged commit bf14130 into chaos-mesh:main May 5, 2022
@FingerLeader FingerLeader deleted the add-redis branch May 6, 2022 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants