jason | 张小凯

Introduction to Telegraf

Original link: https://jasonkayzk.github.io/2023/06/27/Telegraf%E7%AE%80%E4%BB%8B/ Telegraf is an agent program written in Go that collects system and service statistics and writes them to the InfluxDB database; This article briefly introduces the use of Telegraf; Introduction to Telegraf Telegraf is an agent program written in Go that collects system and service statistics and writes them to the InfluxDB […]

Introduction to Telegraf Read More »

Introduction to Huge Pages

Original link: https://jasonkayzk.github.io/2023/06/27/%E5%A4%A7%E9%A1%B5%E5%86%85%E5%AD%98%E7%AE%80% E4%BB%8B/ This article briefly introduces large page memory; Introduction to Huge Pages (Traditional) Huge Pages What is Huge Page Memory Huge pages (HugePages), sometimes called “huge memory pages”, “memory huge pages”, “standard huge pages”. The operating system manages memory in units of memory pages, and the size of memory pages has an

Introduction to Huge Pages Read More »

Introduction to Haproxy

Original link: https://jasonkayzk.github.io/2023/06/27/Haproxy%E7%AE%80%E4%BB%8B/ This article briefly introduces the use of HAProxy; Introduction to Haproxy HAProxy overview HAProxy is a free load balancing software that can run on most mainstream Linux operating systems. HAProxy provides L4 (TCP) and L7 (HTTP) load balancing capabilities with rich functions. The HAProxy community is very active, and the version is

Introduction to Haproxy Read More »

Java high-performance cache library Caffeine

Original link: https://jasonkayzk.github.io/2023/03/28/Java%E9%AB%98%E6%80%A7%E8%83%BD%E7%BC%93%E5%AD%98 %E5%BA%93Caffeine/ Caffeine is a high-performance local cache library based on Java, improved by Guava; This article introduces how to use Caffeine cache in Java and how to integrate Caffeine cache in SpringBoot; source code: https://github.com/JasonkayZK/java-all/tree/main/cache/caffeine https://github.com/ben-manes/caffeine Java high-performance cache library Caffeine Introduction to Caffeine Caffeine is a high-performance local cache library for

Java high-performance cache library Caffeine Read More »

Write Cli command line tool in Java

Original link: https://jasonkayzk.github.io/2023/03/20/%E4%BD%BF%E7%94%A8Java%E7%BC%96%E5%86%99Cli%E5%91%BD% E4%BB%A4%E8%A1%8C%E5%B7%A5%E5%85%B7/ Going around, I recently returned to Java; Recently, I am writing the Java version of mini-redis to learn Netty, and I need to use the Java command line tool framework picocli; It is quite troublesome to realize the command line through Java, especially the packaging part, here is a brief summary;

Write Cli command line tool in Java Read More »

Macs with M1 chips run Docker with Colima

Original link: https://jasonkayzk.github.io/2023/03/17/M1%E8%8A%AF%E7%89%87%E7%9A%84Mac%E4%BD%BF%E7%94%A8Colima %E8%BF%90%E8%A1%8CDocker/ Docker provides DockerDesktop with a panel on the Mac with the M1 chip, which feels like a waste of performance. I still prefer the command line; You can use Colima to run Docker; source code: https://github.com/abiosoft/colima Macs with M1 chips run Docker with Colima Install Colima is dedicated to building a

Macs with M1 chips run Docker with Colima Read More »

mini-redis project-6-test and example

Original link: https://jasonkayzk.github.io/2022/12/07/mini-redis%E9%A1%B9%E7%9B%AE-6-%E6%B5%8B%E8%AF%95% E4%B8%8E%E7%A4%BA%E4%BE%8B/ This article is the last section of this series, mainly to test the functions we have implemented before; Rust provides very convenient tools for writing tests and examples; source code: https://github.com/JasonkayZK/mini-redis Series of articles: “mini-redis project-1-introduction” “mini-redis project-2-storage layer” “mini-redis project-3-connection layer” “mini-redis project-4-server” “mini-redis project-5-client” “mini-redis project-6-test and example” mini-redis

mini-redis project-6-test and example Read More »

mini-redis project-5-client

