All Posts

Try Linkerd With Kind

Although Linkerd has heard of its name for a long time, and probably understand some of its architecture, but really have not tried it, mainly because its previous version is really not easy to use, but it is said that the second version has changed a lot, so recently followed the video of others to play a little, by the way, a water.

Prometheus Cluster Solution: Federation

If you use Prometheus as a monitoring tool, then as you get deeper into it, you will run into some performance issues, so you will consider how to extend Prometheus, and this article describes one official way to do so: federation.

Size Limit for TCP Data Segment

We’re all familiar with TCP, the three handshakes, reliable transmission, and all that jazz, but there are a few other things that are interesting, such as do you know what the size limit is for a TCP send?

Manager Session with Screen Command in Linux

A common problem under Linux is that our SSH sessions to remote machines are interrupted due to network or shutting down the client (e.g. laptops with lids closed), especially when running an important command that takes a long time to run.

What is Service Mesh and Why

This article was compiled by me in May 2019, but I never finished it and put it in the draft box, so I suddenly came up with it today, so I edited it by hand. In fact, the reason I didn't finish it was because I translated a lot of content before, and I felt that I had failed to live up to some of my own understanding by directly playing the name of translation, so I piled it up, and then gradually added my own experience and understanding to it, so I organized it today.

Benchmark in Go

This article describes the Benchmark tool, including its testing principles and some relatively complex test implementations.

Limit docker container cpu memory and other resource usage

In the usual local running some high resource consumption of the container, you may sometimes be unhappy with a container on the machine to make the card can not be, this time you want to shut down the container, but there can not shut down, I do not know if you have this trouble, at least I have, so here is how to limit the Docker container resource consumption.

Note for effective go

Although it's not the first time I read Effective Go, it's also very rewarding to read it again. I didn't record some reading feelings and records in my previous readings, so I can't miss this opportunity this time. At the end, I also read a handful of Thanos' coding guide, and also made up some.

CSRF security defense in front and back-end separation scenarios

In recent years, we have been doing front-end and back-end projects, and recently wrote a little bit of front-end code, using the restful style of front-end and back-end separation, but when asked about security issues during the review, we found that we had not considered this aspect, so here we will think about how to prevent CSRF and XSS, two common network attacks in the restful API scenario of front-end and back-end separation.

API performance test tool: wrk

Before learning about wrk, my understanding of performance testing had been limited to ab (Apache Benchmark). I had the impression that the functionality of ab was relatively simple, that is, simply pressure testing a given API and then seeing how much concurrency was there. So I learned about it, and then I saw that other people were interested in wrk, so I recorded something about wrk in the meantime.