Skip to content

Instantly share code, notes, and snippets.

➜ kc logs run-mysql-benchmark-n86hb -f  ✔  10235  15:35:06
Starting the database server...
[i] MySQL data directory not found, creating initial DBs
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
2021-05-11 10:05:01 1 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")
[i] MySQL root Password: 111111
[i] Creating database: sbtest
2021-05-11 10:05:01 0 [Note] /usr/bin/mysqld (mysqld 10.5.9-MariaDB-log) starting as process 94 ...
2021-05-11 10:05:01 0 [Note] InnoDB: Uses event mutexes
2021-05-11 10:05:01 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
/ # /usr/local/bin/run-benchmark.sh
Starting the database server...
[i] MySQL data directory not found, creating initial DBs
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
2021-05-11 9:57:42 1 [Warning] Failed to load slave replication state from table mysql.gtid_slave_pos: 1017: Can't find file: './mysql/' (errno: 2 "No such file or directory")
Waiting for DB to start...
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)
[i] MySQL root Password: 111111
[i] Creating database: sbtest
2021-05-11 9:57:43 0 [Note] /usr/bin/mysqld (mysqld 10.5.9-MariaDB-log) starting as process 109 ...
{
"defaultAction": "SCMP_ACT_ERRNO",
"archMap": [
{
"architecture": "SCMP_ARCH_X86_64",
"subArchitectures": [
"SCMP_ARCH_X86",
"SCMP_ARCH_X32"
]
},
@knrt10
knrt10 / myakscluster.lokocfg
Created January 27, 2021 06:47
AKS cluster config
#myakscluster.lokocfg
variable "asset_dir" {
default = "./assets"
}
variable "cluster_name" {
default = "knrt10-cluster"
}
variable "workers_count" {
default = 3
}
@knrt10
knrt10 / personal_notes.sh
Created December 30, 2020 06:41
personal notes
# change all occurances in git repository
git grep -l 'original_text' | xargs sed -i '' 's/original_text/new_text/g'
# For commenting multiple lines in vim:
:66,70s/^/#
# For uncommenting multiple lines in vim:
:66,70s/^#/
# What files changed for 1 commit in git repo
@knrt10
knrt10 / webhook-run.sh
Last active July 28, 2020 11:04
Files, to start mutating webhook admission controller
#!/bin/bash
set -e
usage() {
cat <<EOF
Generate certificate suitable for use with an mutating webhook service.
This script uses k8s' CertificateSigningRequest API to a generate a
certificate signed by k8s CA suitable for use with mutating webhook
services. This requires permissions to create and approve CSR. See
# Don't print a new line at the start of the prompt
add_newline = false
# Replace the "❯" symbol in the prompt with "➜"
[character] # The name of the module we are configuring is "character"
symbol = "➜" # The "symbol" segment is being set to "➜"
error_symbol = "✗"
use_symbol_for_status = true
# Disable the package module, hiding it from the prompt completely
@knrt10
knrt10 / grpc-cache-deployment.yaml
Created June 5, 2020 21:51
grpc-cache deployment file
apiVersion: apps/v1
kind: Deployment
metadata:
name: grpc-cache
namespace: grpc-cache
spec:
replicas: 1
selector:
matchLabels:
name: grpc-cache
@knrt10
knrt10 / Google_Summer_of_Code_2019- Rocket.Chat RealTime-Monitoring_Kautilya_Tripathi.md
Last active August 24, 2019 06:48
Google_Summer_of_Code_2019- Rocket.Chat RealTime-Monitoring Kautilya Tripathi
{
"receiver": "incoming-webhook",
"status": "resolved",
"alerts": [
{
"status": "resolved",
"labels": {
"alertname": "node_down",
"env": "prod",
"instance": "testhost.local:9100",