Categories

130 pages

Computer

Chaos Engineering

A pattern of disruption to test system stability.

Main Text

The domestic internet industry is always fond of playing with new things, often introducing terms that most people wouldn’t be able to guess what they are. After reading some articles, this definition specifically for the early stages of Chaos Engineering is relatively easy to accept:

Early exploration of Chaos Engineering has actually been ongoing within the industry, previously existing under the guise of fault testing and disaster recovery exercises. As microservice architectures continue to develop and distributed systems grow ever larger, Chaos Engineering has begun to emerge and gain increasing importance. Following Netflix’s formal proposal of the Chaos Engineering concept, related theories have also rapidly enriched. Netflix’s practices have also demonstrated the significant impact Chaos Engineering has on stability.

Kubernetes paused pod

Deployment controllers implement a crucial function within a Kubernetes cluster: the ability to horizontally scale and shrink Pods. This capability was essential for traditional cloud-era platforms.

Encountering a business scenario where you need to modify data in a database, restarting Pod nodes after adjustments. However, during Pod operation, table fields are continuously modified, requiring temporary pausing of application updates to tables, adjusting the data, and then restoring the Pod.

Besides abruptly deleting the Deployment, are there other ways to achieve a similar pause effect?

Docker Basics, Intermediate, and Advanced

Having worked with CentOS for many years, content may not apply to macOS or Ubuntu users in some cases.

You can refer to the documentation from Tsinghua University for installation guidance: https://mirrors.tuna.tsinghua.edu.cn/help/docker-ce/

Installation

Due to unknown mysterious forces, domestic Docker installation is recommended to set the cloud vendor’s repository address. Here we recommend using Alibaba Cloud.

Set Repository Source Address

yum install yum-utils device-mapper-persistent-data lvm2 && \
sudo yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

Deploy the Latest Version

Docker is a commonly used background service, we recommend setting it to start on boot. The following command applies to CentOS 7:

Linux Setup JMeter Test Environment

The author has a strong interest in hardware and used JMeter to conduct load testing, documenting the process of deploying JMeter, InfluxDB, and Grafana on CentOS 7. They shared installation and command usage for JMeter, InfluxDB’s features and Docker installation method, as well as a simple deployment and configuration for Grafana. They summarized experience and references related to high-performance programming patterns.

Background

As widely known, I have a very strong interest in hardware. By chance, the test team was using JMeter to perform load tests and discovered that performance wasn’t improving. As a curious individual, I decisively took action to see how the company conducted its testing. There’s also a small story: at some point in the distant past, I read a post on OpenChina about how to create more impressive-looking performance test graphs – after observing Windows versions execute tests and achieving visualized TPS data display, what’s the use of configuring a web panel?

Red Hat and CentOS Lifecycle

Production environment operating systems, with Red Hat and CentOS being the mainstream choices. The documentation includes links to two system lifecycles and shares experience upgrading from CentOS 8 to CentOS Stream 8.

Building PCs

The author has long had an interest in building computers from a young age, and began to delve into hardware assembly after university. They recommended websites for comparing hardware performance and offered purchasing suggestions, including CPU, solid-state drives, hard disk drives, and memory frequencies. They also shared their experience and advice regarding hardware selection and important considerations.

Wonder – Unspeakable

Ever since I was young, I’ve dreamed of building my own computer, but unfortunately, economic conditions didn’t allow it. Finally, after a lot of hard work, I reached university and built a laptop for portability. If I had to pinpoint a specific time when the idea started, it would be when I first began thinking about assembling computers at my hometown’s library. After all, it was a sizable city-level library, with not only an electronic reading room (though I never actually used it – it was billed by the hour) but also a magazine reading room, where I discovered magazines like Popular Science and Computer News. For someone who had limited exposure to computers, these were practically divine科普资料 (scientific popularization materials). When I read about players “doing dungeons” and “killing monsters,” I thought about building my own computer to do the same, acting as the main output. And when I saw “black technology,” I fantasized about replicating what was described in the books, hoping to achieve similar effects (regarding the use of hacking tools).

Website Acceleration and Domain Settings

Due to slow access to GitHub Pages from within the country, the author applied for a personal domain and purchased CDN acceleration services from a domestic cloud host provider. During the configuration process, the author encountered an issue where the www subdomain could not be accessed, which was ultimately resolved by deleting the generic domain DNS record and setting up a second-level domain separately. The author also shared the principles and configuration experience of CDN acceleration, as well as their attempts and lessons learned using reverse proxy with Nginx.

Blog IDE Environment and Ramblings

This article introduces the basic concepts of Markdown and its applications in various software, recommends using VSCode as an IDE, and lists recommended plugins. The author shares their experience switching from Hexo to Hugo, emphasizing Hugo’s flexibility and customization capabilities. Finally, it provides some suggestions for quickly getting started with new technologies and shares a trick for resolving the issue of Hugo theme styles not updating.