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
Memory(MB) | Avg Duration(ms) | Max Duration(ms) | Avg Graal + Go(ms) | Max Graal + Go(ms) | |
---|---|---|---|---|---|
256 | 489 | 3179 | 992 | 1011 | |
512 | 235 | 1426 | 486 | 529 | |
1024 | 123 | 652 | 243 | 266 | |
1536 | 85 | 443 | 162 | 173 | |
2048 | 78 | 371 | 143 | 153 |
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
import org.apache.commons.lang3.time.StopWatch; | |
import org.apache.commons.math3.ml.clustering.CentroidCluster; | |
import org.apache.commons.math3.ml.clustering.Clusterable; | |
import org.apache.commons.math3.ml.clustering.DoublePoint; | |
import org.apache.commons.math3.ml.clustering.KMeansPlusPlusClusterer; | |
import org.apache.commons.math3.random.*; | |
import java.util.ArrayList; | |
import java.util.List; | |
import java.util.Random; |
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
import os | |
import sqlite3 | |
import cv2 | |
import numpy as np | |
def score(filename): | |
image = cv2.imread(filename) | |
gray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) |
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
route: | |
# Main route | |
routes: | |
# This route allows dumping all events because it has no fields to match and no drop rules. | |
- match: | |
- receiver: dump | |
# This starts another route, drops all the events in *test* namespaces and Normal events | |
# for capturing critical events | |
- drop: | |
- namespace: "*test*" |
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
receivers: | |
- name: "alerts" | |
opsgenie: | |
apiKey: xxx | |
priority: "P3" | |
message: "Event {{ .Reason }} for {{ .InvolvedObject.Namespace }}/{{ .InvolvedObject.Name }} on K8s cluster" | |
alias: "{{ .UID }}" | |
description: "<pre>{{ toPrettyJson . }}</pre>" | |
tags: | |
- "event" |
OlderNewer