Skip to content

Instantly share code, notes, and snippets.

View jasonk000's full-sized avatar

Jason Koch jasonk000

  • Netflix
View GitHub Profile
@jasonk000
jasonk000 / druid.log
Created December 3, 2021 19:31
druid task shutdown process
2021-12-03T18:34:37,787 INFO [KafkaSupervisor-xxxx] org.apache.druid.indexing.overlord.RemoteTaskRunner - Shutdown [%s] because: [No task in the corresponding pending completion taskGroup[%d] succeeded before completion timeout elapsed]; index_kafka_xxxx_c51e10928edd560_moiikjbd; [Ljava.lang.Object;@47355796
2021-12-03T18:34:37,790 INFO [KafkaSupervisor-xxxx] org.apache.druid.indexing.overlord.RemoteTaskRunner - Sent shutdown message to worker: x.x.x.x:7103, status 200 OK, response: {"task":"index_kafka_xxxx_c51e10928edd560_moiikjbd"}
2021-12-03T18:34:37,790 INFO [KafkaSupervisor-xxxx] org.apache.druid.indexing.overlord.TaskLockbox - Removing task[index_kafka_xxxx_c51e10928edd560_moiikjbd] from activeTasks
2021-12-03T18:34:37,791 INFO [KafkaSupervisor-xxxx] org.apache.druid.indexing.overlord.TaskLockbox - Removing task[index_kafka_xxxx_c51e10928edd560_moiikjbd] from TaskLock[TimeChunkLock{type=EXCLUSIVE, groupId='index_kafka_xxxx', dataSource='xxxx', interval=2021-12-03T18:00:00.000Z/2021-12-03T18:15:00.000Z,
@jasonk000
jasonk000 / 00 summary
Last active January 5, 2021 19:04
GC-opt branch improvement
gc-opt branch
mark + reindex (times in seconds)
220
239
292
95
150
mark + reindex (times in seconds)
@jasonk000
jasonk000 / customization.diff
Created August 25, 2020 19:13
Eclipse JIFA customization hooks
diff --git a/backend/build.gradle b/backend/build.gradle
index 6c5c21b..5486148 100644
--- a/backend/build.gradle
+++ b/backend/build.gradle
@@ -14,7 +14,7 @@ subprojects {
apply plugin: 'java'
ext {
- vertx_version = '3.8.3'
+ vertx_version = '3.9.2'
@jasonk000
jasonk000 / 00 contents
Last active April 3, 2020 15:02
improve jitdump support when mmap'd jit region expands for kdab hotspot & perf
Linux perf fixes
01 overview
02 patch to make linux perf report work cleanly with jitdump remap
03 perf script for sample input file showing mmap overwrite
04 perf report before example
05 perf report after example
--
KDAB Hotspot specific fixes
06 patch to make linux perf output output program headers for KDAB hotspot
07 patch to make hotspot UI load cleanly with jitdump remap
RUN COMPLETE.
RUN RESULTS:
------------------------------------------------------------------------------------------------------------------------
*** INTERESTING tests
Some interesting behaviors observed. This is for the plain curiosity.
0 matching test results.
@jasonk000
jasonk000 / hpa-top.js
Last active August 3, 2018 22:02
top-for-hpa
#!/usr/bin/env node
const fs = require('fs')
const columnify = require('columnify')
const exec = require('sync-exec')
let stdinBuffer = exec('kubectl get hpa --all-namespaces --output json').stdout
let results = JSON.parse(stdinBuffer.toString())
// stdinBuffer = exec('kubectl get pods --all-namespaces | grep -v Running').stdout
@jasonk000
jasonk000 / kube-dns.yml
Created September 21, 2017 08:37
Kube DNS yaml with logging enabled
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kube-dns-jason
namespace: kube-system
labels:
k8s-app: kube-dns
kubernetes.io/cluster-service: "true"
spec:
# replicas: not specified here:
@jasonk000
jasonk000 / nodejs-sample.js
Last active September 13, 2023 20:31
Using x.509 certs with JWS/JWT/JWK
#!/usr/bin/env node
import fs from 'fs'
import jose from 'node-jose'
import pem from 'pem'
async function run () {
try {
// keystore to stick our node-jose keys before we do signing
let keystore = jose.JWK.createKeyStore()