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

The execution in matched pods with low efficiency #77

Open
StephenLiuYa opened this issue May 14, 2021 · 0 comments
Open

The execution in matched pods with low efficiency #77

StephenLiuYa opened this issue May 14, 2021 · 0 comments
Assignees
Labels
type/enhancement New feature or request
Milestone

Comments

@StephenLiuYa
Copy link
Contributor

Issue Description

I want to let thousands of pods loss network in time,but I found the execution in matched pod is serial,so it is inefficient

  • feature request

Describe what happened (or what feature you want)

  • test case
apiVersion: chaosblade.io/v1alpha1
kind: ChaosBlade
metadata:
  name: loss-pod-by-labels
spec:
  experiments:
  - scope: pod
    target: network
    action: loss
    desc: "node network loss"
    matchers:
    - name: labels
      value: ["app=nginx"]
    - name: namespace
      value: ["default"]
    - name: percent
      value: ["100"]
    - name: interface
      value: ["eth0"]
    - name: local-port
      value: ["80"]
  • result:
time="2021-05-14T13:58:20Z" level=info msg="get pods by labels app=nginx, len is 51" experiment=loss-pod-by-labels
……
time="2021-05-14T14:08:22Z" level=info msg="trigger update event, name: loss-pod-by-labels"

It takes 10 minutes to loss network in 51 pods

@tiny-x tiny-x added this to the v1.1.0 milestone May 16, 2021
@tiny-x tiny-x added the type/enhancement New feature or request label May 16, 2021
@tiny-x tiny-x self-assigned this May 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants