apisix icon indicating copy to clipboard operation
apisix copied to clipboard

Billboard: all chaos test to do ( welcome new ideas!😆)

Open Yiyiyimu opened this issue 5 years ago • 15 comments

Background

See #2757

Todo List

Architecture

  • [x] Build github actions that running APISIX on k8s, and deploy chaos on APISIX with chaos mesh (#3404)

Chaos Test overall related:

  • [x] The skywalking server is down: heartbeat in skywalking-nginx-lua would throw error at interval of 3s, so nothing to worry about
  • [x] The oauth 2.0 server is down
  • [ ] Kafka server down/broker failure
  • [x] cpu/memory stressed out and see how apisix works
  • [x] The disk of apisix is full

etcd related:

  • [x] kill all etcd, see if route visit still works (#3404)
  • [x] kill minority of etcd, see if apisix works (#4191)
  • [x] give low&high network delay between apisix and etcd, see if it works (#4315)
  • [x] add network partition to etcd cluster, and see how apisix works: would be same to part of etcd failure (ref)

Could not be tested now: DP CP have not been separated yet

  • Part or all of the dp and cp networks are disconnected
  • The cp node is down randomly
  • The dp node is attacked by ddos

confirmed need hard work but not much benefit

  • restart etcd then apisix and see how it works (resend from memory to etcd)

Welcome more ideas!😆

Yiyiyimu avatar Jan 28 '21 16:01 Yiyiyimu

@Yiyiyimu Have you tried to make the network partition for the etcd cluster? To see the behavior of APISIX.

tokers avatar Jan 29 '21 01:01 tokers

@Yiyiyimu Have you tried to make the network partition for the etcd cluster? To see the behavior of APISIX.

Thanks for the suggestion!! Added to todo and I'll try it later

Yiyiyimu avatar Jan 29 '21 02:01 Yiyiyimu

two ideas

  1. kill one or two pods of etcd cluster , then check CRUD for routes, and then start the etcd pods again,check CRUD for routes again.
  2. when the network connected to etcd is relatively stuck, such as serious packet loss, create 1000 normal routes and check whether the routes are accessed.

idbeta avatar Jan 29 '21 03:01 idbeta

Hi @idbeta Thanks for the suggestions! The second one is great, but I failed to get what we could benefit from the first idea. Could you explain a little more

Yiyiyimu avatar Jan 29 '21 03:01 Yiyiyimu

Hi @idbeta Thanks for the suggestions! The second one is great, but I failed to get what we could benefit from the first idea. Could you explain a little more

the current case is kill all etcd, I think should test the situation where some etcd instances are down. the idea comes from:

我etcd是个集群,但是我宕一台etcd好像apisix重启就报错, 宕的是 Leader

idbeta avatar Jan 29 '21 03:01 idbeta

Hi @idbeta thx for explaination! Added to todo and I'll test it later. Is it from certain issue so I could have some context to reproduce

Yiyiyimu avatar Jan 29 '21 03:01 Yiyiyimu

@Yiyiyimu delete all etcd data to see apisix's behavior.

sysulq avatar Jan 29 '21 08:01 sysulq

update data directly in etcd with high frequency update the same route at high frequency

tzssangglass avatar Jan 29 '21 12:01 tzssangglass

Many thanks @hnlq715 @tzssangglass !!

Yiyiyimu avatar Jan 31 '21 12:01 Yiyiyimu

I need to remind that we test the stability of apisix, not etcd.

We need to look at this issue from a higher perspective.

moonming avatar Jan 31 '21 13:01 moonming

@Yiyiyimu I think you should look at the stability of the apisix cluster from the perspective of the overall architecture, and find out the weaknesses of the system one by one. Instead of randomly shoot.

moonming avatar Jan 31 '21 13:01 moonming

  1. Part or all of the dp and cp networks are disconnected 2. The cp node is down randomly 3. The dp node is attacked by ddos ​​4. The disk of the dp node is full 5. The sykwalking server is down 6. The oauth 2.0 server is down 7. Kafka server ia down etc.

moonming avatar Jan 31 '21 13:01 moonming

@moonming Thanks for the suggestions. That would be so helpful! I'll focus on architecture weakness first and then do some random shoots

Yiyiyimu avatar Jan 31 '21 15:01 Yiyiyimu

This issue has been marked as stale due to 350 days of inactivity. It will be closed in 2 weeks if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the [email protected] list. Thank you for your contributions.

github-actions[bot] avatar May 27 '22 10:05 github-actions[bot]

This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.

github-actions[bot] avatar Jun 10 '22 10:06 github-actions[bot]