Original link: https://jasonkayzk.github.io/2022/12/07/mini-redis%E9%A1%B9%E7%9B%AE-5-%E5%AE%A2%E6%88%B7% E7%AB%AF/ In the previous article “mini-redis project-4-server” , we implemented the server of mini-redis, and this article implements the client; source code: https://github.com/JasonkayZK/mini-redis Series of articles: “mini-redis project-1-introduction” “mini-redis project-2-storage layer” “mini-redis project-3-connection layer” “mini-redis project-4-server” “mini-redis project-5-client” “mini-redis project-6-test and example” mini-redis project-5-client client entrance Same as the server, the entry

mini-redis project-5-client Read More »

Rust’s gRPC implementation of Tonic

Original link: https://jasonkayzk.github.io/2022/12/03/Rust%E7%9A%84GRPC%E5%AE%9E%E7%8E%B0Tonic/ Tonic is an asynchronous implementation of a GRPC client and server in rust. The bottom layer uses tokio’s prost to generate the code corresponding to Protocol Buffers; This article explains how to use Tonic, and provides a project case that contains multiple proto files; source code: https://github.com/JasonkayZK/rust-learn/tree/grpc Rust’s gRPC implementation of Tonic

Rust’s gRPC implementation of Tonic Read More »

Share two great articles written about functional programming

Original link: https://jasonkayzk.github.io/2022/10/30/%E5%88%86%E4%BA%AB%E4%B8%A4%E7%AF%87%E5%85%B3% E4%BA%8E%E5%87%BD%E6%95%B0%E5%BC%8F%E7%BC%96%E7%A8%8B%E5%86%99%E7%9A%84%E5% BE%88%E5%A5%BD%E7%9A%84%E6%96%87%E7%AB%A0/ A few days ago, Meituan shared two articles on “In-depth Understanding of Functional Programming”. I think it is very good. I will share it with you here: Deep understanding of functional programming (Part 1) Deep understanding of functional programming (below) Share two great articles written about functional programming The following

Share two great articles written about functional programming Read More »

Deploy ClickHouse cluster on k3s cluster

Original link: https://jasonkayzk.github.io/2022/10/25/%E5%9C%A8k3s%E9%9B%86%E7%BE%A4%E4%B8%8A%E9%83%A8% E7%BD%B2ClickHouse%E9%9B%86%E7%BE%A4/ ClickHouse is a columnar database management system (DBMS) for online analysis (OLAP), open sourced by the Russian search engine Yandex; This article builds a k3s cluster based on the previous article “Deploying autok3s on a single machine” and deploys ClickHouse; clickhouse-operator repo: https://github.com/Altinity/clickhouse-operator clickhouse-operator documentation: https://docs.altinity.com/clickhouseonkubernetes/kubernetesquickstartguide/quickcluster/ ClickHouse Documentation: https://clickhouse.com/docs/en/ Deploy ClickHouse

Deploy ClickHouse cluster on k3s cluster Read More »

Proxy TCP or UDP with Nginx

Original link: https://jasonkayzk.github.io/2022/10/24/%E4%BD%BF%E7%94%A8Nginx%E4%BB%A3%E7%90%86TCP%E6%88%96UDP/ Using Nginx for proxy forwarding is a very common function; For example: sometimes a service is started using Docker on the development machine, and the port of the container is not exposed when it is started. If remote access is required later, the configuration needs to be modified, which is troublesome; At

Proxy TCP or UDP with Nginx Read More »

Cross-platform file synchronization tool syncthing

Original link: https://jasonkayzk.github.io/2022/10/19/%E8%B7%A8%E5%B9%B3%E5%8F%B0%E6%96%87%E4%BB%B6% E5%90%8C%E6%AD%A5%E5%B7%A5%E5%85%B7syncthing/ Recently, there is a need to synchronize some files on multiple devices, so the open source software syncthing is used; It’s pretty good to use, share it here! Source code: https://github.com/syncthing/syncthing https://github.com/JasonkayZK/docker-repo/blob/master/syncthing.sh Cross-platform file synchronization tool syncthing The background is that there are some files that need to be synced between

Cross-platform file synchronization tool syncthing Read More »