Events
How to Separate Events from Kubernetes to a Dedicated Etcd
· β˜• 2 min read
The disk pressure on the original etcd is reduced to below 5%, the risk factor is very low, and the cluster shows no anomalies. 1. Deploying the Events Etcd Cluster Events have lower consistency requirements than the main Etcd. Deploying a 3-node cluster is recommended. SSD is recommended for the disk, and the data directory should be kept separate from the main Etcd.

Using the Ops Project to View and Monitor Cluster Events
· β˜• 3 min read
https://github.com/shaowenchen/ops 1. Alerting on Kubernetes Cluster Events Monitor specified keywords 1 2 3 4 5 6 7 8 9 10 11 apiVersion: crd.chenshaowen.com/v1 kind: EventHooks metadata: name: kube-pod-falid namespace: ops-system spec: type: xiezuo url: https://xxx.com/api/v1/webhook/send?key=xxx subject: "ops.clusters.*.namespaces.*.pods.*.event" keywords: - failed A simple configuration like this yields a large number of related alerts.

Django Signals
· β˜• 3 min read
1. Basic Concepts Django ships with a signal dispatcher built in. Signals help decouple program modules. When an event occurs elsewhere in the application, a designated function is notified. Signals let certain senders notify a group of receivers that some action has taken place. 2. Using Signals 2.1 Declaring a

JavaScript Event Handling Mechanism
· β˜• 4 min read
1. Event Handling Models: Bubbling and Capturing 1 2 3 <div id="outer"> <p id="inner">Click!</p> </div> In the code above, a div element contains a p child element. If both elements have a click handler, how do we know which one will be triggered first? To solve this problem, Microsoft and Netscape proposed two almost completely opposite concepts.