Zak's Notes

SRE Field Notes

Bash Scripting Pushd Popd

In bash, popd is a command used to change the current directory to the directory stored in the directory stack. The directory stack is a list of directories that are maintained by the shell, and pushd is used to add a directory to the stack. When you run popd, the topmost directory on the stack is removed and the shell changes to the next directory in the stack. Here’s an example of how you can use popd in a bash script:

Linux Process 101

Linux processes are instances of running applications or programs within the operating system. Every process has its own unique identifier, process ID (PID), and is isolated from other processes. In this tutorial, we will explore how Linux processes work, the different types of processes, and how they are managed. Process Creation: In Linux, processes are created through the fork system call. The fork system call creates a new process by copying the parent process.

Linux System Call 101

A system call is a way for a program to request a service from the operating system. It is a low-level interface to the kernel, the core of the operating system. In Linux, system calls are used to perform various operations such as process creation, file management, and inter-process communication. Here is a basic tutorial on system calls in Linux: Understanding system calls: A system call is a function provided by the operating system that a process can use to request a service.

Sre 101

SRE Measurement Terms SLA, SLO, and SLI are terms commonly used in the field of Site Reliability Engineering (SRE). They are used to define the level of service that an organization promises to its customers and to measure the performance of systems and services. Service Level Agreement (SLA): A Service Level Agreement (SLA) is a contract between a service provider and its customers that defines the level of service that the provider will deliver.

Google Cloudrun Terraform

An Introduction to Google Cloud Run with Terraform: Benefits, Use Cases, and the Role of Knative Google Cloud Run is a fully managed compute platform by Google that enables you to run stateless containers in a serverless environment. Cloud Run removes the need for infrastructure management, thereby making development and deployment a seamless process. While Cloud Run is undoubtedly an excellent tool, you can unlock even more potential by deploying Cloud Run with Terraform, a powerful infrastructure as code (IaC) tool.