Skip to content

Instantly share code, notes, and snippets.

@hemanthnakkina-zz
hemanthnakkina-zz / query-kubeapiserver.sh
Created November 26, 2020 09:51
Send parallel API requests to kube-api server
#!/bin/bash -eux
# This file is based on https://code.launchpad.net/~freyes/+git/experiment
# Modified to use xargs instead of parallel
# source: https://kubernetes.io/docs/tasks/administer-cluster/access-cluster-api/
PARALLEL_REQS=20
SLEEP_SECS=0.1
TEMPLOG=$(mktemp).log
@hemanthnakkina-zz
hemanthnakkina-zz / query-etcd.sh
Created November 26, 2020 09:48
Query etcd keys
#!/bin/bash -eux
# This file is based on https://code.launchpad.net/~freyes/+git/experiment
# Modified to use xargs instead of parallel
# 'etcd.etcdctl' is provided by the etcd snap
which etcd.etcdctl
PARALLEL_REQS=20
SLEEP_SECS=0.1
@hemanthnakkina-zz
hemanthnakkina-zz / handle-pci-device-changes-queens.patch
Created October 22, 2020 04:01
Backport for nova change 749175
From d51d063d80d776fec7041c612667b869a384e8dd Mon Sep 17 00:00:00 2001
From: Hemanth Nakkina <hemanth.nakkina@canonical.com>
Date: Tue, 1 Sep 2020 09:36:51 +0530
Subject: [PATCH] Update pci stat pools based on PCI device changes
At start up of nova-compute service, the PCI stat pools are
populated based on information in pci_devices table in Nova
database. The pools are updated only when new device is added
or removed but not on any device changes like device type.