This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # no limit - no HPA | |
| kubectl apply -f k8s_deployment-alex-no-limit.yaml | |
| ./hey_linux_amd64 -c 20 -n 100000 http://X.X.X.X/get-time | |
| Summary: | |
| Total: 10.1857 secs | |
| Slowest: 0.0477 secs | |
| Fastest: 0.0008 secs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| namespace: kube-system | |
| labels: | |
| k8s-app: fluentd-gcp | |
| name: fluentd-gcp-v2.0 | |
| spec: | |
| selector: | |
| matchLabels: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # this function decomposes the funky key-value nested CSV event message Dome9 uses for regular alerts | |
| def csv_to_dict(event_message): | |
| regex = r"\[[A-Za-z0-9\s\-_,:/()|\.@=]*\]" | |
| # capture all nested kv in [] | |
| nested_msg = re.findall(regex, event_message) | |
| # remove all nested kv in | |
| msg_pruned = re.sub(regex, '', event_message) | |
| # clip [] from nested message |
NewerOlder