Skip to content

redisChaos: support sentinel stop/restart - #152

Merged
ti-chi-bot merged 13 commits into
chaos-mesh:mainfrom
FingerLeader:add-redis
May 5, 2022
Merged

ti-chi-bot merged 13 commits into
chaos-mesh:mainfrom
FingerLeader:add-redis

Conversation

@FingerLeader

Copy link
Copy Markdown
Member

No description provided.

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

ti-chi-bot commented Apr 7, 2022 •

Copy link
Copy Markdown
Member

[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.

Details

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

cwen0 commented Apr 15, 2022

Copy link
Copy Markdown
Member

@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>
Comment thread pkg/server/chaosd/redis.go Resolved
Comment thread pkg/server/chaosd/redis.go Outdated
if attack.Conf == "" {
return errors.WithStack(errors.Errorf("redis config is not present"))
}
recoverCmd := exec.Command("redis-server", attack.Conf, "--sentinel")

Copy link
Copy Markdown
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
Copy Markdown
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

Comment thread pkg/server/chaosd/redis.go Resolved
Signed-off-by: FingerLeader <wanxfinger@gmail.com>
@WangXiangUSTC WangXiangUSTC added this to the v1.3 milestone May 5, 2022
@FingerLeader

Copy link
Copy Markdown
Member Author

PTAL /cc @cwen0 @WangXiangUSTC

@WangXiangUSTC WangXiangUSTC left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

Comment thread cmd/attack/redis.go Resolved
@WangXiangUSTC

Copy link
Copy Markdown
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
Copy Markdown
Member Author

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

Done it

@cwen0 cwen0 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@cwen0

cwen0 commented May 5, 2022

Copy link
Copy Markdown
Member

/merge

@ti-chi-bot

Copy link
Copy Markdown
Member

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

DetailsCommit 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