Open in app

Sign in

Write

Sign in

M Castelino
M Castelino

15 Followers

Home

About

Published in

Kubehells

·Jan 31, 2021

Kubernetes Pod Monitors & Re-Labeling — Managing Cardinality

The Prometheus operator offers a simple method to scrape metrics from any Pod. However in many cases the Pod itself is not what you are monitoring; but the Pod is used to expose metrics that relate to the Node. In such cases what the user cares about is the Node…

Prometheus

2 min read

Prometheus

2 min read


Published in

Kubehells

·Jan 31, 2021

Pandas, Elasticsearch and Aggregations

Pandas is good at handling large volumes of data. However there is always an upper limit. What if you are looking for summary statistics for an extremely large data set and your narrowest window of analysis is known. Do you want to look at all the data? Probably not. Narrowest…

Elasticsearch

2 min read

Elasticsearch

2 min read


Published in

Kubehells

·Jan 30, 2021

Kubernetes and Networking from first principles

Its been some time since I wrote the Kubernetes Resource Management Deep dive. In this post I wanted to reduce Kubernetes to it very bare bones ignoring all the scaffolding introduced by various controllers and higher level abstractions and focus on the building blocks with specific focus on how networking…

Kubernetes Networking

6 min read

Kubernetes Networking

6 min read


Apr 11, 2019

Breakdown of kvmtool SLIRP Implementation

invocation ./lkvm run --kernel bzImage --disk rootfs.ext4 --debug --network mode=user Inside the VM ip addr add 192.168.33.2/24 dev enp0s0 ip link set up enp0s0 ip route add default via 192.168.33.1 Now you can reach the host Implementation Setup 837 ndev = calloc(1, sizeof(struct net_dev)); 841…

Linux

5 min read

Linux

5 min read


Apr 11, 2019

Setting up a overlay network using point to multi-point GRE tunnels

Multi-Point GRE Tunnels Typically VxLAN is used to setup a point to multi-point overlay networks. However GRE also offers a similar capability which is often not heavily used. This document calls out how to setup an effient overlay mesh network to link up multiples sits together using multi point GRE tunnels. Setup The setup…

Networking

2 min read

Networking

2 min read


Apr 11, 2019

Tracing QEMU-KVM Interactions

But default in linux you can figure out how many times and for what reasons there is a VM Exit from a VM into the kvm kernel module. However given the ubiquity of vhost and the ability of kvm to emulate most device models directly in the kernel, most of…

Linux

4 min read

Linux

4 min read


Apr 11, 2019

Creating a Virtual Machine that can be instantly resumed or duplicated using migration

Overview QEMU supports migration of a virtual machine across machine over the network. It also has the capability to save the state of a virtual machine and resume from that state. It is described in detail in https://www.linux-kvm.org/page/Migration This capability can be leveraged to create an instant resume virtual machine image…

Linux

3 min read

Linux

3 min read


Apr 11, 2019

How to track raw sockets in Linux

Example program Say a program has opened a raw socket. How do you know it has it open + int sock_r; + struct ifreq ifrr; + size_t if_name_len=strlen("dummy0"); + struct sockaddr_ll…

Linux

3 min read

Linux

3 min read


Apr 11, 2019

Debugging ACPI Events in the kernel using QEMU

Kernel Build Build the kernel with ACPI debug enabled as described in https://www.kernel.org/doc/Documentation/acpi/debug.txt tl;dr ACPI debug output is globally enabled by CONFIG_ACPI_DEBUG. If this config option is turned off, the debug messages are not even built into the kernel. When CONFIG_ACPI_DEBUG=y, you can select the component and level of messages you're interested…

Linux

2 min read

Linux

2 min read


Apr 11, 2019

How to use VFIO to assign a device to nested VM

Here the vfio-pci device is passed in into the L1 VM The L1 VM is setup with kernel_irqchip=split The L0 exposes a virtual IOMMU to the L1 VM qemu-system-x86_64 \ -machine q35,accel=kvm,kernel_irqchip=split \ -enable-kvm \ -bios OVMF.fd \…

Linux

2 min read

Linux

2 min read

M Castelino

M Castelino

15 Followers

https://github.com/mcastelino https://gist.github.com/mcastelino

Following
  • Akihiro Suda

    Akihiro Suda

  • Ali Josie

    Ali Josie

  • Edward Robson, PhD, MFA

    Edward Robson, PhD, MFA

  • Michael Kipper

    Michael Kipper

  • Sunil Raghavan

    Sunil Raghavan

See all (8)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams